Commit 8df3a1e4 authored by moscatelli's avatar moscatelli
Browse files

SOL003: general consolidation of responses codes

parent ed669390
Loading
Loading
Loading
Loading
Loading
+7 −4
Original line number Original line Diff line number Diff line
@@ -138,7 +138,8 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification endpoint was tested successfully.
            Shall be returned to indicate that the notification endpoint has been tested successfully.
            The response body shall be empty.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
              description: >
              description: >
@@ -269,7 +270,8 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification endpoint was tested successfully.
            Shall be returned to indicate that the notification endpoint has been tested successfully.
            The response body shall be empty.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
              description: >
              description: >
@@ -400,7 +402,8 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification endpoint was tested successfully.
            Shall be returned to indicate that the notification endpoint has been tested successfully.
            The response body shall be empty.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
              description: >
              description: >
+35 −29
Original line number Original line Diff line number Diff line
swagger: "2.0"
swagger: "2.0"


info:
info:
  version: "1.2.0-impl:etsi.org:ETSI_NFV_OpenAPI:1"
  version: "1.3.0-impl:etsi.org:ETSI_NFV_OpenAPI:1"
  title: SOL003 - VNF Package Management Notification interface
  title: SOL003 - VNF Package Management Notification interface
  description: >
  description: >
    SOL003 - VNF Package Management Notification interface
    SOL003 - VNF Package Management Notification interface
@@ -25,8 +25,8 @@ info:
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt


externalDocs:
externalDocs:
  description: ETSI GS NFV-SOL 003 V2.5.1
  description: ETSI GS NFV-SOL 003 V2.6.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.05.01_60/gs_nfv-sol003v020501p.pdf
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.06.01_60/gs_NFV-SOL003v020601p.pdf


basePath: "/callback/v1"
basePath: "/callback/v1"


@@ -46,10 +46,11 @@ paths:
    #SOL003 location: 10.4.9
    #SOL003 location: 10.4.9
    post:
    post:
      description: >
      description: >
        Notify
        Notify.

        The POST method delivers a notification from the API producer to an API consumer.

        The API consumer shall have previously created an "Individual subscription" resource with a matching filter.
        The POST method delivers a notification from the server to the client.
        This method shall follow the provisions specified in the tables 10.4.9.3.1-1 and 10.4.9.3.1-2
        for URI query parameters, request and response data structures, and response codes.
      parameters:
      parameters:
        - name: VnfPackageOnboardingNotification
        - name: VnfPackageOnboardingNotification
          description: A notification about on-boarding of a VNF package.
          description: A notification about on-boarding of a VNF package.
@@ -82,7 +83,7 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification was delivered successfully.
            Shall be returned when the notification has been delivered successfully.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
              description: >
              description: >
@@ -104,8 +105,8 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
        403:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        500:
        500:
@@ -114,8 +115,10 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
    get:
    get:
      description: >
      description: >
        The GET method allows the server to test the notification endpoint
        The GET method allows the server to test the notification endpoint that is provided by the client
        that is provided by the client, e.g. during subscription.
        e.g. during subscription.
        This method shall follow the provisions specified in the tables 10.4.9.3.2-1 and 10.4.9.3.2-2
        for URI query parameters, request and response data structures, and response codes.
      parameters:
      parameters:
        - name: Authorization
        - name: Authorization
          description: >
          description: >
@@ -135,7 +138,7 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification endpoint was tested successfully.
            Shall be returned to indicate that the notification endpoint has been tested successfully.
            The response body shall be empty.
            The response body shall be empty.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
@@ -158,14 +161,15 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
        403:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        500:
        500:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
        503:
        503:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"

  ###############################################################################
  ###############################################################################
  # Notification endpoint VnfPackageChangeNotification                          #
  # Notification endpoint VnfPackageChangeNotification                          #
  ###############################################################################
  ###############################################################################
@@ -173,10 +177,11 @@ paths:
    #SOL003 location: 10.4.9
    #SOL003 location: 10.4.9
    post:
    post:
      description: >
      description: >
        Notify
        Notify.

        The POST method delivers a notification from the API producer to an API consumer.

        The API consumer shall have previously created an "Individual subscription" resource with a matching filter.
        The POST method delivers a notification from the server to the client.
        This method shall follow the provisions specified in the tables 10.4.9.3.1-1 and 10.4.9.3.1-2
        for URI query parameters, request and response data structures, and response codes.
      parameters:
      parameters:
        - name: VnfPackageChangeNotification
        - name: VnfPackageChangeNotification
          description: >
          description: >
@@ -210,7 +215,7 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification was delivered successfully.
            Shall be returned when the notification has been delivered successfully.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
              description: >
              description: >
@@ -232,8 +237,8 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
        403:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        500:
        500:
@@ -242,8 +247,10 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
    get:
    get:
      description: >
      description: >
        The GET method allows the server to test the notification endpoint
        The GET method allows the server to test the notification endpoint that is provided by the client
        that is provided by the client, e.g. during subscription.
         e.g. during subscription.
        This method shall follow the provisions specified in the tables 10.4.9.3.2-1 and 10.4.9.3.2-2
        for URI query parameters, request and response data structures, and response codes.
      parameters:
      parameters:
        - name: Authorization
        - name: Authorization
          description: >
          description: >
@@ -263,7 +270,7 @@ paths:
          description: >
          description: >
            204 NO CONTENT
            204 NO CONTENT


            The notification endpoint was tested successfully.
            Shall be returned to indicate that the notification endpoint has been tested successfully.
            The response body shall be empty.
            The response body shall be empty.
          headers:
          headers:
            WWW-Authenticate:
            WWW-Authenticate:
@@ -286,12 +293,11 @@ paths:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401"
        403:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        500:
        500:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
        503:
        503:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
 No newline at end of file