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


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