- Repo for the ToDo List project developed during the Java Week at Rocketseat, using Java, Spring Boot, H2 Database and Basic Authorization.
GET /tasks
- Returns tasks.
curl --location 'http://localhost:8080/tasks/' \
--header 'Authorization: Basic dXNlcnRlc3Q6MTIzNDU2'
POST /users/
- Adds a new user.
curl --location 'http://localhost:8080/users/' \
--header 'Content-Type: application/json' \
--data '{
"name": "user test",
"username": "usertest",
"password": "123456"
}'
POST /tasks/
- Adds a new task.
curl --location 'http://localhost:8080/tasks/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dXNlcnRlc3Q6MTIzNDU2' \
--data '{
"description": "Tarefa exemplo",
"title": "titulo exemplo",
"priority": "alta",
"startAt": "2023-10-16T12:30:00",
"endAt": "2023-10-16T12:35:00"
}'
PUT /tasks/{id}
- Updates a task.
curl --location --request PUT 'http://localhost:8080/tasks/3232e4d3-465c-4f71-9561-ec9965c02f2c' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Z2lzZWxsZXRlY2g6MTIzNDU2' \
--data ' {
"title": "titulo exemplo titulo exemplotitulo exemplotitulo exemplo titulo exemplo titulo exemplo"
}'