Code Review
/
cps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CPS-401 Update Open API YAML with data types and example for output (cpsData)
[cps.git]
/
cps-rest
/
src
/
main
/
resources
/
static
/
cpsData.yml
diff --git
a/cps-rest/docs/openapi/cpsData.yml
b/cps-rest/src/main/resources/static/cpsData.yml
similarity index 96%
rename from
cps-rest/docs/openapi/cpsData.yml
rename to
cps-rest/src/main/resources/static/cpsData.yml
index
fb21f75
..
7e9f71d
100644
(file)
--- a/
cps-rest/docs/openapi/cpsData.yml
+++ b/
cps-rest/src/main/resources/static/cpsData.yml
@@
-28,7
+28,12
@@
nodeByDataspaceAndAnchor:
- $ref: 'components.yml#/components/parameters/includeDescendantsOptionInQuery'
responses:
'200':
- $ref: 'components.yml#/components/parameters/includeDescendantsOptionInQuery'
responses:
'200':
- $ref: 'components.yml#/components/responses/Ok'
+ description: OK
+ content:
+ application/json:
+ schema:
+ type: object
+ example: { "child": my_child,"leafList": "leafListElement1, leafListElement2", "leaf": my_leaf }
'400':
$ref: 'components.yml#/components/responses/BadRequest'
'401':
'400':
$ref: 'components.yml#/components/responses/BadRequest'
'401':