-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
53 lines (53 loc) · 1.6 KB
/
openapi.yml
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
openapi: 3.0.0
info:
title: arXiv Search API
description: An API that enables access to the arXiv.org API to search for academic papers.
version: 1.0.0
servers:
- url: 'http://localhost:3000'
paths:
/search:
get:
summary: Search for papers on arXiv.org based on the provided query.
operationId: searchPapers
parameters:
- in: query
name: query
schema:
type: string
description: The search query.
required: true
- in: query
name: maxResults
schema:
type: integer
description: The maximum number of results to return.
required: false
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: array
items:
type: object
properties:
title:
type: string
description: The title of the paper.
authors:
type: array
items:
type: string
description: A list of authors of the paper.
summary:
type: string
description: The summary or abstract of the paper.
link:
type: string
description: The URL to the PDF of the paper.
'400':
description: Bad request
'500':
description: Internal server error