/springboot-jwt-swagger

Basic sample code to present how to setup Spring Boot REST Controllers with JWT (JSON Web Token) and document it with Swagger v2 (also supporting JWT).

Primary LanguageJava

springboot-jwt-swagger2

Basic sample code to present how to setup Spring Boot REST Controllers with JWT (JSON Web Token) and document it with Swagger v2 (also supporting JWT).

Credits goes to this code samples and tutorials:

JWT

https://github.com/nielsutrecht/jwt-angular-spring

http://www.svlada.com/jwt-token-authentication-with-spring-boot/

https://www.youtube.com/watch?v=mD3vmgksvz8

Swagger2

http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api

http://heidloff.net/article/usage-of-swagger-2-0-in-spring-boot-applications-to-document-apis/


URL to test: http://localhost:8080/swagger-ui.html