Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lab-java-springboot-rest-api/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
33 changes: 33 additions & 0 deletions lab-java-springboot-rest-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.15/apache-maven-3.9.15-bin.zip
41 changes: 41 additions & 0 deletions lab-java-springboot-rest-api/Customer.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
### Crear customer
POST http://localhost:8080/customers
Content-Type: application/json

{
"name":"Nelvi",
"email":"nelvi@test.com",
"age":40,
"address":"Barcelona"
}

### Ver customers
GET http://localhost:8080/customers

### Buscar customer por email
GET http://localhost:8080/customers/nelvi@test.com

### Actualizar customer
PUT http://localhost:8080/customers/nelvi@test.com
Content-Type: application/json

{
"name":"Nelvi Updated",
"email":"nelvi@test.com",
"age":42,
"address":"Barcelona Centro"
}

### Eliminar customer
DELETE http://localhost:8080/customers/nelvi@test.com

### Validación customer incorrecto
POST http://localhost:8080/customers
Content-Type: application/json

{
"name":"",
"email":"bad-mail",
"age":15,
"address":""
}
295 changes: 295 additions & 0 deletions lab-java-springboot-rest-api/mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading