Commit 07c0201d authored by Francesca Moscatelli's avatar Francesca Moscatelli
Browse files

Fix in notification endpoints

parent 3e7f946d
Pipeline #4952 passed with stage
in 0 seconds
...@@ -47,10 +47,10 @@ paths: ...@@ -47,10 +47,10 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/ContentType" - $ref: "../components/SOL012_params.yaml#/components/parameters/ContentType"
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
requestBody: requestBody:
$ref: "#/components/requestBodies/PolicyCreationRequest" $ref: "#/components/requestBodies/CreatePolicyRequest"
responses: responses:
"201": "201":
$ref: '#/components/responses/Policy.post.201' $ref: '#/components/responses/Policy.Post.201'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -71,6 +71,7 @@ paths: ...@@ -71,6 +71,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
get: get:
description: >- description: >-
The GET method queries information about multiple policies. The GET method queries information about multiple policies.
...@@ -84,9 +85,9 @@ paths: ...@@ -84,9 +85,9 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: '#/components/responses/Policy.get.200' $ref: '#/components/responses/Policy.Get.200'
"400": "400":
$ref: '#/components/responses/Policy.get.400' $ref: '#/components/responses/Policy.Get.400'
"401": "401":
$ref: ../components/SOL012_resp.yaml#/components/responses/401 $ref: ../components/SOL012_resp.yaml#/components/responses/401
"403": "403":
...@@ -122,7 +123,7 @@ paths: ...@@ -122,7 +123,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: '#/components/responses/IndividualPolicy.get.200' $ref: '#/components/responses/IndividualPolicy.Get.200'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -143,6 +144,7 @@ paths: ...@@ -143,6 +144,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
patch: patch:
description: > description: >
The PATCH method modifies a policy. The PATCH method modifies a policy.
...@@ -160,7 +162,7 @@ paths: ...@@ -160,7 +162,7 @@ paths:
$ref: "#/components/requestBodies/ModifyPolicyRequest" $ref: "#/components/requestBodies/ModifyPolicyRequest"
responses: responses:
"200": "200":
$ref: '#/components/responses/PolicyModifications.patch.200' $ref: '#/components/responses/PolicyModifications.Patch.200'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -174,7 +176,7 @@ paths: ...@@ -174,7 +176,7 @@ paths:
"406": "406":
$ref: ../components/SOL012_resp.yaml#/components/responses/406 $ref: ../components/SOL012_resp.yaml#/components/responses/406
"409": "409":
$ref: '#/components/responses/PolicyModifications.patch.409' $ref: '#/components/responses/PolicyModifications.Patch.409'
"422": "422":
$ref: ../components/SOL012_resp.yaml#/components/responses/422 $ref: ../components/SOL012_resp.yaml#/components/responses/422
"500": "500":
...@@ -196,7 +198,7 @@ paths: ...@@ -196,7 +198,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"204": "204":
$ref: '#/components/responses/Policy.delete.204' $ref: '#/components/responses/Policy.Delete.204'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -210,7 +212,7 @@ paths: ...@@ -210,7 +212,7 @@ paths:
"406": "406":
$ref: ../components/SOL012_resp.yaml#/components/responses/406 $ref: ../components/SOL012_resp.yaml#/components/responses/406
"409": "409":
$ref: '#/components/responses/Policy.delete.409' $ref: '#/components/responses/Policy.Delete.409'
"422": "422":
$ref: ../components/SOL012_resp.yaml#/components/responses/422 $ref: ../components/SOL012_resp.yaml#/components/responses/422
"500": "500":
...@@ -238,7 +240,7 @@ paths: ...@@ -238,7 +240,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: '#/components/responses/PolicySelectedVersion.get.200' $ref: '#/components/responses/PolicySelectedVersion.Get.200'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -246,7 +248,7 @@ paths: ...@@ -246,7 +248,7 @@ paths:
"403": "403":
$ref: ../components/SOL012_resp.yaml#/components/responses/403 $ref: ../components/SOL012_resp.yaml#/components/responses/403
"404": "404":
$ref: '#/components/responses/PolicySelectedVersion.get.404' $ref: '#/components/responses/PolicySelectedVersion.Get.404'
"405": "405":
$ref: ../components/SOL012_resp.yaml#/components/responses/405 $ref: ../components/SOL012_resp.yaml#/components/responses/405
"406": "406":
...@@ -277,7 +279,7 @@ paths: ...@@ -277,7 +279,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: '#/components/responses/IndividualPolicyVersion.get.200' $ref: '#/components/responses/IndividualPolicyVersion.Get.200'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -298,6 +300,7 @@ paths: ...@@ -298,6 +300,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
put: put:
description: > description: >
The PUT method transfers the content of a particular version of an individual policy. The PUT method transfers the content of a particular version of an individual policy.
...@@ -311,7 +314,7 @@ paths: ...@@ -311,7 +314,7 @@ paths:
$ref: '#/components/requestBodies/PolicyVersionTransferRequest' $ref: '#/components/requestBodies/PolicyVersionTransferRequest'
responses: responses:
"201": "201":
$ref: '#/components/responses/PolicyVersionTransfer.put.201' $ref: '#/components/responses/PolicyVersionTransfer.Put.201'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -325,7 +328,7 @@ paths: ...@@ -325,7 +328,7 @@ paths:
"406": "406":
$ref: ../components/SOL012_resp.yaml#/components/responses/406 $ref: ../components/SOL012_resp.yaml#/components/responses/406
"409": "409":
$ref: '#/components/responses/PolicyVersionTransfer.put.409' $ref: '#/components/responses/PolicyVersionTransfer.Put.409'
"422": "422":
$ref: ../components/SOL012_resp.yaml#/components/responses/422 $ref: ../components/SOL012_resp.yaml#/components/responses/422
"500": "500":
...@@ -334,6 +337,7 @@ paths: ...@@ -334,6 +337,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
delete: delete:
description: > description: >
The DELETE method deletes a particular version of an individual policy. The DELETE method deletes a particular version of an individual policy.
...@@ -345,7 +349,7 @@ paths: ...@@ -345,7 +349,7 @@ paths:
method as defined in clause 5.6.2.8. method as defined in clause 5.6.2.8.
responses: responses:
"204": "204":
$ref: '#/components/responses/PolicyVersion.delete.204' $ref: '#/components/responses/PolicyVersion.Delete.204'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -359,7 +363,7 @@ paths: ...@@ -359,7 +363,7 @@ paths:
"406": "406":
$ref: ../components/SOL012_resp.yaml#/components/responses/406 $ref: ../components/SOL012_resp.yaml#/components/responses/406
"409": "409":
$ref: '#/components/responses/PolicyVersion.delete.409' $ref: '#/components/responses/PolicyVersion.Delete.409'
"422": "422":
$ref: ../components/SOL012_resp.yaml#/components/responses/422 $ref: ../components/SOL012_resp.yaml#/components/responses/422
"500": "500":
...@@ -389,9 +393,9 @@ paths: ...@@ -389,9 +393,9 @@ paths:
$ref: '#/components/requestBodies/PolicySubscriptionCreateRequest' $ref: '#/components/requestBodies/PolicySubscriptionCreateRequest'
responses: responses:
"201": "201":
$ref: '#/components/responses/Subscriptions.post.201' $ref: '#/components/responses/Subscriptions.Post.201'
"303": "303":
$ref: '#/components/responses/Subscriptions.post.303' $ref: '#/components/responses/Subscriptions.Post.303'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -412,6 +416,7 @@ paths: ...@@ -412,6 +416,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
get: get:
description: >- description: >-
The GET method queries the list of active subscriptions of the functional block that invokes the method. The GET method queries the list of active subscriptions of the functional block that invokes the method.
...@@ -426,9 +431,9 @@ paths: ...@@ -426,9 +431,9 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/nextpage_opaque_marker" - $ref: "../components/SOL012_params.yaml#/components/parameters/nextpage_opaque_marker"
responses: responses:
"200": "200":
$ref: '#/components/responses/Subscriptions.get.200' $ref: '#/components/responses/Subscriptions.Get.200'
"400": "400":
$ref: '#/components/responses/Subscriptions.get.400' $ref: '#/components/responses/Subscriptions.Get.400'
"401": "401":
$ref: ../components/SOL012_resp.yaml#/components/responses/401 $ref: ../components/SOL012_resp.yaml#/components/responses/401
"403": "403":
...@@ -465,7 +470,7 @@ paths: ...@@ -465,7 +470,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: '#/components/responses/IndividualSubscription.get.200' $ref: '#/components/responses/IndividualSubscription.Get.200'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -486,6 +491,7 @@ paths: ...@@ -486,6 +491,7 @@ paths:
$ref: ../components/SOL012_resp.yaml#/components/responses/503 $ref: ../components/SOL012_resp.yaml#/components/responses/503
"504": "504":
$ref: ../components/SOL012_resp.yaml#/components/responses/504 $ref: ../components/SOL012_resp.yaml#/components/responses/504
delete: delete:
description: >- description: >-
The DELETE method terminates an individual subscription. This method shall follow the provisions specified The DELETE method terminates an individual subscription. This method shall follow the provisions specified
...@@ -499,7 +505,7 @@ paths: ...@@ -499,7 +505,7 @@ paths:
- $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization"
responses: responses:
"204": "204":
$ref: '#/components/responses/IndividualSubscription.delete.204' $ref: '#/components/responses/IndividualSubscription.Delete.204'
"400": "400":
$ref: ../components/SOL012_resp.yaml#/components/responses/400 $ref: ../components/SOL012_resp.yaml#/components/responses/400
"401": "401":
...@@ -780,7 +786,7 @@ components: ...@@ -780,7 +786,7 @@ components:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/PolicyOperationType" $ref: "../components/SOL012_schemas.yaml#/components/schemas/PolicyOperationType"
responses: responses:
Policy.post.201: Policy.Post.201:
description: > description: >
201 Created 201 Created
...@@ -811,7 +817,7 @@ components: ...@@ -811,7 +817,7 @@ components:
schema: schema:
$ref: "#/components/schemas/Policy" $ref: "#/components/schemas/Policy"
Policy.get.200: Policy.Get.200:
description: > description: >
Shall be returned when information about zero or more policies has been queried successfully. Shall be returned when information about zero or more policies has been queried successfully.
The response body shall contain in an array the representations of zero or more policies, as defined The response body shall contain in an array the representations of zero or more policies, as defined
...@@ -850,7 +856,7 @@ components: ...@@ -850,7 +856,7 @@ components:
items: items:
$ref: "#/components/schemas/Policy" $ref: "#/components/schemas/Policy"
Policy.get.400: Policy.Get.400:
description: > description: >
Shall be returned upon the following error: Invalid attribute-based filtering expression. Shall be returned upon the following error: Invalid attribute-based filtering expression.
The response body shall contain a ProblemDetails structure, in which the "detail" attribute The response body shall contain a ProblemDetails structure, in which the "detail" attribute
...@@ -877,7 +883,7 @@ components: ...@@ -877,7 +883,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
IndividualPolicy.get.200: IndividualPolicy.Get.200:
description: > description: >
Shall be returned when information about an individual policy has been read successfully. Shall be returned when information about an individual policy has been read successfully.
The response body shall contain a representation of the policy, as defined in clause 5.6.2.3. The response body shall contain a representation of the policy, as defined in clause 5.6.2.3.
...@@ -899,7 +905,7 @@ components: ...@@ -899,7 +905,7 @@ components:
schema: schema:
$ref: "#/components/schemas/Policy" $ref: "#/components/schemas/Policy"
PolicyModifications.patch.200: PolicyModifications.Patch.200:
description: > description: >
200 OK 200 OK
...@@ -923,7 +929,7 @@ components: ...@@ -923,7 +929,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/PolicyModifications" $ref: "../components/SOL012_schemas.yaml#/components/schemas/PolicyModifications"
PolicyModifications.patch.409: PolicyModifications.Patch.409:
description: > description: >
409 Conflict 409 Conflict
...@@ -954,7 +960,7 @@ components: ...@@ -954,7 +960,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
Policy.delete.204: Policy.Delete.204:
description: > description: >
204 No Content 204 No Content
...@@ -974,7 +980,7 @@ components: ...@@ -974,7 +980,7 @@ components:
schema: schema:
type: string type: string
Policy.delete.409: Policy.Delete.409:
description: > description: >
409 Conflict 409 Conflict
...@@ -1001,7 +1007,7 @@ components: ...@@ -1001,7 +1007,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
PolicySelectedVersion.get.200: PolicySelectedVersion.Get.200:
description: > description: >
200 OK 200 OK
Shall be returned when the content of the selected version of an individual policy has been read successfully. Shall be returned when the content of the selected version of an individual policy has been read successfully.
...@@ -1031,7 +1037,7 @@ components: ...@@ -1031,7 +1037,7 @@ components:
type: object type: object
additionalProperties: true additionalProperties: true
PolicySelectedVersion.get.404: PolicySelectedVersion.Get.404:
description: > description: >
404 Not Found 404 Not Found
...@@ -1061,7 +1067,7 @@ components: ...@@ -1061,7 +1067,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
IndividualPolicyVersion.get.200: IndividualPolicyVersion.Get.200:
description: > description: >
200 OK 200 OK
...@@ -1092,7 +1098,7 @@ components: ...@@ -1092,7 +1098,7 @@ components:
type: object type: object
additionalProperties: true additionalProperties: true
PolicyVersionTransfer.put.201: PolicyVersionTransfer.Put.201:
description: > description: >
201 Created 201 Created
...@@ -1112,7 +1118,7 @@ components: ...@@ -1112,7 +1118,7 @@ components:
schema: schema:
type: string type: string
PolicyVersionTransfer.put.409: PolicyVersionTransfer.Put.409:
description: > description: >
409 Conflict 409 Conflict
...@@ -1139,7 +1145,7 @@ components: ...@@ -1139,7 +1145,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
PolicyVersion.delete.204: PolicyVersion.Delete.204:
description: > description: >
204 No Content 204 No Content
...@@ -1159,7 +1165,7 @@ components: ...@@ -1159,7 +1165,7 @@ components:
schema: schema:
type: string type: string
PolicyVersion.delete.409: PolicyVersion.Delete.409:
description: > description: >
409 Conflict 409 Conflict
...@@ -1186,7 +1192,7 @@ components: ...@@ -1186,7 +1192,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
Subscriptions.post.201: Subscriptions.Post.201:
description: > description: >
201 Created 201 Created
...@@ -1218,7 +1224,7 @@ components: ...@@ -1218,7 +1224,7 @@ components:
schema: schema:
$ref: "#/components/schemas/PolicySubscription" $ref: "#/components/schemas/PolicySubscription"
Subscriptions.post.303: Subscriptions.Post.303:
description: > description: >
303 See Other 303 See Other
...@@ -1246,7 +1252,7 @@ components: ...@@ -1246,7 +1252,7 @@ components:
type: string type: string
format: url format: url
Subscriptions.get.200: Subscriptions.Get.200:
description: > description: >
200 OK 200 OK
...@@ -1286,7 +1292,7 @@ components: ...@@ -1286,7 +1292,7 @@ components:
items: items:
$ref: "#/components/schemas/PolicySubscription" $ref: "#/components/schemas/PolicySubscription"
Subscriptions.get.400: Subscriptions.Get.400:
description: > description: >
400 Bad Request 400 Bad Request
...@@ -1315,7 +1321,7 @@ components: ...@@ -1315,7 +1321,7 @@ components:
schema: schema:
$ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL012_schemas.yaml#/components/schemas/ProblemDetails"
IndividualSubscription.get.200: IndividualSubscription.Get.200:
description: > description: >
200 OK 200 OK
...@@ -1339,7 +1345,7 @@ components: ...@@ -1339,7 +1345,7 @@ components:
schema: schema:
$ref: "#/components/schemas/PolicySubscription" $ref: "#/components/schemas/PolicySubscription"
IndividualSubscription.delete.204: IndividualSubscription.Delete.204:
description: > description: >
204 No Content 204 No Content
...@@ -1359,7 +1365,7 @@ components: ...@@ -1359,7 +1365,7 @@ components:
type: string type: string
requestBodies: requestBodies:
PolicyCreationRequest: CreatePolicyRequest:
description: > description: >
This type represents request parameters for creating a policy. It shall comply with the provisions defined This type represents request parameters for creating a policy. It shall comply with the provisions defined
in table 5.6.2.2-1.