diff --git a/OpenAPI/openapi-Container.json b/OpenAPI/openapi-Container.json index f9817d025973dfbeab6517ebde14e533f4feed7b..abd1aef53130cdb1097628a8d18173dbad2d04dc 100644 --- a/OpenAPI/openapi-Container.json +++ b/OpenAPI/openapi-Container.json @@ -55,7 +55,13 @@ }, "examples": { "0": { - "value": "{\n \"m2m:cnt\" : {\n \"rn\": \"cont_name\",\n }\n}" + "value": "{ + "m2m:cnt": + { + "rn": "cont_name1" + } + } + " } } } @@ -67,12 +73,6 @@ "content": { "application/json": { - - - - - - "examples": { "with no rcn or rcn=1 in the request": { "value": "{\n \"m2m:cnt\": {\n \"rn\": \"aename\",\n \"api\": \"N01.com.company.aename \",\n \"lbl\": [\"key1\", \"key2\"],\n \"rr\": true,\n \"srv\": [\"3\"],\n \"poa\": [\"http://cse-address:8080\"],\n \"ri\": \"CAdmin\",\n \"ct\": \"20210330T153934,791690\",\n \"lt\": \"20210330T153934,791690\",\n \"et\": \"20220330T153934,791714\",\n \"pi\": \"cse-id\",\n \"ty\": 2,\n \"aei\": \"CAdmin\"\n }\n}" diff --git a/OpenAPI/openapi-container.yaml b/OpenAPI/openapi-container.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f841aa15d20fb082309fad07524f0f1ebafdab26 --- /dev/null +++ b/OpenAPI/openapi-container.yaml @@ -0,0 +1,92 @@ +--- +openapi: 3.0.1 +info: + title: defaultTitle + description: defaultDescription + version: "0.1" +servers: +- url: http://localhost:8080 +paths: + /cse-in/aename: + post: + description: Auto generated using Swagger Inspector + parameters: + - name: X-M2M-Origin + in: header + required: false + style: simple + explode: false + schema: + type: string + example: Caename + - name: X-M2M-RVI + in: header + required: false + style: simple + explode: false + schema: + type: string + example: "3" + - name: X-M2M-RI + in: header + required: false + style: simple + explode: false + schema: + type: string + example: "1234" + requestBody: + content: + application/json;ty=3: + schema: + type: string + examples: + "0": + value: | + { + "m2m:cnt": { + "rn": "cont_name1" + } + } + responses: + "201": + description: Auto generated using Swagger Inspector + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_201' + examples: + "0": + value: '{"m2m:cnt": {"rn": "cont_name1", "ri": "cnt1741911386948132408", "ct": "20210727T134151,226489", "lt": "20210727T134151,226489", "et": "20220727T134151,226489", "pi": "Caename", "st": 0, "ty": 3, "cni": 0, "cbs": 0}}' + servers: + - url: http://localhost:8080 + servers: + - url: http://localhost:8080 +components: + schemas: + inline_response_201: + type: object + properties: + m2m:cnt: + type: object + properties: + ct: + type: string + st: + type: integer + ty: + type: integer + cbs: + type: integer + ri: + type: string + lt: + type: string + pi: + type: string + rn: + type: string + et: + type: string + cni: + type: integer