diff --git a/OpenAPI/openAPI-API-AE-0.1-resolved.yaml b/OpenAPI/openAPI-API-AE-0.1-resolved.yaml new file mode 100644 index 0000000000000000000000000000000000000000..486189e48fd6cf09843257d03d8203e71511e9d4 --- /dev/null +++ b/OpenAPI/openAPI-API-AE-0.1-resolved.yaml @@ -0,0 +1,161 @@ +--- +openapi: 3.0.1 +info: + title: defaultTitle + description: defaultDescription + version: "0.1" +servers: +- url: http://192.168.1.30:8080 +paths: + /cse-in: + post: + description: Auto generated using Swagger Inspector + parameters: + - name: X-M2M-Origin + in: header + required: false + style: simple + explode: false + schema: + type: string + example: CAdmin + - 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=2: + schema: + type: object + examples: + "0": + value: |- + { + "m2m:ae" : { + "rn": "temperature", + "api": "N01.com.company.temperature ", + "lbl": ["key1", "key2"], + "rr": true, + "srv": ["3"], + "poa": ["http://192.168.1.30:8080"] + } + } + responses: + "201": + description: create AE + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_201' + examples: + rcn=0: + 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"}}' + rcn=2: + 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"}}' + servers: + - url: http://192.168.1.30:8080 + servers: + - url: http://192.168.1.30:8080 + /cse-in/temperature: + get: + description: Auto generated using Swagger Inspector + parameters: + - name: X-M2M-Origin + in: header + required: false + style: simple + explode: false + schema: + type: string + example: CAdmin + - 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" + responses: + "200": + description: Auto generated using Swagger Inspector + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_201' + examples: + "0": + 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"}}' + servers: + - url: http://192.168.1.30:8080 + servers: + - url: http://192.168.1.30:8080 +components: + schemas: + Schema: + type: object + properties: + id: + type: integer + format: int64 + inline_response_201: + type: object + properties: + m2m:ae: + $ref: '#/components/schemas/inline_response_201_m2mae' + inline_response_201_m2mae: + 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 diff --git a/OpenAPI/openapi-AE1.yaml b/OpenAPI/openapi-AE1.yaml index c89c646de43a7985c8b6e14e4081812210ac7b44..f081b244825f141bd949cd3da506c18414f68177 100644 --- a/OpenAPI/openapi-AE1.yaml +++ b/OpenAPI/openapi-AE1.yaml @@ -66,11 +66,10 @@ paths: "rcn=3": value: '{"m2m:ae": {"rn": "lolo", "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"}}' + - - servers: - - url: http://192.168.1.30:8080 + servers: - url: http://192.168.1.30:8080 /cse-in/temperature: