-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yml
100 lines (93 loc) · 2.27 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
openapi: 3.0.0
info:
title: Dataverse app
description: App to query a dataverse instance
version: 0.0.1
x-products:
- name: Single product
x-api-version: 0.4.0
servers:
- url: https://dataverse.materials-data.space
paths:
/heartbeat:
get:
description: Check if the application is active
operationId: heartbeat
responses:
'200':
description: Success
'401':
$ref: '#/components/responses/UnauthorizedError'
/dataset:
get:
description: Fetches list of datasets
operationId: listDatasets
responses:
'200':
description: Success
'404':
description: Not found
'401':
$ref: '#/components/responses/UnauthorizedError'
/dataset/{datasetId}:
get:
description: Fetches a particular Dataset
operationId: getDataset
parameters:
- in: path
name: datasetId
schema:
type: string
required: true
responses:
'200':
description: Success
content:
"*/*":
schema:
type: object
'404':
description: Not found
'401':
$ref: '#/components/responses/UnauthorizedError'
/metadata/{datasetId}:
head:
description: fetch information about certain sets of data
operationId: getDatasetMetadata
parameters:
- in: path
name: datasetId
schema:
type: string
required: true
responses:
'200':
description: Success
content:
"*/*":
schema:
type: object
'404':
description: Not found
'401':
$ref: '#/components/responses/UnauthorizedError'
/globalSearch:
get:
summary: GlobalSearch
description: globalSearch
operationId: globalSearch
parameters:
- in: query
name: q
schema:
type: string
required: true
responses:
"200":
description: Successful Response
'401':
$ref: '#/components/responses/UnauthorizedError'
components:
responses:
UnauthorizedError:
description: Access token is missing or invalid