Commit bfe830ae authored by Marco Cavalli's avatar Marco Cavalli
Browse files

Update batch operation response structure in NGSI-LD API

parent 91b9e65b
Loading
Loading
Loading
Loading
+25 −12
Changes for ngsi-ld-api.yaml: 25 added lines, 12 removed lines.
Original line number Original line Diff line number Diff line
@@ -1546,21 +1546,34 @@ paths:
          allOf:
          allOf:
            - $ref: '#/components/responses/MultiStatus.BatchOperationResult'
            - $ref: '#/components/responses/MultiStatus.BatchOperationResult'
          description: |
          description: |
            If only some or none of the entities have been successfully created, a response body containing the
            If only some or none of the entities have
            result of each operation contained in the batch is returned in a BatchOperationResult structure.
            been successfully updated, a response
            It contains two arrays. The first array ('success') contains the URIs of the successfully created entities,
            body containing the result of each operation
            while the second array ('errors') contains information about the error for each
            contained in the batch is returned in a
            of the entities that could not be created. There is no restriction
            BatchOperationResult structure. It contains
            as to the order of the Entity Ids in the arrays.
            two arrays. The first array ('success')
            contains the URIs of the successfully
            updated entities, while the second array
            ('errors') contains information about the
            error for each of the entities that could not
            be updated. There is no restriction as to the
            order of the Entity Ids in the arrays.


            If any of the entities matches to a registration, the relevant parts of the request
            If any of the entities matches to a
            are forwarded as a distributed operation.
            registration, the relevant parts of the
            request are forwarded as a distributed
            operation.


            In the case when an error response is received back from any distributed operation,
            In the case when an error response is
            a response body containing the result returned from each registration
            received back from any distributed
            is returned in a BatchOperationResult structure.
            operation, a response body containing the
            result returned from each registration is
            returned in a BatchOperationResult
            structure.


            Errors can occur whenever a distributed operation is unsupported, fails or times out, see clause 6.3.17.
            Errors can occur whenever a distributed
            operation is unsupported, fails or times out,
            see clause 6.3.17. 
        '400':
        '400':
          $ref: '#/components/responses/BadRequest'
          $ref: '#/components/responses/BadRequest'
  /entityOperations/delete:
  /entityOperations/delete: