Code Review
/
cps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Updated openapi.yaml to match to changes in get data node API
[cps.git]
/
cps-rest
/
docs
/
openapi
/
components.yml
diff --git
a/cps-rest/docs/openapi/components.yml
b/cps-rest/docs/openapi/components.yml
index
ff2816a
..
ae0326d
100644
(file)
--- a/
cps-rest/docs/openapi/components.yml
+++ b/
cps-rest/docs/openapi/components.yml
@@
-1,5
+1,6
@@
# ============LICENSE_START=======================================================
# ============LICENSE_START=======================================================
-# Copyright (c) 2021 Bell Canada.
+# Copyright (c) 2021-2022 Bell Canada.
+# Modifications Copyright (C) 2021-2022 Nordix Foundation
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-85,7
+86,7
@@
components:
example: my-schema-set
examples:
example: my-schema-set
examples:
- dataSample
Request
:
+ dataSample:
value:
test:bookstore:
bookstore-name: Chapters
value:
test:bookstore:
bookstore-name: Chapters
@@
-95,16
+96,6
@@
components:
- code: 02
name: kids
- code: 02
name: kids
- dataSampleResponse:
- summary: The data node returned does not include the root node. This is being investigated as a part of CPS-461
- value:
- bookstore-name: Chapters
- categories:
- - code: 01
- name: SciFi
- - code: 02
- name: kids
-
parameters:
dataspaceNameInQuery:
name: dataspace-name
parameters:
dataspaceNameInQuery:
name: dataspace-name
@@
-268,7
+259,7
@@
components:
schema:
type: object
examples:
schema:
type: object
examples:
- dataSample
Response
:
+ dataSample:
value: ""
Created:
description: Created
value: ""
Created:
description: Created
@@
-277,6
+268,16
@@
components:
schema:
type: string
example: my-resource
schema:
type: string
example: my-resource
+ InternalServerError:
+ description: Internal Server Error
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/ErrorMessage"
+ example:
+ status: 500
+ message: Internal Server Error
+ details: Internal Server Error occurred
NoContent:
description: No Content
content: {}
NoContent:
description: No Content
content: {}