@@ -392,33 +392,7 @@ paths:
392392 example : urn%3Atei%3Auuid%3Aproducts.example.com%3Ad4d9f54a-abcf-11ee-ac79-1a52914d44b
393393 responses :
394394 ' 200 ' :
395- description : Discovery information for the requested TEI
396- content :
397- application/json :
398- schema :
399- type : object
400- additionalProperties : false
401- properties :
402- productReleaseUuid :
403- description : UUID of the resolved TEA Product Release
404- $ref : " #/components/schemas/uuid"
405- example : d4d9f54a-abcf-11ee-ac79-1a52914d44b
406- rootUrl :
407- description : Root URL of the TEA server for this TEI without trailing slash
408- type : string
409- format : uri
410- example : https://api.teaexample.com
411- versions :
412- description : Supported TEA API versions at this server without v prefix
413- type : array
414- minItems : 1
415- items :
416- type : string
417- example : ["0.2.0-beta.2", "1.0.0"]
418- required :
419- - productReleaseUuid
420- - rootUrl
421- - versions
395+ $ref : " #/components/responses/discovery-response"
422396 ' 400 ' :
423397 $ref : " #/components/responses/400-invalid-request"
424398 ' 404 ' :
@@ -1030,6 +1004,42 @@ components:
10301004 #
10311005 # Types used in API responses
10321006 #
1007+ error-response :
1008+ type : object
1009+ description : Error response
1010+ additionalProperties : false
1011+ properties :
1012+ error :
1013+ $ref : " #/components/schemas/unknown-error-type"
1014+ required :
1015+ - error
1016+
1017+ discovery-info :
1018+ type : object
1019+ description : Discovery information for a TEI
1020+ additionalProperties : false
1021+ properties :
1022+ productReleaseUuid :
1023+ description : UUID of the resolved TEA Product Release
1024+ $ref : " #/components/schemas/uuid"
1025+ example : d4d9f54a-abcf-11ee-ac79-1a52914d44b
1026+ rootUrl :
1027+ description : Root URL of the TEA server for this TEI without trailing slash
1028+ type : string
1029+ format : uri
1030+ example : https://api.teaexample.com
1031+ versions :
1032+ description : Supported TEA API versions at this server without v prefix
1033+ type : array
1034+ minItems : 1
1035+ items :
1036+ type : string
1037+ example : ["0.2.0-beta.2", "1.0.0"]
1038+ required :
1039+ - productReleaseUuid
1040+ - rootUrl
1041+ - versions
1042+
10331043 pagination-details :
10341044 type : object
10351045 properties :
@@ -1095,13 +1105,13 @@ components:
10951105 content :
10961106 application/json :
10971107 schema :
1098- type : object
1099- additionalProperties : false
1100- properties :
1101- error :
1102- $ref : " #/components/schemas/unknown-error-type "
1103- required :
1104- - error
1108+ $ref : " #/components/schemas/error-response "
1109+ discovery-response :
1110+ description : Discovery information for the requested TEI
1111+ content :
1112+ application/json :
1113+ schema :
1114+ $ref : " #/components/schemas/discovery-info "
11051115 paginated-product :
11061116 description : A paginated response containing TEA Products
11071117 content :
0 commit comments