diff options
author | 2024-11-06 10:54:19 +0000 | |
---|---|---|
committer | 2024-11-06 10:54:19 +0000 | |
commit | 3399fdea15b9c7e6d05148f82f9ceeeee813b84a (patch) | |
tree | fa77f5d5d5ace6bfcd9cdcd1280198deb6d1b0fd /cps-rest/docs/openapi | |
parent | edc650a3a5f5e86c9b82667b90a6bf759a095627 (diff) | |
parent | 14d6a9b990005965307bbab66b0ffe15327a8758 (diff) |
Merge "XML content support on get a node"
Diffstat (limited to 'cps-rest/docs/openapi')
-rw-r--r-- | cps-rest/docs/openapi/components.yml | 4 | ||||
-rw-r--r-- | cps-rest/docs/openapi/cpsDataV2.yml | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml index 40f0e170ff..728295fd31 100644 --- a/cps-rest/docs/openapi/components.yml +++ b/cps-rest/docs/openapi/components.yml @@ -293,7 +293,9 @@ components: description: Content type in header schema: type: string - example: 'application/json' + enum: + - application/json + - application/xml required: true descendantsInQuery: name: descendants diff --git a/cps-rest/docs/openapi/cpsDataV2.yml b/cps-rest/docs/openapi/cpsDataV2.yml index d5a8ef3891..999c5b2c19 100644 --- a/cps-rest/docs/openapi/cpsDataV2.yml +++ b/cps-rest/docs/openapi/cpsDataV2.yml @@ -28,6 +28,7 @@ nodeByDataspaceAndAnchor: - $ref: 'components.yml#/components/parameters/anchorNameInPath' - $ref: 'components.yml#/components/parameters/xpathInQuery' - $ref: 'components.yml#/components/parameters/descendantsInQuery' + - $ref: 'components.yml#/components/parameters/contentTypeInHeader' responses: '200': description: OK @@ -38,6 +39,14 @@ nodeByDataspaceAndAnchor: examples: dataSample: $ref: 'components.yml#/components/examples/dataSample' + application/xml: + schema: + type: object + xml: + name: stores + examples: + dataSample: + $ref: 'components.yml#/components/examples/dataSampleXml' '400': $ref: 'components.yml#/components/responses/BadRequest' '403': |