This project is a REST API of a task manager
- Java 17
- Spring Boot 3
- PostgreSQL 15
You can send requests to the API using the available routes. The routes are:
- POST
/api/auth/register
- POST
/api/auth/login
- GET
/api/users/me
- GET
/api/users
- Only ADMIN - GET
/api/tasks
- GET
/api/tasks/{id}
- GET
/api/tasks/title/{title}
- GET
/api/tasks/completed/{completed}
- POST
/api/tasks
- PUT
/api/tasks/{id}
- DELETE
/api/tasks/{id}
Some endpoints require authentication via a JWT access token.
The API documentation is available on Swagger. To access it, follow these steps:
- Start the API using the command
./mvnw spring-boot:run
- Open a web browser and navigate to
http://localhost:8080/swagger-ui/index.html
- The API documentation should be displayed in Swagger.
- Clone this repository
- create a database named
db_api_task
- Configure your database in the application.yml file
- Run
./mvnw spring-boot:run
Please feel free to send pull requests and report issues.