Commit 3b85aa16 authored by Mubeena Ishaq's avatar Mubeena Ishaq
Browse files

Add SOL003 HTTP conditional requests

parent 8f565796
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
@@ -111,6 +111,10 @@ paths:
    patch:
    patch:
      description: |
      description: |
        This method modifies an "Individual alarm" resource. See clause 7.4.3.3.4.
        This method modifies an "Individual alarm" resource. See clause 7.4.3.3.4.
      parameters: 
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Unmodified-Since
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Match

      requestBody:
      requestBody:
        $ref: '#/components/requestBodies/IndividualAlarmRequest' 
        $ref: '#/components/requestBodies/IndividualAlarmRequest' 
      responses:
      responses:
@@ -425,6 +429,21 @@ components:
          explode: false
          explode: false
          schema:
          schema:
            type: string
            type: string
        ETag:
          description: >
            Used to provide the current entity-tag for the selected resource representation. It can be sent in
            "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
        Last-Modified:
          description: >
            Used to provide a timestamp indicating the date and time at which the server believes the selected resource
            representation was last modified. It can be sent in "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
            format: date-time
      content:
      content:
        application/json:
        application/json:
          schema:
          schema:
+35 −0
Original line number Original line Diff line number Diff line
@@ -149,6 +149,9 @@ paths:
      #SOL003 location: 5.4.3.3.4
      #SOL003 location: 5.4.3.3.4
      description: |
      description: |
        This method modifies an "Individual VNF instance" resource. See clause 5.4.3.3.4.
        This method modifies an "Individual VNF instance" resource. See clause 5.4.3.3.4.
      parameters: 
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Unmodified-Since
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Match
      requestBody:
      requestBody:
        $ref: '#/components/requestBodies/VnfInfoModificationRequest'
        $ref: '#/components/requestBodies/VnfInfoModificationRequest'
      responses:
      responses:
@@ -1138,6 +1141,8 @@ paths:
      parameters:
      parameters:
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/ContentType
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/ContentType
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Unmodified-Since
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Match
      requestBody:
      requestBody:
        $ref: '#/components/requestBodies/VnfSnapshotInfoModificationRequest'
        $ref: '#/components/requestBodies/VnfSnapshotInfoModificationRequest'
      responses:
      responses:
@@ -1731,6 +1736,21 @@ components:
          explode: false
          explode: false
          schema:
          schema:
            type: string
            type: string
        ETag:
          description: >
            Used to provide the current entity-tag for the selected resource representation. It can be sent in
            "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
        Last-Modified:
          description: >
            Used to provide a timestamp indicating the date and time at which the server believes the selected resource
            representation was last modified. It can be sent in "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
            format: date-time
      content:
      content:
        application/json:
        application/json:
          schema:
          schema:
@@ -3999,6 +4019,21 @@ components:
          explode: false
          explode: false
          schema:
          schema:
            type: string
            type: string
        ETag:
          description: >
            Used to provide the current entity-tag for the selected resource representation. It can be sent in
            "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
        Last-Modified:
          description: >
            Used to provide a timestamp indicating the date and time at which the server believes the selected resource
            representation was last modified. It can be sent in "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
            format: date-time
      content:
      content:
        application/json:
        application/json:
          schema:
          schema:
+36 −0
Original line number Original line Diff line number Diff line
@@ -149,6 +149,9 @@ paths:
    patch:
    patch:
      description: |
      description: |
        This method allows to modify an "Individual PM job" resource. See clause 6.4.3.3.4.
        This method allows to modify an "Individual PM job" resource. See clause 6.4.3.3.4.
      parameters: 
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Unmodified-Since
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Match
      responses:
      responses:
        200:
        200:
          $ref: '#/components/responses/IndividualPmJob.Patch.200'
          $ref: '#/components/responses/IndividualPmJob.Patch.200'
@@ -352,6 +355,9 @@ paths:
    patch:
    patch:
      description: |
      description: |
        This method allows to modify an "Individual threshold" resource. See clause 6.4.6.3.4.
        This method allows to modify an "Individual threshold" resource. See clause 6.4.6.3.4.
      parameters: 
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Unmodified-Since
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/If-Match
      responses:
      responses:
        200:
        200:
          $ref: '#/components/responses/IndividualThreshold.Patch.200'
          $ref: '#/components/responses/IndividualThreshold.Patch.200'
@@ -655,6 +661,21 @@ components:
          explode: false
          explode: false
          schema:
          schema:
            type: string
            type: string
        ETag:
          description: >
            Used to provide the current entity-tag for the selected resource representation. It can be sent in
            "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
        Last-Modified:
          description: >
            Used to provide a timestamp indicating the date and time at which the server believes the selected resource
            representation was last modified. It can be sent in "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
            format: date-time
      content:
      content:
        application/json:
        application/json:
          schema:
          schema:
@@ -981,6 +1002,21 @@ components:
          explode: false
          explode: false
          schema:
          schema:
            type: string
            type: string
        ETag:
          description: >
            Used to provide the current entity-tag for the selected resource representation. It can be sent in
            "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
        Last-Modified:
          description: >
            Used to provide a timestamp indicating the date and time at which the server believes the selected resource
            representation was last modified. It can be sent in "200 OK", "201 Created" and "204 No Content" responses.
          style: simple
          schema:
            type: string
            format: date-time
      content:
      content:
        application/json:
        application/json:
          schema:
          schema:
+23 −0
Original line number Original line Diff line number Diff line
@@ -117,3 +117,26 @@ components:
      required: false
      required: false
      schema:
      schema:
        type: string
        type: string
    If-Unmodified-Since:
      name: If-Unmodified-Since
      description: >
        Used to make the request method   conditional on the selected resource representation's last modification date being
        earlier than or equal to the date provided in the field-value. If the condition is not met, the request fails with a
        "412 Precondition Failed" response.
      required: false
      in: header
      schema:
        type: string
        format: date-time

    If-Match:
      name: If-Match
      description: >
        Used to make the request method conditional on the recipient origin server either having at least one current representation
        of the target resource, when the field-value is "*", or having a current representation of the target resource that has an
        entity-tag matching a member of the list of entity-tags provided in the field-value. If the condition is not met, the request
        fails with a "412 Precondition Failed" response.
      required: false
      in: header
      schema:
        type: string
 No newline at end of file