Skip to content

Instantly share code, notes, and snippets.

@Abhi-Codes
Created October 9, 2022 06:34
Show Gist options
  • Save Abhi-Codes/3bcc21eceaa5620fd3c7bd6e0ba647bc to your computer and use it in GitHub Desktop.
Save Abhi-Codes/3bcc21eceaa5620fd3c7bd6e0ba647bc to your computer and use it in GitHub Desktop.
Hello World endpoint to demonstrate Swagger 3 global request parameter
@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