-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.json
214 lines (214 loc) · 5.41 KB
/
swagger.json
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"swagger": "2.0",
"info": {
"description": "This is the reference API for Orthanc 1.3.1.",
"version": "1.0.0",
"title": "Orthanc Swagger / JSONAPI",
"contact": {
"email": "s.jodogne@gmail.com"
},
"license": {
"name": "GPL v3",
"url": "http://www.gnu.org/copyleft/gpl.en.html"
}
},
"host": "localhost:8042",
"basePath": "/",
"tags": [
{
"name": "{resourceType}",
"description": "Operations that apply to patients, studies, series or instances"
},
{
"name": "changes",
"description": "Log that records every received DICOM instance"
},
{
"name": "exports",
"description": "Log that records every exported DICOM instance"
},
{
"name": "instances",
"description": "Operations about DICOM instances"
},
{
"name": "modalities",
"description": "Operations about other DICOM nodes"
},
{
"name": "patients",
"description": "Operations about patients"
},
{
"name": "peers",
"description": "Operations about other Orthanc peers"
},
{
"name": "plugins",
"description": "Operations about Orthanc plugins"
},
{
"name": "queries",
"description": "Operations about DICOM queries"
},
{
"name": "series",
"description": "Operations about DICOM series"
},
{
"name": "statistics",
"description": "Statistics including patient, study, series and instance count as well as disk space usage"
},
{
"name": "studies",
"description": "Operations about DICOM studies"
},
{
"name": "system",
"description": "Orthanc System information"
},
{
"name": "tools",
"description": "Tools to create DICOM archives and Orthanc system functions"
}
],
"schemes": [
"http"
],
"paths": {
"/changes": {
"get": {
"tags": [
"changes"
],
"summary": "Get the contents of the change log",
"description": "",
"parameters": [
{
"in": "query",
"name": "last",
"type": "boolean",
"description": "Return the last change in the log."
},
{
"in": "query",
"name": "limit",
"type": "integer",
"description": "Limit the number of items to be returned.",
"default": 100
},
{
"in": "query",
"name": "since",
"type": "integer",
"description": "Return change items after this sequential value.",
"default": 0
}
],
"consumes": [
"text/html",
"application/json"
],
"produces": [
"application/json"
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/Changes"
},
"description": "OK"
}
}
},
"delete": {
"tags": [
"changes"
],
"summary": "Clear the contents of the change log",
"description": "",
"consumes": [
"text/html"
],
"produces": [
"text/plain"
],
"responses": {
"200": {
"description": "OK"
}
}
}
}
},
"definitions": {
"Changes": {
"type": "object",
"properties": {
"Changes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ChangeType": {
"type": "string",
"description": "Type of change",
"enum": [
"NewStudy",
"NewPatient",
"NewInstance",
"NewSeries",
"StableStudy",
"StablePatient",
"StableInstance",
"StableSeries"
]
},
"Date": {
"type": "string",
"description": "Change date (ISO format)",
"example": "20160511T210625"
},
"ID": {
"type": "string",
"description": "Resource Unique Identifier",
"example": "53f436e0-9c63bce0-20118a60-eb66e036-4e64188b"
},
"Path": {
"type": "string",
"example": "/studies/53f436e0-9c63bce0-20118a60-eb66e036"
},
"ResourceType": {
"type": "string",
"description": "Type of Resource",
"enum": [
"Study",
"Patient",
"Instance",
"Series"
]
},
"Seq": {
"type": "integer",
"description": "Sequential changeset number",
"example": 301
}
}
}
},
"Done": {
"type": "boolean",
"description": "Indicates if there are more changes in the log that follow the returned change list."
},
"Last": {
"type": "integer",
"description": "Indicates the last change item shown in the returned change list."
}
}
}
},
"externalDocs": {
"description": "Orthanc Book",
"url": "http://book.orthanc-server.com"
}
}