Commit 9151038a authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

Updated Responses and Refs

parent ec18eebd
Pipeline #7654 running with stage
...@@ -41,7 +41,7 @@ paths: ...@@ -41,7 +41,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/mano_entity.get.200" $ref: "#/components/responses/ManoEntity.Get.200"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -73,11 +73,11 @@ paths: ...@@ -73,11 +73,11 @@ paths:
$ref: "#/components/requestBodies/ModifyManoEntityRequest" $ref: "#/components/requestBodies/ModifyManoEntityRequest"
responses: responses:
"200": "200":
$ref: "#/components/responses/mano_entity.patch.200" $ref: "#/components/responses/ManoEntity.Patch.200"
"409": "409":
$ref: "#/components/responses/mano_entity.patch.409" $ref: "#/components/responses/ManoEntity.Patch.409"
"412": "412":
$ref: "#/components/responses/mano_entity.patch.412" $ref: "#/components/responses/ManoEntity.Patch.412"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -112,9 +112,9 @@ paths: ...@@ -112,9 +112,9 @@ paths:
$ref: "#/components/requestBodies/ChangeManoEntityStateRequest" $ref: "#/components/requestBodies/ChangeManoEntityStateRequest"
responses: responses:
"202": "202":
$ref: "#/components/responses/mano_entity-change_state.post.202" $ref: "#/components/responses/ChangeState.Post.202"
"409": "409":
$ref: "#/components/responses/mano_entity-change_state.post.409" $ref: "#/components/responses/ChangeState.Post.409"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -153,9 +153,9 @@ paths: ...@@ -153,9 +153,9 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/mano_entity-mano_interfaces.get.200" $ref: "#/components/responses/ManoInterfaces.Get.200"
"400": "400":
$ref: "#/components/responses/mano_entity-mano_interfaces.get.400" $ref: "#/components/responses/ManoInterfaces.Get.400"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -189,7 +189,7 @@ paths: ...@@ -189,7 +189,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/mano_entity-mano_interface.get.200" $ref: "#/components/responses/IndividualManoInterface.Get.200"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -219,11 +219,11 @@ paths: ...@@ -219,11 +219,11 @@ paths:
$ref: "#/components/requestBodies/ModifyManoEnityInterfaceRequest" $ref: "#/components/requestBodies/ModifyManoEnityInterfaceRequest"
responses: responses:
"200": "200":
$ref: "#/components/responses/mano_entity-mano_interface.patch.200" $ref: "#/components/responses/IndividualManoInterface.Patch.200"
"409": "409":
$ref: "#/components/responses/mano_entity-mano_interface.patch.409" $ref: "#/components/responses/IndividualManoInterface.Patch.409"
"412": "412":
$ref: "#/components/responses/mano_entity-mano_interface.patch.412" $ref: "#/components/responses/IndividualManoInterface.Patch.412"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -260,9 +260,9 @@ paths: ...@@ -260,9 +260,9 @@ paths:
$ref: "#/components/requestBodies/ChangeManoEntityInterfaceStateRequest" $ref: "#/components/requestBodies/ChangeManoEntityInterfaceStateRequest"
responses: responses:
"202": "202":
$ref: "#/components/responses/mano_entity-mano_interface-change_state.post.202" $ref: "#/components/responses/ManoInterfaceChangeState.Post.202"
"409": "409":
$ref: "#/components/responses/mano_entity-mano_interface-change_state.post.409" $ref: "#/components/responses/ManoInterfaceChangeState.Post.409"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -296,9 +296,11 @@ paths: ...@@ -296,9 +296,11 @@ paths:
$ref: "#/components/requestBodies/CimSubscriptionRequest" $ref: "#/components/requestBodies/CimSubscriptionRequest"
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"
"422":
$ref: "#/components/responses/Subscriptions.Post.422"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -311,8 +313,6 @@ paths: ...@@ -311,8 +313,6 @@ paths:
$ref: ../components/SOL009_resp.yaml#/components/responses/405 $ref: ../components/SOL009_resp.yaml#/components/responses/405
"406": "406":
$ref: ../components/SOL009_resp.yaml#/components/responses/406 $ref: ../components/SOL009_resp.yaml#/components/responses/406
"422":
$ref: ../components/SOL009_resp.yaml#/components/responses/422
"500": "500":
$ref: ../components/SOL009_resp.yaml#/components/responses/500 $ref: ../components/SOL009_resp.yaml#/components/responses/500
"503": "503":
...@@ -332,9 +332,9 @@ paths: ...@@ -332,9 +332,9 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
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/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -367,7 +367,7 @@ paths: ...@@ -367,7 +367,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/subscription.get.200" $ref: "#/components/responses/Subscription.Get.200"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -397,7 +397,7 @@ paths: ...@@ -397,7 +397,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"204": "204":
$ref: "#/components/responses/subscription.delete.204" $ref: "#/components/responses/Subscription.Delete.204"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -436,9 +436,9 @@ paths: ...@@ -436,9 +436,9 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/change_state_ops.get.200" $ref: "#/components/responses/ChangeStateOpOcc.Get.200"
"400": "400":
$ref: "#/components/responses/change_state_ops.get.400" $ref: "#/components/responses/ChangeStateOpOcc.Get.400"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -472,7 +472,7 @@ paths: ...@@ -472,7 +472,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/change_state_op.get.200" $ref: "#/components/responses/IndividualChangeStateOpOcc.Get.200"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -508,7 +508,7 @@ paths: ...@@ -508,7 +508,7 @@ paths:
$ref: "#/components/requestBodies/CreatePeerEntityRequest" $ref: "#/components/requestBodies/CreatePeerEntityRequest"
responses: responses:
"201": "201":
$ref: "#/components/responses/peer_entities.post.201" $ref: "#/components/responses/PeerEntities.Post.201"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -545,9 +545,9 @@ paths: ...@@ -545,9 +545,9 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/peer_entities.get.200" $ref: "#/components/responses/PeerEntities.Get.200"
"400": "400":
$ref: "#/components/responses/peer_entities.get.400" $ref: "#/components/responses/PeerEntities.Get.400"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -580,7 +580,7 @@ paths: ...@@ -580,7 +580,7 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"200": "200":
$ref: "#/components/responses/peer_entitie.get.200" $ref: "#/components/responses/IndividualPeerEntity.Get.200"
"400": "400":
$ref: ../components/SOL009_resp.yaml#/components/responses/400 $ref: ../components/SOL009_resp.yaml#/components/responses/400
"401": "401":
...@@ -614,11 +614,11 @@ paths: ...@@ -614,11 +614,11 @@ paths:
$ref: "#/components/requestBodies/ModifyPeerEntityRequest" $ref: "#/components/requestBodies/ModifyPeerEntityRequest"
responses: responses:
"200": "200":
$ref: "#/components/responses/peer_entitie.patch.200" $ref: "#/components/responses/IndividualPeerEntity.Patch.200"
"409": "409":
$ref: "#/components/responses/peer_entitie.patch.409" $ref: "#/components/responses/IndividualPeerEntity.Patch.409"
"412": "412":
$ref: "#/components/responses/peer_entitie.patch.412" $ref: "#/components/responses/IndividualPeerEntity.Patch.412"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -651,11 +651,9 @@ paths: ...@@ -651,11 +651,9 @@ paths:
- $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization" - $ref: "../components/SOL009_params.yaml#/components/parameters/Authorization"
responses: responses:
"204": "204":
$ref: "#/components/responses/peer_entitie.delete.204" $ref: "#/components/responses/IndividualPeerEntity.Delete.204"
"409": "409":
$ref: "#/components/responses/peer_entitie.delete.409" $ref: "#/components/responses/IndividualPeerEntity.Delete.409"
"412":
$ref: "#/components/responses/peer_entitie.delete.412"
"401": "401":
$ref: ../components/SOL009_resp.yaml#/components/responses/401 $ref: ../components/SOL009_resp.yaml#/components/responses/401
"403": "403":
...@@ -666,6 +664,8 @@ paths: ...@@ -666,6 +664,8 @@ paths:
$ref: ../components/SOL009_resp.yaml#/components/responses/405 $ref: ../components/SOL009_resp.yaml#/components/responses/405
"406": "406":
$ref: ../components/SOL009_resp.yaml#/components/responses/406 $ref: ../components/SOL009_resp.yaml#/components/responses/406
"412":
$ref: ../components/SOL009_resp.yaml#/components/responses/412
"422": "422":
$ref: ../components/SOL009_resp.yaml#/components/responses/422 $ref: ../components/SOL009_resp.yaml#/components/responses/422
"500": "500":
...@@ -2584,7 +2584,7 @@ components: ...@@ -2584,7 +2584,7 @@ components:
required: true required: true
responses: responses:
mano_entity.get.200: ManoEntity.Get.200:
description: > description: >
200 OK 200 OK
...@@ -2610,7 +2610,7 @@ components: ...@@ -2610,7 +2610,7 @@ components:
schema: schema:
$ref: "#/components/schemas/ManoEntity" $ref: "#/components/schemas/ManoEntity"
mano_entity.patch.200: ManoEntity.Patch.200:
description: > description: >
200 OK 200 OK
...@@ -2633,7 +2633,7 @@ components: ...@@ -2633,7 +2633,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ManoConfigModifications" $ref: "#/components/schemas/ManoConfigModifications"
mano_entity.patch.409: ManoEntity.Patch.409:
description: > description: >
409 CONFLICT 409 CONFLICT
...@@ -2663,7 +2663,7 @@ components: ...@@ -2663,7 +2663,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity.patch.412: ManoEntity.Patch.412:
description: > description: >
412 PRECONDITION FAILED 412 PRECONDITION FAILED
...@@ -2693,7 +2693,7 @@ components: ...@@ -2693,7 +2693,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity-change_state.post.202: ChangeState.Post.202:
description: > description: >
202 ACCEPTED 202 ACCEPTED
...@@ -2725,7 +2725,7 @@ components: ...@@ -2725,7 +2725,7 @@ components:
format: url format: url
minimum: 1 minimum: 1
maximum: 1 maximum: 1
mano_entity-change_state.post.409: ChangeState.Post.409:
description: > description: >
409 CONFLICT 409 CONFLICT
...@@ -2755,7 +2755,7 @@ components: ...@@ -2755,7 +2755,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity-mano_interfaces.get.200: ManoInterfaces.Get.200:
description: > description: >
200 OK 200 OK
...@@ -2803,7 +2803,7 @@ components: ...@@ -2803,7 +2803,7 @@ components:
type: array type: array
items: items:
$ref: "#/components/schemas/ManoServiceInterface" $ref: "#/components/schemas/ManoServiceInterface"
mano_entity-mano_interfaces.get.400: ManoInterfaces.Get.400:
description: > description: >
400 BAD REQUEST 400 BAD REQUEST
...@@ -2837,7 +2837,7 @@ components: ...@@ -2837,7 +2837,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity-mano_interface.get.200: IndividualManoInterface.Get.200:
description: > description: >
200 OK 200 OK
...@@ -2863,7 +2863,7 @@ components: ...@@ -2863,7 +2863,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ManoServiceInterface" $ref: "#/components/schemas/ManoServiceInterface"
mano_entity-mano_interface.patch.200: IndividualManoInterface.Patch.200:
description: > description: >
200 OK 200 OK
...@@ -2889,7 +2889,7 @@ components: ...@@ -2889,7 +2889,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ManoServiceInterfaceModifications" $ref: "#/components/schemas/ManoServiceInterfaceModifications"
mano_entity-mano_interface.patch.409: IndividualManoInterface.Patch.409:
description: > description: >
409 CONFLICT 409 CONFLICT
...@@ -2920,7 +2920,7 @@ components: ...@@ -2920,7 +2920,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity-mano_interface.patch.412: IndividualManoInterface.Patch.412:
description: > description: >
412 PRECONDITION FAILED 412 PRECONDITION FAILED
...@@ -2951,7 +2951,7 @@ components: ...@@ -2951,7 +2951,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
mano_entity-mano_interface-change_state.post.202: ManoInterfaceChangeState.Post.202:
description: > description: >
202 ACCEPTED 202 ACCEPTED
...@@ -2985,7 +2985,7 @@ components: ...@@ -2985,7 +2985,7 @@ components:
format: url format: url
minimum: 1 minimum: 1
maximum: 1 maximum: 1
mano_entity-mano_interface-change_state.post.409: ManoInterfaceChangeState.Post.409:
description: > description: >
409 CONFLICT 409 CONFLICT
...@@ -3015,7 +3015,7 @@ components: ...@@ -3015,7 +3015,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
subscriptions.post.201: Subscriptions.Post.201:
description: > description: >
201 CREATED 201 CREATED
...@@ -3052,7 +3052,7 @@ components: ...@@ -3052,7 +3052,7 @@ components:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/CimSubscription" $ref: "#/components/schemas/CimSubscription"
subscriptions.post.303: Subscriptions.Post.303:
description: > description: >
303 SEE OTHER 303 SEE OTHER
...@@ -3087,7 +3087,7 @@ components: ...@@ -3087,7 +3087,7 @@ components:
format: url format: url
minimum: 1 minimum: 1
maximum: 1 maximum: 1
subscriptions.post.422: Subscriptions.Post.422:
description: > description: >
422 Unprocessable Entity 422 Unprocessable Entity
...@@ -3123,7 +3123,7 @@ components: ...@@ -3123,7 +3123,7 @@ components:
schema: schema:
$ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails" $ref: "../components/SOL009_schemas.yaml#/components/schemas/ProblemDetails"
subscriptions.get.200: Subscriptions.Get.200:
description: > description: >
200 OK 200 OK
...@@ -3170,7 +3170,7 @@ components: ...@@ -3170,7 +3170,7 @@ components:
type: array type: array
items: items:
$ref: "#/components/schemas/CimSubscription" $ref: "#/components/schemas/CimSubscription"