From 2472e61ecf2f5ebf9c5e3ddcf9c2b66ab0d4219e Mon Sep 17 00:00:00 2001 From: JosephKeenan Date: Wed, 23 Jun 2021 14:15:52 +0100 Subject: CPS-401 Update Open API YAML with data types and example for output (cpsData) -added response for get data nodes based on dataspace and anchor -modified modelmapper jn DataRestControllerSpec to be Spy not Mock -when openapi.yaml is entered into https://editor.swagger.io/ it displays however locally it does not, This may be due to file segmentation but this is still unclear. -moved files from docs/openapi to src/main/resources/static as required for new swagger sprindoc Issue-ID: CPS-401 Change-Id: I45286530d9a9ca85b56c0a656a44675398a003f4 Signed-off-by: JosephKeenan --- cps-application/src/main/resources/application.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cps-application/src/main/resources/application.yml') diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml index 1b62b02df..ac620f6cb 100644 --- a/cps-application/src/main/resources/application.yml +++ b/cps-application/src/main/resources/application.yml @@ -73,6 +73,11 @@ notification: enabled: false topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events} +springdoc: + swagger-ui: + url: /openapi.yml + path: /swagger-ui/index.html + security: # comma-separated uri patterns which do not require authorization permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs -- cgit 1.2.3-korg