Created
October 9, 2022 06:34
-
-
Save Abhi-Codes/3bcc21eceaa5620fd3c7bd6e0ba647bc to your computer and use it in GitHub Desktop.
Hello World endpoint to demonstrate Swagger 3 global request parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/api") | |
@Api(value = "Demo APIs") | |
public class DemoController { | |
@GetMapping("/hello-world") | |
@ApiOperation("Hello peeps") | |
public ResponseEntity<String> helloWorld() { | |
return ResponseEntity.ok("Hello Medium"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment