File tree Expand file tree Collapse file tree 3 files changed +122
-4
lines changed
ticketing-eai/api-client-internal/src/main
java/de/muenchen/oss/dbs/ticketing/eai/client Expand file tree Collapse file tree 3 files changed +122
-4
lines changed Original file line number Diff line number Diff line change 1
1
package de .muenchen .oss .dbs .ticketing .eai .client ;
2
2
3
3
import de .muenchen .oss .dbs .ticketing .eai .client .api .ArticlesApi ;
4
+ import de .muenchen .oss .dbs .ticketing .eai .client .api .AttachmentsApi ;
4
5
import de .muenchen .oss .dbs .ticketing .eai .client .api .OrganizationsApi ;
5
6
import de .muenchen .oss .dbs .ticketing .eai .client .api .TicketsApi ;
6
7
import de .muenchen .oss .dbs .ticketing .eai .client .api .UsersApi ;
@@ -46,6 +47,12 @@ public ArticlesApi articlesApi(final ApiClient apiClient) {
46
47
return new ArticlesApi (apiClient );
47
48
}
48
49
50
+ @ Bean
51
+ @ ConditionalOnMissingBean
52
+ public AttachmentsApi attachmentsApi (final ApiClient apiClient ) {
53
+ return new AttachmentsApi (apiClient );
54
+ }
55
+
49
56
@ Bean
50
57
@ ConditionalOnMissingBean
51
58
public OrganizationsApi organizationsApi (final ApiClient apiClient ) {
Original file line number Diff line number Diff line change 7
7
},
8
8
"servers" : [
9
9
{
10
- "url" : " https://dbs-ticketing-eai-test -dbs-ticketing-eai.apps.capk.muenchen.de" ,
10
+ "url" : " https://dbs-ticketing-eai-integration -dbs-ticketing-eai.apps.capk.muenchen.de" ,
11
11
"description" : " Generated server url"
12
12
}
13
13
],
14
14
"tags" : [
15
+ {
16
+ "name" : " Attachments" ,
17
+ "description" : " Endpoints to receive Attachment-Data for downloading."
18
+ },
15
19
{
16
20
"name" : " Articles" ,
17
21
"description" : " Reading and Creating Articles in Zammad."
1098
1102
}
1099
1103
}
1100
1104
},
1105
+ "/attachments/{ticketID}/{articleID}/{attachmentID}" : {
1106
+ "get" : {
1107
+ "tags" : [
1108
+ " Attachments"
1109
+ ],
1110
+ "summary" : " Get Attachment of given article id from given ticket id by given attachment id." ,
1111
+ "description" : " Receives the attachment with the ID attachmentID of the article articleID from the ticket ticketID and forwards it as a binary data stream." ,
1112
+ "operationId" : " getAttachment" ,
1113
+ "parameters" : [
1114
+ {
1115
+ "name" : " ticketID" ,
1116
+ "in" : " path" ,
1117
+ "required" : true ,
1118
+ "schema" : {
1119
+ "type" : " string"
1120
+ }
1121
+ },
1122
+ {
1123
+ "name" : " articleID" ,
1124
+ "in" : " path" ,
1125
+ "required" : true ,
1126
+ "schema" : {
1127
+ "type" : " string"
1128
+ }
1129
+ },
1130
+ {
1131
+ "name" : " attachmentID" ,
1132
+ "in" : " path" ,
1133
+ "required" : true ,
1134
+ "schema" : {
1135
+ "type" : " string"
1136
+ }
1137
+ }
1138
+ ],
1139
+ "responses" : {
1140
+ "default" : {
1141
+ "description" : " Attachment as binary data." ,
1142
+ "content" : {
1143
+ "*/*" : {
1144
+ "schema" : {
1145
+ "type" : " string" ,
1146
+ "format" : " octet-stream"
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ }
1152
+ }
1153
+ },
1101
1154
"/actuator" : {
1102
1155
"get" : {
1103
1156
"tags" : [
2201
2254
"in" : " header" ,
2202
2255
"scheme" : " bearer" ,
2203
2256
"bearerFormat" : " JWT" ,
2204
- "openIdConnectUrl" : " https://ssotest .muenchen.de/auth/realms/intrap /.well-known/openid-configuration"
2257
+ "openIdConnectUrl" : " https://ssodev .muenchen.de/auth/realms/KM81 /.well-known/openid-configuration"
2205
2258
}
2206
2259
}
2207
2260
}
Original file line number Diff line number Diff line change 7
7
},
8
8
"servers" : [
9
9
{
10
- "url" : " https://dbs-ticketing-eai-test -dbs-ticketing-eai.apps.capk.muenchen.de" ,
10
+ "url" : " https://dbs-ticketing-eai-integration -dbs-ticketing-eai.apps.capk.muenchen.de" ,
11
11
"description" : " Generated server url"
12
12
}
13
13
],
14
14
"tags" : [
15
+ {
16
+ "name" : " Attachments" ,
17
+ "description" : " Endpoints to receive Attachment-Data for downloading."
18
+ },
15
19
{
16
20
"name" : " Articles" ,
17
21
"description" : " Reading and Creating Articles in Zammad."
1203
1207
]
1204
1208
}
1205
1209
},
1210
+ "/attachments/{ticketID}/{articleID}/{attachmentID}" : {
1211
+ "get" : {
1212
+ "tags" : [
1213
+ " Attachments"
1214
+ ],
1215
+ "summary" : " Get Attachment of given article id from given ticket id by given attachment id." ,
1216
+ "description" : " Receives the attachment with the ID attachmentID of the article articleID from the ticket ticketID and forwards it as a binary data stream." ,
1217
+ "operationId" : " getAttachment" ,
1218
+ "parameters" : [
1219
+ {
1220
+ "name" : " ticketID" ,
1221
+ "in" : " path" ,
1222
+ "required" : true ,
1223
+ "schema" : {
1224
+ "type" : " string"
1225
+ }
1226
+ },
1227
+ {
1228
+ "name" : " articleID" ,
1229
+ "in" : " path" ,
1230
+ "required" : true ,
1231
+ "schema" : {
1232
+ "type" : " string"
1233
+ }
1234
+ },
1235
+ {
1236
+ "name" : " attachmentID" ,
1237
+ "in" : " path" ,
1238
+ "required" : true ,
1239
+ "schema" : {
1240
+ "type" : " string"
1241
+ }
1242
+ }
1243
+ ],
1244
+ "responses" : {
1245
+ "default" : {
1246
+ "description" : " Attachment as binary data." ,
1247
+ "content" : {
1248
+ "*/*" : {
1249
+ "schema" : {
1250
+ "type" : " string" ,
1251
+ "format" : " octet-stream"
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ },
1257
+ "security" : [
1258
+ {
1259
+ "dbs-ticketing-eai-secscheme" : []
1260
+ }
1261
+ ]
1262
+ }
1263
+ },
1206
1264
"/actuator" : {
1207
1265
"get" : {
1208
1266
"tags" : [
2306
2364
"in" : " header" ,
2307
2365
"scheme" : " bearer" ,
2308
2366
"bearerFormat" : " JWT" ,
2309
- "openIdConnectUrl" : " https://ssotest .muenchen.de/auth/realms/intrap /.well-known/openid-configuration"
2367
+ "openIdConnectUrl" : " https://ssodev .muenchen.de/auth/realms/KM81 /.well-known/openid-configuration"
2310
2368
}
2311
2369
}
2312
2370
}
You can’t perform that action at this time.
0 commit comments