-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathscholarly.maila.ai.yaml
77 lines (77 loc) · 2.48 KB
/
scholarly.maila.ai.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
openapi: 3.0.3
info:
title: Scholarly
description: AI-powered Scholar Search Engine to search for the latest research papers.
version: 1.0.0
contact:
email: kevin@maila.ai
servers:
- url: https://scholarly.maila.ai
paths:
/search:
get:
operationId: searchGet
summary: Search scientific research papers and fetch meta data.
description: |
Scholarly using the provided query and returns the search results, including the title, summary, abstract, url, publication date, and citation count of each paper.
parameters:
- name: q
in: query
description: Search query
required: true
schema:
type: string
example: machine learning
responses:
"200":
description: Successful operation
content:
application/json:
schema:
type: array
items:
type: object
properties:
title:
type: string
description: The title of the paper
summary:
type: string
description: The summary of the paper
abstract:
type: string
description: The abstract of the paper
url:
type: string
format: uri
description: The URL of the paper
publicationDate:
type: string
description: The publication date of the paper
citationCount:
type: integer
description: The citation count of the paper
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message
example:
error: No query provided
"default":
description: Error fetching search results
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message
example:
error: Error fetching search results