aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest/docs
diff options
context:
space:
mode:
authorRishi.Chail <rishi.chail@est.tech>2020-11-09 03:28:44 +0000
committerRishi.Chail <rishi.chail@est.tech>2020-11-18 13:30:01 +0000
commit48830f146f6776afa180fefa101788b169bc841a (patch)
tree6154165d4a3d8f464511c39544cf62d0923964a3 /cps-rest/docs
parente40f4d2dce4c4adf57b99c3daf524b14204279b9 (diff)
VSE: Create an anchor in the given dataspace
Issue-ID: CPS-42 https://jira.onap.org/browse/CPS-42 Signed-off-by: Rishi Chail <rishi.chail@est.tech> Change-Id: If67be6f13889808da4d9fe830595766af67e4fdf
Diffstat (limited to 'cps-rest/docs')
-rwxr-xr-x[-rw-r--r--]cps-rest/docs/api/swagger/openapi.yml38
1 files changed, 23 insertions, 15 deletions
diff --git a/cps-rest/docs/api/swagger/openapi.yml b/cps-rest/docs/api/swagger/openapi.yml
index 82f47c088..0c7c83c56 100644..100755
--- a/cps-rest/docs/api/swagger/openapi.yml
+++ b/cps-rest/docs/api/swagger/openapi.yml
@@ -81,26 +81,19 @@ paths:
type: string
requestBody:
content:
- multipart/form-data:
+ application/json:
schema:
- required:
- - file
- properties:
- multipartFile:
- type: string
- description: multipartFile
- format: binary
+ title: Anchor
+ description: anchor
+ $ref: '#/components/schemas/Anchor'
required: true
responses:
- 200:
- description: OK
+ 201:
+ description: Created
content:
application/json:
schema:
- type: object
- 201:
- description: Created
- content: {}
+ type: string
401:
description: Unauthorized
content: {}
@@ -370,4 +363,19 @@ paths:
404:
description: Not Found
content: {}
-components: {} \ No newline at end of file
+components:
+ schemas:
+ Anchor:
+ type: object
+ title: Anchor
+ required:
+ - anchorName
+ - namespace
+ - revision
+ properties:
+ anchorName:
+ type: string
+ namespace:
+ type: string
+ revision:
+ type: string \ No newline at end of file