Commit f36ad363 authored by Sana Zulfiqar's avatar Sana Zulfiqar
Browse files

SOL009_25: In POST, new response added

parent 0109361d
Loading
Loading
Loading
Loading
Loading
+36 −0
Original line number Original line Diff line number Diff line
@@ -1028,6 +1028,42 @@ components:
        application/json:
        application/json:
          schema:
          schema:
            $ref: "#/components/schemas/PmJob"
            $ref: "#/components/schemas/PmJob"
    pm_jobs.post.422:
      description: >
        422 Unprocessable Entity

        Shall be returned upon the following error: The content type
        of the payload body is supported and the payload body of a request
        contains syntactically correct data but the data cannot be processed.

        The general cause for this error and its handling is specified in
        clause 6.4 of ETSI GS NFV-SOL 013, including rules for the presence
        of the response body.

        Specifically in case of this resource, the response code 422 shall also
        be returned if the API producer has tested the Notification endpoint as
        described in clause 5.5.6.3.2 and the test has failed.

        In this case, the "detail" attribute in the "ProblemDetails" structure
        shall convey more information about the error.
      headers:
        WWW-Authenticate:
          description: >
            Challenge if the corresponding HTTP request has not provided
            authorization, or error details if the corresponding HTTP
            request has provided an invalid authorization token.
          schema:
            type: string
        Version:
          description: >
            Version of the API used in the response.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"

    pm_jobs.get.200:
    pm_jobs.get.200:
      description: >
      description: >
        200 OK
        200 OK