Ensure CPS REST API Specs conform to ONAP standards
[cps.git] / cps-rest / docs / api / swagger / components.yml
old mode 100644 (file)
new mode 100755 (executable)
similarity index 93%
rename from cps-rest/docs/api/swagger/components.yaml
rename to cps-rest/docs/api/swagger/components.yml
index bc7aa57..9e306cd
@@ -6,10 +6,14 @@ components:
       properties:
         status:
           type: string
+          example: 400
         message:
           type: string
+          example: Dataspace not found
         details:
           type: string
+          example: Dataspace with name D1 does not exist.
+
     MultipartFile:
       required:
         - file
@@ -18,6 +22,7 @@ components:
           type: string
           description: multipartFile
           format: binary
+          example: http://example.com/examples/example.yang
 
   parameters:
     dataspaceNameInQuery: