Skip to content

fredoliveira-ce/imdb-service

Repository files navigation

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;

About

Graphs implemented in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published