Skip to content

Commit c61f9c9

Browse files
committed
SSS-218
1 parent 09f055b commit c61f9c9

File tree

8 files changed

+714
-712
lines changed

8 files changed

+714
-712
lines changed

ss-adapter/ss-adapter-rest-v1/src/main/java/at/kc/tugraz/ss/adapter/rest/v1/SSRestMainV1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public SSRestMainV1() throws Exception{
6666
resourceConfig.register(MultiPartFeature.class);
6767

6868
// SSLogU.info("rest enter");
69-
SSAdapterRestConf.instSet (SSFileU.dirCatalinaBase() + SSVocConf.dirNameConf + "ss-adapter-rest-conf.yaml");
69+
SSAdapterRestConf.instSet (SSFileU.dirCatalinaBase() + SSVocConf.dirNameConf + "ss-adapter-rest-conf-bp-3.yaml");
7070

7171
/* util */
7272
SSMimeTypeU.init();

ss-adapter/ss-adapter-rest-v1/src/main/webapp/api-docs/SSAdapterRESTFile.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@
115115
"id" : "SSFileGetEditingFilesRet",
116116
"required" : [ "op" ],
117117
"properties" : {
118-
"files" : {
118+
"labels" : {
119119
"type" : "array",
120120
"items" : {
121121
"type" : "string"
122122
}
123123
},
124-
"labels" : {
124+
"files" : {
125125
"type" : "array",
126126
"items" : {
127127
"type" : "string"

ss-adapter/ss-adapter-rest-v1/src/main/webapp/api-docs/SSAdapterRESTFileDownload.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,6 @@
44
"basePath" : "http://localhost:8080/ss-adapter-rest",
55
"resourcePath" : "/SSAdapterRESTFileDownload",
66
"apis" : [ {
7-
"path" : "/fileDownload",
8-
"operations" : [ {
9-
"method" : "POST",
10-
"summary" : "download a file via POST request",
11-
"notes" : "",
12-
"type" : "string",
13-
"format" : "byte",
14-
"nickname" : "fileDownload",
15-
"produces" : [ "application/octet-stream" ],
16-
"consumes" : [ "application/json" ],
17-
"parameters" : [ {
18-
"name" : "body",
19-
"required" : false,
20-
"type" : "SSFileDownloadPar",
21-
"paramType" : "body",
22-
"allowMultiple" : false
23-
} ]
24-
} ]
25-
}, {
267
"path" : "/fileDownloadGET",
278
"operations" : [ {
289
"method" : "GET",
@@ -53,6 +34,25 @@
5334
"allowMultiple" : false
5435
} ]
5536
} ]
37+
}, {
38+
"path" : "/fileDownload",
39+
"operations" : [ {
40+
"method" : "POST",
41+
"summary" : "download a file via POST request",
42+
"notes" : "",
43+
"type" : "string",
44+
"format" : "byte",
45+
"nickname" : "fileDownload",
46+
"produces" : [ "application/octet-stream" ],
47+
"consumes" : [ "application/json" ],
48+
"parameters" : [ {
49+
"name" : "body",
50+
"required" : false,
51+
"type" : "SSFileDownloadPar",
52+
"paramType" : "body",
53+
"allowMultiple" : false
54+
} ]
55+
} ]
5656
} ],
5757
"models" : {
5858
"SSFileDownloadPar" : {

0 commit comments

Comments
 (0)