diff --git a/pom.xml b/pom.xml index 1e75409..9522c3f 100644 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,11 @@ 4.12 test + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.6.0 + diff --git a/src/main/java/edu/cmipt/gcs/config/.gitkeep b/src/main/java/edu/cmipt/gcs/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/main/java/edu/cmipt/gcs/controller/SwaggerTmpController.java b/src/main/java/edu/cmipt/gcs/controller/SwaggerTmpController.java new file mode 100644 index 0000000..cd9bc2b --- /dev/null +++ b/src/main/java/edu/cmipt/gcs/controller/SwaggerTmpController.java @@ -0,0 +1,16 @@ +package edu.cmipt.gcs.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/api") +public class SwaggerTmpController { + + @GetMapping("/users/{id}") + public void getUser(@PathVariable Long id) { + // implementation + } +}