External API's: swapi.dev, openweathermap.org
This project requires local .env files in root directory to run correctly.
Required env values:
.env
DB_PASS = <SQL_database_pass>
DB_NAME = <SQL_database_name>
JWT_SECRET= <Secret_to_generate_jwt_token>
WEATHER_KEY= <API_KEY_from_openweathermap.org>
.env.test
DB_PASS = <SQL_database_pass>
DB_NAME = <SQL_database_name>
JWT_SECRET= <Secret_to_generate_jwt_token>
User:
Register user: /api/v1/register
Login user: /api/v1/login
Star wars characters:
Get all characters: /api/v1/starwars/getall/
Available page quering eg. /?page=2
also if page is declared, you can use &format=wookiee
to get data in wookie's language.
Get filtered characters (required Authorization: Bearer token):
/api/v1/starwars/getfiltered/
Available quering by values from people object swapi.dev
Weather (required Authorization: Bearer token):
/api/v1/weather
Weather data updates every hour.