Skip to content

It’s a simple springboot API with JWT authentication and a simple integration with the omdb API

License

Notifications You must be signed in to change notification settings

digounet/moviesbattle

Repository files navigation

Movies Battle

API desenvolvida em SpringBoot

Endpoints "abertos"

  • __Autenticação (POST): http://localhost:8080/auth.
  • Request: { "username": "pablo", "password": "123456" }
  • __swagger: http://localhost:8080/swagger-ui/index.html
  • __h2console: http://localhost:8080/h2console/

Endpoints com autenticação

Todos estes endpoints requerem que o usuário esteja autenticado. Passar o token no header

  • Response: Bearer token
  • __Novo jogo (GET): http://localhost:8080/startgame.
  • Response: JSON contendo detalhes do jogo
  • __Quizz (GET): http://localhost:8080/quizz.
  • Response: JSON contendo filmes para votação
  • __Quizz Response (GET): http://localhost:8080/quizz/response?movieId=tt0106062.
  • Request (query string): ID do filme votado
  • Response: JSON informando se acertou ou não
  • __End Game (GET): http://localhost:8080/endgame.
  • Response: JSON contendo detalhes do jogo
  • __End Game (GET): http://localhost:8080/ranking.
  • Response: JSON com os melhores 10 jpgadores

About

It’s a simple springboot API with JWT authentication and a simple integration with the omdb API

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages