Commit a0b134f5 authored by daniel-gonzalez-sanchez's avatar daniel-gonzalez-sanchez
Browse files

Adding the HTTP 501 NotImplemented response as stated by clause 6.3.7...

Adding the HTTP 501 NotImplemented response as stated by clause 6.3.7 Representation of Entities of ETSI GS CIM 009 V1.7.1. Including the NotImplemente response for the following operations: GET /entities and GET /entities/{entityId}.
parent f02ab2e2
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -172,6 +172,13 @@ paths:
            NGSILD-Warning:
              $ref: '#/components/headers/NGSILD-Warning'
          $ref: '#/components/responses/BadRequest'
        '501':
          headers:
            NGSILD-Tenant:
              $ref: '#/components/headers/NGSILD-Tenant'
            NGSILD-Warning:
              $ref: '#/components/headers/NGSILD-Warning'
          $ref: '#/components/responses/NotImplemented'

  /entities/{entityId}:
    get:
@@ -246,6 +253,13 @@ paths:
            NGSILD-Warning:
              $ref: '#/components/headers/NGSILD-Warning'
          $ref: '#/components/responses/NotFound'
        '501':
          headers:
            NGSILD-Tenant:
              $ref: '#/components/headers/NGSILD-Tenant'
            NGSILD-Warning:
              $ref: '#/components/headers/NGSILD-Warning'
          $ref: '#/components/responses/NotImplemented'
    delete:
      tags:
        - Context Information Provision
@@ -5357,3 +5371,20 @@ components:
        application/geo:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    NotImplemented:
      description: |
        It is used by Registered Context Sources to indicate that the data format 
        of the request is unsupported see clause 6.3.7.
      headers:
        NGSILD-Tenant:
          $ref: '#/components/headers/NGSILD-Tenant'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
        application/json+ld:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
        application/geo:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
 No newline at end of file