Refactor OpenAPI Policy Executor 98/138598/3
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 29 Jul 2024 16:45:52 +0000 (17:45 +0100)
committerToineSiebelink <toine.siebelink@est.tech>
Wed, 31 Jul 2024 16:18:58 +0000 (17:18 +0100)
commit53375821fa2d156785a92ef57ef7948389260cc1
treef7b63a0db182791f3fa2b73ea97355e692939e41
parent9d8e6852b2ebfffca8204557a005aba27c1fc581
Refactor OpenAPI Policy Executor

- replace payload with request(s)
- replace payloadType with schema (one schema for each operation)
- include conflict error response in OpenAPI
- introduce 4 schemas in NCMP (doc module) for create, update, patch & delete
- udpate stub & test to follow new API and use one schema for testign purposes

Issue-ID: CPS-2335
Change-Id: Ifc40062ae83429a9ffba350ec3bcc28cb7147293
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
docs/api/swagger/policy-executor/openapi.yaml
docs/schemas/policy-executor/ncmp-create-schema-1.0.0.json [new file with mode: 0644]
docs/schemas/policy-executor/ncmp-delete-schema-1.0.0.json [new file with mode: 0644]
docs/schemas/policy-executor/ncmp-patch-schema-1.0.0.json [new file with mode: 0644]
docs/schemas/policy-executor/ncmp-update-schema-1.0.0.json [new file with mode: 0644]
policy-executor-stub/pom.xml
policy-executor-stub/src/main/java/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubController.java
policy-executor-stub/src/test/groovy/org/onap/cps/policyexecutor/stub/controller/PolicyExecutorStubControllerSpec.groovy