Commit 29b6bdf3 authored by Ignacio Dominguez Martinez-Casanueva's avatar Ignacio Dominguez Martinez-Casanueva
Browse files

Add CsourceRegistrationStatus schema for get cSourceRegistrations operations

parent be1da771
Loading
Loading
Loading
Loading
+47 −40
Original line number Diff line number Diff line
@@ -610,7 +610,7 @@ paths:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CsourceRegistration'
                  $ref: '#/components/schemas/CsourceRegistrationStatus'
            application/json+ld:
              schema:
                allOf:
@@ -622,7 +622,7 @@ paths:
                        $ref:  '#/components/schemas/LdContext'
                  - type: array
                    items:
                      $ref: '#/components/schemas/CsourceRegistration'
                      $ref: '#/components/schemas/CsourceRegistrationStatus'
        '400':
          $ref: '#/components/responses/BadRequest'
  /csourceRegistrations/{registrationId}:
@@ -653,7 +653,7 @@ paths:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CsourceRegistration'
                $ref: '#/components/schemas/CsourceRegistrationStatus'
            application/json+ld:
              schema:
                allOf:
@@ -663,7 +663,7 @@ paths:
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/CsourceRegistration'
                  - $ref: '#/components/schemas/CsourceRegistrationStatus'
        '400':
          headers:
            NGSILD-Warning:
@@ -3528,6 +3528,27 @@ components:
            Holds additional optional registration management information that can be used
            to limit unnecessary distributed operation requests.
          $ref: '#/components/schemas/RegistrationManagementInfo'
      additionalProperties:
        $ref: '#/components/schemas/AnyValue'
    CsourceRegistration:
      allOf:
        - $ref: '#/components/schemas/CsourceRegistrationFragment'
        - required:
          - type
          - information
          - endpoint
    CsourceRegistrationStatus:
      allOf:
        - $ref: '#/components/schemas/CsourceRegistration'
        - type: object
          properties:
            # Clause 5.2.2 Common members
            createdAt:
              $ref: '#/components/schemas/CreatedAt'
            modifiedAt:
              $ref: '#/components/schemas/ModifiedAt'
            deletedAt:
              $ref: '#/components/schemas/DeletedAt'
            status:
              description: |
                Read-only. Status of the Registration. It shall be "ok" if the last attempt to perform a distributed
@@ -3557,22 +3578,8 @@ components:
                a failure (for instance, in the HTTP binding, an HTTP response code other than 2xx) was returned.
              type: string
              format: date-time
        # Clause 5.2.2 Common members
        createdAt:
          $ref: '#/components/schemas/CreatedAt'
        modifiedAt:
          $ref: '#/components/schemas/ModifiedAt'
        deletedAt:
          $ref: '#/components/schemas/DeletedAt'
      additionalProperties:
        $ref: '#/components/schemas/AnyValue'
    CsourceRegistration:
      allOf:
        - $ref: '#/components/schemas/CsourceRegistrationFragment'
        - required:
          - type
          - information
          - endpoint
          - id
    RegistrationInfo:
      description: |
        5.2.10 RegistrationInfo.