Commit 906d3449 authored by moscatelli's avatar moscatelli
Browse files

SOL003_86/SOL003_87: responses description fixed

parent 2a40064d
Loading
Loading
Loading
Loading
Loading
+30 −72
Original line number Diff line number Diff line
@@ -2121,9 +2121,7 @@ paths:
    #SOL003 location: 5.4.18
    post:
      description: >
        Subscribe


        Subscribe.
        The POST method creates a new subscription.
        Creation of two subscription resources with the same callbackURI and
        the same filter can result in performance degradation and will provide
@@ -2175,10 +2173,10 @@ paths:
          description: >
            201 CREATED

            The subscription was created successfully. The response body shall
            contain a representation of the created subscription resource.
            The HTTP response shall include a "Location" HTTP header that
            points to the created subscription resource.
            Shall be returned when the subscription has been created successfully.
            The response body shall contain a representation of the created "Individual subscription" resource.
            The HTTP response shall include a "Location" HTTP header that points to the created
            "Individual subscription" resource.
          headers:
            Content-Type:
              description: The MIME type of the body of the response.
@@ -2207,33 +2205,14 @@ paths:
            $ref: "../../definitions/SOL002SOL003VNFLifecycleManagement_def.yaml#/definitions/LccnSubscription"
        303:
          description: >
            See Other
            303 SEE OTHER

            A subscription with the same callbackURI and the same filter already
            exists and the policy of the VNFM is to not create redundant
            subscriptions.
            The HTTP response shall include a "Location" HTTP header that
            contains the resource URI of the existing subscription resource.
            Shall be returned if a subscription with the same callbackURI and the same filter already exists
            and the policy of the VNFM is to not create redundant subscriptions.
            The HTTP response shall include a "Location" HTTP header that contains the resource URI of the existing
            "Individual subscription" resource.
            The response body shall be empty.
          headers:
            Location:
              description: The resource URI of the created VNF instance
              type: string
              format: url
            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.
              type: string
              maximum: 1
              minimum: 0
            Version:
              description: >
                Version of the API used in the response.
              type: string
              maximum: 1
              minimum: 1
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/303"
        400:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/400"
        401:
@@ -2241,7 +2220,7 @@ paths:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
        406:
@@ -2250,11 +2229,11 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
        503:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
        504:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/504"
    get:
      description: >
        Query Subscription Information


        Query Subscription Information.
        The GET method queries the list of active subscriptions of the
        functional block that invokes the method. It can be used e.g. for
        resynchronization after error situations.
@@ -2303,15 +2282,15 @@ paths:
          description: >
            200 OK

            The list of subscriptions was queried successfully. The response
            body shall contain the in an array representations of all active 
            subscriptions of the functional block that invokes the method, 
            i.e. zero or more representations of lifecycle change notification
            subscriptions as defined in clause 5.5.2.16.
            If the VNFM supports alternative 2 (paging) according to 
            clause 4.7.2.1 for this resource, inclusion of the Link 
            HTTP header in this response shall follow the provisions 
            in clause 4.7.2.3.
            Shall be returned when the list of subscriptions has been queried successfully.
            The response body shall contain in an array the representations of all active subscriptions of
            the functional block that invokes the method, i.e. zero or more representations of lifecycle change
            notification subscriptions as defined in clause 5.5.2.16.
            If the "filter" URI parameter was supplied in the request, the data in the response body shall have been
            transformed according to the rules specified in clause 5.2.2 of ETSI GS NFV-SOL 013.
            If the VNFM supports alternative 2 (paging) according to clause 5.4.7.2.1 of ETSI GS NFV-SOL 013
            for this resource, inclusion of the Link HTTP header in this response shall follow the provisions
            in clause 4.7.2.3.5.4.2.3 of ETSI GS NFV-SOL 013.
          headers:
            Content-Type:
              description: The MIME type of the body of the response.
@@ -2341,29 +2320,7 @@ paths:
          schema:
            $ref: "../../definitions/SOL002SOL003VNFLifecycleManagement_def.yaml#/definitions/LccnSubscription"
        400:
          description: >
            Bad Request

            Invalid attribute-based filtering parameters.
            The response body shall contain a ProblemDetails structure, in
            which the "detail" attribute should convey more information about
            the error.
          headers:
            Content-Type:
              description: The MIME type of the body of the response.
              type: string
              maximum: 1
              minimum: 1
            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.
              type: string
              maximum: 1
              minimum: 0
          schema:
            $ref: "../../definitions/SOL002SOL003_def.yaml#/definitions/ProblemDetails"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/400"
        401:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
        403:
@@ -2371,13 +2328,16 @@ paths:
        404:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        500:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
        503:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
        504:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/504"

  ###############################################################################
  # Individual subscription                                                     #
  ###############################################################################
@@ -2396,9 +2356,7 @@ paths:
        required: true
    get:
      description: >
        Query Subscription Information


        Query Subscription Information.
        The GET method retrieves information about a subscription by reading
        an individual subscription resource.
      parameters: