Commit 5d4b1c70 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

Removed Accept headers in POST entityOperations/create and errored responses

In CIM 6.3.6 HTTP response common requirements it is stated that the provided "Accept header" is ignored when there is an error. Not much is said about multi-status (207), but we can safely say that the responses should be application/json as the @context is present in the request. Definitely no geo resourse is returned in multi-status responses
parent 5debf334
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -1375,18 +1375,6 @@ paths:
                type: array
                items:
                  type: string
            application/json+ld:
              schema:
                allOf:
                  - type: object
                    required:
                      - '@context'
                    properties:
                      '@context':
                        $ref:  '#/components/schemas/LdContext'
                  - type: array
                    items:
                      type: string
        '207':
          description: |
            If only some or none of the entities have been successfully created, a response body containing the
@@ -5119,12 +5107,6 @@ components:
        application/json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
        application/json+ld:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
        application/geo:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    Conflict:
      description: |
        It is used to indicate that the entity or an exclusive or redirect
@@ -5158,9 +5140,6 @@ components:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchOperationResult'
        application/json+ld:
          schema:
            $ref: '#/components/schemas/BatchOperationResult'
    MultiStatus.UpdateResult:
      description: |
        Only the Attributes included in the response payload body were successfully appended.