Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.12 KB

README.md

File metadata and controls

57 lines (46 loc) · 1.12 KB

imdb-service

Building the project

  1. Setup JDK 16
sudo apt install openjdk-16-jdk
  1. Build and run tests
./gradlew clean build componentTest

Run application

./gradlew bootRun

JWT

  1. Request authorization
curl --request POST \
  --url http://localhost:8080/login \
  --header 'content-type: application/json' \
  --data '{
	"username": "postgres",
	"password": "postgres"
}'
  1. Copy authorization header token in the previous step and use it in your request
curl --request GET \
  --url http://localhost:8080/api/titles/The%20Seven%20Sisters \
  --header 'authorization: 	{generated token}'

API Documentation

http://localhost:8080/swagger-ui.html

Examples

TODO List

  • Create exception handler;
  • Create unit test for the package movie in the layer service;
  • Translate the titles and format the path;