Commit 4099274d authored by wangrro's avatar wangrro
Browse files

Edit TS29506_Aiot_Data.yaml, preliminary implementation after CT4#135.

parent a74647b7
Loading
Loading
Loading
Loading
Loading
+120 −6
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ paths:
          - nudr-dr
        - oAuth2ClientCredentials:
          - nudr-dr
          - nudr-dr:af-authorization-data:subscriptions:create
          - nudr-dr:aiot-data:af-authorization-data:subscriptions:create
      requestBody:
        content:
          application/json:
@@ -350,7 +350,7 @@ paths:
            Location:
              description: >
                'Contains the URI of the newly created subscription, according to the structure:
                {apiRoot}/nudr-dr/<apiVersion>/af-authorization-data/subscriptions/{subId}'
                {apiRoot}/nudr-dr/<apiVersion>/aiot-data/af-authorization-data/subscriptions/{subId}'
              required: true
              schema:
                type: string
@@ -393,7 +393,7 @@ paths:
          - nudr-dr
        - oAuth2ClientCredentials:
          - nudr-dr
          - nudr-dr:af-authorization-data:subscriptions:modify
          - nudr-dr:aiot-data:af-authorization-data:subscriptions:modify
      requestBody:
        content:
          application/json-patch+json:
@@ -447,7 +447,7 @@ paths:
          - nudr-dr
        - oAuth2ClientCredentials:
          - nudr-dr
          - nudr-dr:af-authorization-data:subscriptions:modify
          - nudr-dr:aiot-data:af-authorization-data:subscriptions:modify
      responses:
        '204':
          description: Expected response to successful deletion
@@ -472,12 +472,126 @@ paths:
        default:
          $ref: 'TS29571_CommonData.yaml#/components/responses/default'


  /aiot-data/tid-info-store/{aiotDevPermId}:
    parameters:
     - name: aiotDevPermId
       in: path
       required: true
       schema:
         $ref: 'TS29571_CommonData.yaml#/components/schemas/AiotDevPermId'
    get:
      summary: Retrieves the stored T-ID information for a given AIoT device
      operationId: ReadTidInformation
      tags:
        - IndividualTidInformation (Document)
      security:
        - {}
        - oAuth2ClientCredentials:
          - nudr-dr
          - nudr-dr:aiot-data:tid-info-store
          - nudr-dr:aiot-data:tid-info-store:aiotDevPermId:read
      responses:
        '200':
          description: >
            Upon success, a response body containing the stored T-ID information shall be returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TidInformation'
        '400':
          $ref: 'TS29571_CommonData.yaml#/components/responses/400'
        '401':
          $ref: 'TS29571_CommonData.yaml#/components/responses/401'
        '403':
          $ref: 'TS29571_CommonData.yaml#/components/responses/403'
        '404':
          $ref: 'TS29571_CommonData.yaml#/components/responses/404'
        '406':
          $ref: 'TS29571_CommonData.yaml#/components/responses/406'
        '429':
          $ref: 'TS29571_CommonData.yaml#/components/responses/429'
        '500':
          $ref: 'TS29571_CommonData.yaml#/components/responses/500'
        '502':
          $ref: 'TS29571_CommonData.yaml#/components/responses/502'
        '503':
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          $ref: 'TS29571_CommonData.yaml#/components/responses/default'
    patch:
      summary: Update the stored T-ID information for a given AIoT device.
      operationId: UpdateTidInformation
      tags:
        - IndividualTidInformation (Document)
      security:
        - {}
        - oAuth2ClientCredentials:
          - nudr-dr
          - nudr-dr:aiot-data:tid-info-store
          - nudr-dr:aiot-data:tid-info-store:aiotDevPermId:modify
      parameters:
        - name: supported-features
          in: query
          description: Supported Features
          required: false
          schema:
             $ref: 'TS29571_CommonData.yaml#/components/schemas/SupportedFeatures'
      requestBody:
        required: true
        content:
          application/json-patch+json:
            schema:
              $ref: 'TS29571_CommonData.yaml#/components/schemas/PatchItem'
      responses:
        '200':
          description: Expected response to a valid request.
          content:
            application/json:
              schema:
                $ref: 'TS29571_CommonData.yaml#/components/schemas/PatchResult'
        '204':
          description: No content. Response to successful modification.
        '400':
          $ref: 'TS29571_CommonData.yaml#/components/responses/400'
        '401':
          $ref: 'TS29571_CommonData.yaml#/components/responses/401'
        '403':
          $ref: 'TS29571_CommonData.yaml#/components/responses/403'
        '404':
          $ref: 'TS29571_CommonData.yaml#/components/responses/404'
        '411':
          $ref: 'TS29571_CommonData.yaml#/components/responses/411'
        '413':
          $ref: 'TS29571_CommonData.yaml#/components/responses/413'
        '415':
          $ref: 'TS29571_CommonData.yaml#/components/responses/415'
        '429':
          $ref: 'TS29571_CommonData.yaml#/components/responses/429'
        '500':
          $ref: 'TS29571_CommonData.yaml#/components/responses/500'
        '502':
          $ref: 'TS29571_CommonData.yaml#/components/responses/502'
        '503':
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          $ref: 'TS29571_CommonData.yaml#/components/responses/default'

components:

  schemas: {}
  schemas:

# STRUCTURED TYPES
    TidInformation:
      description: Contains the stored T-ID information for an AIoT device.
      type: object
      properties:
        tid:
          $ref: 'TS29369_Nadm_Sec.yaml#/components/schemas/Tid'
        tidHandlingInformation:
          $ref: 'TS29369_Nadm_Sec.yaml#/components/schemas/TidHandlingInformation'



# ENUMS: