From c747712a0ea8512fbd3a19c46700b30ae8acd85f Mon Sep 17 00:00:00 2001 From: Parikshit Murria Date: Thu, 17 Feb 2022 16:30:42 -0700 Subject: [PATCH] Update swaggerDirectory to target folder --- .../generated/swagger-ui/swagger.json | 57 ------------------- .../spring-boot-swagger/pom.xml | 2 +- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 spring-boot-modules/spring-boot-swagger/generated/swagger-ui/swagger.json diff --git a/spring-boot-modules/spring-boot-swagger/generated/swagger-ui/swagger.json b/spring-boot-modules/spring-boot-swagger/generated/swagger-ui/swagger.json deleted file mode 100644 index 4ebe165384..0000000000 --- a/spring-boot-modules/spring-boot-swagger/generated/swagger-ui/swagger.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "This is a Baeldung Document Enum Sample Code", - "version" : "v1", - "title" : "Baeldung - Document Enum", - "contact" : { - "name" : "Parikshit Murria", - "email" : "pmurria@baeldung.com" - }, - "license" : { - "name" : "Apache 2.0", - "url" : "https://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host" : "baeldung.com", - "basePath" : "/api", - "schemes" : [ "http", "https" ], - "paths" : { - "/hire" : { - "post" : { - "summary" : "This method is used to hire employee with a specific role", - "description" : "", - "operationId" : "hireEmployee", - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "description" : "role", - "required" : true, - "schema" : { - "$ref" : "#/definitions/Employee" - } - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "string" - } - } - } - } - } - }, - "definitions" : { - "Employee" : { - "type" : "object", - "properties" : { - "role" : { - "type" : "string", - "enum" : [ "Engineer", "Clerk", "Driver", "Janitor" ] - } - } - } - } -} \ No newline at end of file diff --git a/spring-boot-modules/spring-boot-swagger/pom.xml b/spring-boot-modules/spring-boot-swagger/pom.xml index 2c0e52b671..b6ed50534e 100644 --- a/spring-boot-modules/spring-boot-swagger/pom.xml +++ b/spring-boot-modules/spring-boot-swagger/pom.xml @@ -63,7 +63,7 @@ Apache 2.0 - generated/swagger-ui + ${basedir}/target/swagger-ui