Unverified Commit c13bd3d1 authored by Daniel González-Sánchez's avatar Daniel González-Sánchez Committed by GitHub
Browse files

Merge pull request #7 from giros-dit/1.6.1-ops-context-info-subs-rev

NGSI-LD Context Information Subscription and Context Source Registration Subscription Operations - OAS 1.6.1
parents 4a610580 3b9be336
Loading
Loading
Loading
Loading
+14 −26
Original line number Diff line number Diff line
@@ -969,11 +969,11 @@ paths:
                type: array
                items:
                  allOf:
                    - $ref: '#/components/schemas/Subscription'
                    - type: object
                      properties:
                        '@context':
                          $ref:  '#/components/schemas/LdContext'
                    - $ref: '#/components/schemas/Subscription'
                    - required:
                      - id
                      - type
@@ -995,6 +995,8 @@ paths:
      parameters:
        # Path params
        - $ref: '#/components/parameters/Path.subscriptionId'
        # Query params
        - $ref: '#/components/parameters/Query.options.sysAttrs'
        # Local Query param
        - $ref: '#/components/parameters/Query.local'
        # Request headers
@@ -1021,11 +1023,11 @@ paths:
            application/json+ld:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Subscription'
                  - type: object
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/Subscription'
                  - required:
                    - id
                    - type
@@ -1062,7 +1064,7 @@ paths:
      requestBody:
        description: |
          Subscription Fragment including id, type and any other subscription field to be changed.
        $ref: '#/components/requestBodies/SubscriptionFragment'
        $ref: '#/components/requestBodies/Subscription'
      responses:
        '204':
          description: |
@@ -1139,8 +1141,6 @@ paths:
          $ref: '#/components/responses/BadRequest'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
    get:
      tags:
        - Context Source Registration Subscription
@@ -1186,11 +1186,11 @@ paths:
                type: array
                items:
                  allOf:
                    - $ref: '#/components/schemas/Subscription'
                    - type: object
                      properties:
                        '@context':
                          $ref:  '#/components/schemas/LdContext'
                    - $ref: '#/components/schemas/Subscription'
                    - required:
                      - id
                      - type
@@ -1203,13 +1203,15 @@ paths:
      tags:
        - Context Source Registration Subscription
      summary: |
        Retrieval of subscription to Csource registration by id
        Csource registration subscription update by id
      description: |
        5.11.4 Retrieve Context Source Registration Subscription.

        This operation allows retrieving an existing Context Source Registration Subscription.
      operationId: retrieveCSRSubscription
      parameters:
        # Query params
        - $ref: '#/components/parameters/Query.options.sysAttrs'
        # Path params
        - $ref: '#/components/parameters/Path.subscriptionId'
        # Local Query param
@@ -1239,11 +1241,11 @@ paths:
            application/json+ld:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Subscription'
                  - type: object
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - $ref: '#/components/schemas/Subscription'
                  - required:
                    - id
                    - type
@@ -1281,7 +1283,7 @@ paths:
        description: |
          Subscription Fragment including id, type and any other context
          source registration subscription field to be changed.
        $ref: '#/components/requestBodies/SubscriptionFragment'
        $ref: '#/components/requestBodies/Subscription'
      responses:
        '204':
          description: |
@@ -1295,7 +1297,7 @@ paths:
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
        - Context Source Registration
        - Context Source Registration Subscription
      summary: |
        Csource registration subscription deletion by id
      description: |
@@ -3294,28 +3296,14 @@ components:
        application/json+ld:
          schema:
            allOf:
              - $ref: '#/components/schemas/Subscription'
              - type: object
                properties:
                  '@context':
                    $ref:  '#/components/schemas/LdContext'
              - required:
                - type
                - '@context'
    SubscriptionFragment:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Subscription'
        application/json+ld:
          schema:
            allOf:
              - $ref: '#/components/schemas/Subscription'
              - type: object
                properties:
                  '@context':
                    $ref:  '#/components/schemas/LdContext'
              - required:
                - type
                - entities
                - '@context'
  schemas:
    AnyValue: