diff --git a/OpenAPI/openapi-AE5.yaml b/OpenAPI/openapi-AE5.yaml index 4ce53a40afc5f03b3967a4ac4ea5f4e764782f2e..706fc35ed22749786314c1718c9e0481a1017d42 100644 --- a/OpenAPI/openapi-AE5.yaml +++ b/OpenAPI/openapi-AE5.yaml @@ -53,65 +53,71 @@ paths: } } responses: - 201: - description: Create AE Response + '201': + description: Auto generated using Swagger Inspector content: application/json: schema: type: object + properties: + 'm2m:ae': + type: object + properties: + rr: + type: boolean + poa: + type: array + items: + type: string + aei: + type: string + ty: + type: integer + lt: + type: string + et: + type: string + ct: + type: string + srv: + type: array + items: + type: string + lbl: + type: array + items: + type: string + ri: + type: string + pi: + type: string + api: + type: string + rn: + type: string examples: 'with no rcn or rcn=1 in the request': - value: |- - { - "m2m:ae": { - "rn": "aename", - "api": "N01.com.company.aename ", - "lbl": ["key1", "key2"], - "rr": true, - "srv": ["3"], - "poa": ["http://cse-address:8080"], - "ri": "CAdmin", - "ct": "20210330T153934,791690", - "lt": "20210330T153934,791690", - "et": "20220330T153934,791714", - "pi": "cse-id", - "ty": 2, - "aei": "CAdmin" - } - } - 'rcn=0 in the request': - value: '' - 'rcn=3 in the request': - value: |- - { - "m2m:rce" { - "m2m:ae": { - "rn": "aename", - "api": "N01.com.company.aename ", - "lbl": ["key1", "key2"], - "rr": true, - "srv": ["3"], - "poa": ["http://cse-address:8080"], - "ri": "CAdmin", - "ct": "20210330T153934,791690", - "lt": "20210330T153934,791690", - "et": "20220330T153934,791714", - "pi": "cse-id", - "ty": 2, - "aei": "CAdmin" - } - "uri": "mn-name/ae_sensor" - - } - - } - 'rcn=2 in the request': - value: |- - { - "m2m:ae": "csename/aename" - - } - + value: >- + {"m2m:ae": {"rn": "temperature", "api": + "N01.com.company.temperature ", "lbl": ["key1", "key2"], + "rr": true, "srv": ["3"], "poa": + ["http://192.168.1.30:8080"], "ri": "CAdmin", "ct": + "20210330T153934,791690", "lt": "20210330T153934,791690", + "et": "20220330T153934,791714", "pi": "id-in", "ty": 2, + "aei": "CAdmin"}} + 'with rcn=0 in the request': + value: >- + {} + 'with rcn=2 in the request': + value: |- + {"m2m:ae": "csename/aename"} + 'with rcn=3 in the request': + value: |- + {"m2m:rce" {"m2m:ae": {"rn": "aename", "api": "N01.com.company.aename ", + "lbl": ["key1", "key2"], "rr": true, "srv": ["3"], "poa": ["http://cse-address:8080"], + "ri": "CAdmin", "ct": "20210330T153934,791690", "lt": "20210330T153934,791690", "et": "20220330T153934,791714", "pi": "cse-id", "ty": 2, + "aei": "CAdmin"} "uri": "mn-name/ae_sensor"}} + servers: - url: 'http://cse-address:8080' servers: