@@ -246,8 +246,8 @@ paths:
246
246
summary : Get document types
247
247
tags :
248
248
- document-types
249
- description : Get document Types
250
- operationId : getDocumentTypes
249
+ description : Get document type
250
+ operationId : getDocumentType
251
251
parameters :
252
252
- name : filter[documentTypeName]
253
253
in : query
@@ -267,6 +267,26 @@ paths:
267
267
$ref : ' #/components/responses/400'
268
268
' 500 ' :
269
269
$ref : ' #/components/responses/500'
270
+ /onbase-docs/document-types/{documentTypeId} :
271
+ get :
272
+ summary : Get document type by ID
273
+ tags :
274
+ - document-types
275
+ description : Get document type by ID
276
+ operationId : getDocumentTypeById
277
+ parameters :
278
+ - $ref : ' #/components/parameters/documentTypeId'
279
+ responses :
280
+ ' 200 ' :
281
+ description : Document uploaded
282
+ content :
283
+ application/json :
284
+ schema :
285
+ $ref : ' #/components/schemas/DocumentTypeResult'
286
+ ' 404 ' :
287
+ $ref : ' #/components/responses/404'
288
+ ' 500 ' :
289
+ $ref : ' #/components/responses/500'
270
290
components :
271
291
securitySchemes :
272
292
OAuth2 :
@@ -284,6 +304,13 @@ components:
284
304
required : true
285
305
schema :
286
306
type : string
307
+ documentTypeId :
308
+ name : documentTypeId
309
+ in : path
310
+ description : The unique identifier of a document type
311
+ required : true
312
+ schema :
313
+ type : string
287
314
responses :
288
315
' 400 ' :
289
316
description : Bad request
@@ -442,6 +469,12 @@ components:
442
469
$ref : ' #/components/schemas/SelfLink'
443
470
data :
444
471
$ref : ' #/components/schemas/KeywordsResource'
472
+ DocumentTypeResult :
473
+ properties :
474
+ links :
475
+ $ref : ' #/components/schemas/SelfLink'
476
+ data :
477
+ $ref : ' #/components/schemas/DocumentTypeResource'
445
478
DocumentTypeSetResult :
446
479
type : object
447
480
properties :
0 commit comments