Skip to content

pascalcode1/weather-test-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Task Weather Service REST API. Spring Boot, WebFlux, PostgreSQL, Liquibase, Keycloak, Swagger, JUnit, Mockito

Quick Start Guide

  1. Execute docker-compose up from the /docker directory.

  2. Open Swagger UI

  3. In the AuthController, trigger a POST request to /auth, substituting username and password as follows:

username password role
user1 user1 user
user2 user2 user
admin admin admin
  1. Use the obtained Bearer token for authorization in Swagger UI (Authorize button).
  2. Use the API. The roles for which these methods are available are indicated in brackets in the method headers.

Additional Notes

In Docker, three containers are launched: Postgres (port 5432), Keycloak (port 8181), and the application itself (port 8080). The application image is located on Docker Hub.

Upon starting, Keycloak imports a realm with the roles “admin”, “user”, and three users. It is assumed that user management is carried out through the Keycloak Admin Panel The login/password for the admin panel is admin/admin.

About

Weather Service REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published