Skip to content

tscastro/ms-person

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot com Spring-data, H2 e Swagger

Java 8 é necessário para rodar esse exemplo.

Clone

git clone https://github.com/domaframework/spring-boot-sample.git

Run

cd ms-person
./gradlew bootRun

Access

Select

http://localhost:8080/swagger-ui.html

JSON Response:

[{"id": 1, "name": "Patricia", "creditLimit": 1, "risk": "A", "shortAddress": "Street", "rate": 0}]

Update

http://localhost:8080/update?id=1&name=Carla&creditLimit=200&risk=B&shortAddress=Endereco%20%20Update%2066&rate=10

JSON Response:

[{"id": 1, "name": "Carla", "creditLimit": 200, "risk": "B", "shortAddress": "Endereco  Update 66", "rate": 10}]

Edit

Use Eclipse or above.

Generate all Eclipse files with Gradle.

./gradlew eclipse

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages