Skip to content

Repositório criado para o projeto de estudo em Java realizado durante o evento da Rocketseat.

Notifications You must be signed in to change notification settings

giselle-ferreira/java-rocketseat-todolist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocketseat | Java Event

  • Repo for the ToDo List project developed during the Java Week at Rocketseat, using Java, Spring Boot, H2 Database and Basic Authorization.

Deploy


Requests

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"
    }'

Technologies 🧰

Java SpringBoot


Made with ❤️ by Giselle Ferreira.

Giselle Ferreira Linkedin Giselle Ferreira Instagram

About

Repositório criado para o projeto de estudo em Java realizado durante o evento da Rocketseat.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published