|
1 | 1 | { |
2 | 2 | "apiVersion" : "v1", |
3 | 3 | "swaggerVersion" : "1.2", |
4 | | - "basePath" : "http://test-ll.know-center.tugraz.at/bp-3/SSAdapterRest", |
| 4 | + "basePath" : "http://localhost:8080/ss-adapter-rest", |
5 | 5 | "resourcePath" : "/SSAdapterRESTFile", |
6 | 6 | "apis" : [ { |
7 | | - "path" : "/fileUserFileWrites", |
| 7 | + "path" : "/fileCanWrite", |
8 | 8 | "operations" : [ { |
9 | 9 | "method" : "POST", |
10 | | - "summary" : "retrieve files user currently could replace when uploading respective file again as he is writer", |
| 10 | + "summary" : "query whether given file can be downloaded with write access", |
11 | 11 | "notes" : "", |
12 | | - "type" : "SSFileGetEditingFilesRet", |
13 | | - "nickname" : "fileUserFileWrites", |
| 12 | + "type" : "SSFileCanWriteRet", |
| 13 | + "nickname" : "fileCanWrite", |
14 | 14 | "produces" : [ "application/json" ], |
15 | 15 | "consumes" : [ "application/json" ], |
16 | 16 | "parameters" : [ { |
17 | 17 | "name" : "body", |
18 | 18 | "required" : false, |
19 | | - "type" : "SSFileUserFileWritesPar", |
| 19 | + "type" : "SSFileCanWritePar", |
20 | 20 | "paramType" : "body", |
21 | 21 | "allowMultiple" : false |
22 | 22 | } ] |
23 | 23 | } ] |
24 | 24 | }, { |
25 | | - "path" : "/fileSetReaderOrWriter", |
| 25 | + "path" : "/fileExtGet", |
26 | 26 | "operations" : [ { |
27 | 27 | "method" : "POST", |
28 | | - "summary" : "set user being writer or reaader for given file", |
| 28 | + "summary" : "retrieve a file's extension", |
29 | 29 | "notes" : "", |
30 | | - "type" : "SSFileSetReaderOrWriterRet", |
31 | | - "nickname" : "fileSetReaderOrWriter", |
| 30 | + "type" : "SSFileExtGetRet", |
| 31 | + "nickname" : "fileExtGet", |
32 | 32 | "produces" : [ "application/json" ], |
33 | 33 | "consumes" : [ "application/json" ], |
34 | 34 | "parameters" : [ { |
35 | 35 | "name" : "body", |
36 | 36 | "required" : false, |
37 | | - "type" : "SSFileSetReaderOrWriterPar", |
| 37 | + "type" : "SSFileExtGetPar", |
38 | 38 | "paramType" : "body", |
39 | 39 | "allowMultiple" : false |
40 | 40 | } ] |
41 | 41 | } ] |
42 | 42 | }, { |
43 | | - "path" : "/fileCanWrite", |
| 43 | + "path" : "/fileUserFileWrites", |
44 | 44 | "operations" : [ { |
45 | 45 | "method" : "POST", |
46 | | - "summary" : "query whether given file can be downloaded with write access", |
| 46 | + "summary" : "retrieve files user currently could replace when uploading respective file again as he is writer", |
47 | 47 | "notes" : "", |
48 | | - "type" : "SSFileCanWriteRet", |
49 | | - "nickname" : "fileCanWrite", |
| 48 | + "type" : "SSFileGetEditingFilesRet", |
| 49 | + "nickname" : "fileUserFileWrites", |
50 | 50 | "produces" : [ "application/json" ], |
51 | 51 | "consumes" : [ "application/json" ], |
52 | 52 | "parameters" : [ { |
53 | 53 | "name" : "body", |
54 | 54 | "required" : false, |
55 | | - "type" : "SSFileCanWritePar", |
| 55 | + "type" : "SSFileUserFileWritesPar", |
56 | 56 | "paramType" : "body", |
57 | 57 | "allowMultiple" : false |
58 | 58 | } ] |
59 | 59 | } ] |
60 | 60 | }, { |
61 | | - "path" : "/fileExtGet", |
| 61 | + "path" : "/fileSetReaderOrWriter", |
62 | 62 | "operations" : [ { |
63 | 63 | "method" : "POST", |
64 | | - "summary" : "retrieve a file's extension", |
| 64 | + "summary" : "set user being writer or reaader for given file", |
65 | 65 | "notes" : "", |
66 | | - "type" : "SSFileExtGetRet", |
67 | | - "nickname" : "fileExtGet", |
| 66 | + "type" : "SSFileSetReaderOrWriterRet", |
| 67 | + "nickname" : "fileSetReaderOrWriter", |
68 | 68 | "produces" : [ "application/json" ], |
69 | 69 | "consumes" : [ "application/json" ], |
70 | 70 | "parameters" : [ { |
71 | 71 | "name" : "body", |
72 | 72 | "required" : false, |
73 | | - "type" : "SSFileExtGetPar", |
| 73 | + "type" : "SSFileSetReaderOrWriterPar", |
74 | 74 | "paramType" : "body", |
75 | 75 | "allowMultiple" : false |
76 | 76 | } ] |
|
137 | 137 | "SSFileSetReaderOrWriterPar" : { |
138 | 138 | "id" : "SSFileSetReaderOrWriterPar", |
139 | 139 | "description" : "", |
140 | | - "required" : [ "file", "write", "key", "user", "op" ], |
| 140 | + "required" : [ "file", "write", "key", "op", "user" ], |
141 | 141 | "properties" : { |
142 | 142 | "file" : { |
143 | 143 | "type" : "string", |
|
151 | 151 | "type" : "string", |
152 | 152 | "description" : "the user's access tocken" |
153 | 153 | }, |
154 | | - "user" : { |
155 | | - "type" : "string", |
156 | | - "description" : "the user's identifier" |
157 | | - }, |
158 | 154 | "op" : { |
159 | 155 | "type" : "string", |
160 | 156 | "description" : "operation to be executed" |
| 157 | + }, |
| 158 | + "user" : { |
| 159 | + "type" : "string", |
| 160 | + "description" : "the user's identifier" |
161 | 161 | } |
162 | 162 | } |
163 | 163 | }, |
164 | 164 | "SSFileUserFileWritesPar" : { |
165 | 165 | "id" : "SSFileUserFileWritesPar", |
166 | 166 | "description" : "", |
167 | | - "required" : [ "key", "user", "op" ], |
| 167 | + "required" : [ "key", "op", "user" ], |
168 | 168 | "properties" : { |
169 | 169 | "key" : { |
170 | 170 | "type" : "string", |
171 | 171 | "description" : "the user's access tocken" |
172 | 172 | }, |
173 | | - "user" : { |
174 | | - "type" : "string", |
175 | | - "description" : "the user's identifier" |
176 | | - }, |
177 | 173 | "op" : { |
178 | 174 | "type" : "string", |
179 | 175 | "description" : "operation to be executed" |
| 176 | + }, |
| 177 | + "user" : { |
| 178 | + "type" : "string", |
| 179 | + "description" : "the user's identifier" |
180 | 180 | } |
181 | 181 | } |
182 | 182 | }, |
183 | 183 | "SSFileCanWritePar" : { |
184 | 184 | "id" : "SSFileCanWritePar", |
185 | 185 | "description" : "", |
186 | | - "required" : [ "file", "key", "user", "op" ], |
| 186 | + "required" : [ "file", "key", "op", "user" ], |
187 | 187 | "properties" : { |
188 | 188 | "file" : { |
189 | 189 | "type" : "string", |
|
193 | 193 | "type" : "string", |
194 | 194 | "description" : "the user's access tocken" |
195 | 195 | }, |
196 | | - "user" : { |
197 | | - "type" : "string", |
198 | | - "description" : "the user's identifier" |
199 | | - }, |
200 | 196 | "op" : { |
201 | 197 | "type" : "string", |
202 | 198 | "description" : "operation to be executed" |
| 199 | + }, |
| 200 | + "user" : { |
| 201 | + "type" : "string", |
| 202 | + "description" : "the user's identifier" |
203 | 203 | } |
204 | 204 | } |
205 | 205 | }, |
|
220 | 220 | "SSFileExtGetPar" : { |
221 | 221 | "id" : "SSFileExtGetPar", |
222 | 222 | "description" : "", |
223 | | - "required" : [ "file", "key", "user", "op" ], |
| 223 | + "required" : [ "file", "key", "op", "user" ], |
224 | 224 | "properties" : { |
225 | 225 | "file" : { |
226 | 226 | "type" : "string", |
|
230 | 230 | "type" : "string", |
231 | 231 | "description" : "the user's access tocken" |
232 | 232 | }, |
233 | | - "user" : { |
234 | | - "type" : "string", |
235 | | - "description" : "the user's identifier" |
236 | | - }, |
237 | 233 | "op" : { |
238 | 234 | "type" : "string", |
239 | 235 | "description" : "operation to be executed" |
| 236 | + }, |
| 237 | + "user" : { |
| 238 | + "type" : "string", |
| 239 | + "description" : "the user's identifier" |
240 | 240 | } |
241 | 241 | } |
242 | 242 | } |
|
0 commit comments