A REST API built with Spring Boot to create tasks. The API manages a collection of task list and for each list, their respective tasks.
- Java
- Maven
- Docker
- Start the application:
./mvnw clean install
- Start the application:
./mvnw spring-boot:run
The application should now be running on the default http://localhost:8080
.
Configuration The application requires the following environment variables to be set:
SPRING_DATASOURCE_URL
: the URL of the PostgreSQL databaseSPRING_DATASOURCE_USERNAME
: the username of the PostgreSQL userSPRING_DATASOURCE_PASSWORD
: the password of the PostgreSQL userAUTH_SERVER_URL
: the URL of the OAuth2 authorization serverAUTH_SERVER_CLIENT_ID
: the client ID registered with the authorization serverAUTH_SERVER_CLIENT_SECRET
: the client secret registered with the authorization server
All endpoints are accessed via the base URL: http://localhost:8080/api
.
The API exposes the following endpoints:
GET /list
: retrieve all lists for the authenticated user.POST /list?=title
: creates a list with thetitle
for the authenticated user.