Skip to content

Projeto do curso Descomplicando Java e Spring da LinuxTips

Notifications You must be signed in to change notification settings

caiofernandomf/estudante-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

estudante-api

Projeto do curso Descomplicando Java e Spring da LinuxTips

RUN(Linux):

./mvnw spring-boot:run

⚙️ Project Dependencies

- Lombok
- MapStruct
- H2

💻 Environment dependencies

- Java 19     

ROUTES


Rest/Restful architecture - HTTP - POST, GET, PUT, DELETE - CRUD.


POST

Method route Description
POST localhost:8080/v1/estudantes Create a new student

Example:
[
  {
    "nome": "Ayrton",
    "endereco": "Lapa",
    "curso" : "Descomplicando SQL",
    "dadosBancarios" : {
      "agencia" : 123,
      "conta" : 4568,
      "digito": 3,
      "tipoContaBancaria": "POUPANCA"
    }
  }
]

GET

Method route Description
GET localhost:8080/v1/estudantes List all students
GET localhost:8080/v1/estudantes/{id} List a student by Id
GET localhost:8080/v1/estudantes/nome/{name} List a student by name
GET localhost:8080/v1/estudantes/nome?nome={name} List all students that name contains a given string
GET localhost:8080/v1/estudantes/curso?curso={name} List all students by course

PUT

Method route Description
PUT localhost:8080/v1/estudantes/{id} Upate a student

DELETE

Method route Description
DELETE localhost:8080/v1/estudantes/{id} Delete a student

About

Projeto do curso Descomplicando Java e Spring da LinuxTips

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages