Skip to content

MrFim/CustomerApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample of REST application

Use next url to check if your requests are correct:

GET: localhost:9966/api/v1/customers/ - get all customers
GET: localhost:9966/api/v1/customers/1 - get customer with ID 1

POST: localhost:9966/api/v1/customers/
Body:
{
    "firstName": "Ivan",
    "lastName": "Ivanov",
    "address": "Street number 13",
    "budget": "1000"
}

PUT: localhost:9966/api/v1/customers/  -  change the budget from 1000 to 5000
Body:
{
    "id": 2,
    "firstName": "Ivan",
    "lastName": "Ivanov",
    "address": "Street number 13",
    "budget": "5000"
}

DELETE: localhost:9966/api/v1/customers/2 - delete customer with ID 2

TO DO:
1. Tests
2. UI
3. Connect UI and DB

About

Sample of REST application. Technologies: Spring, Maven, MySQl, Lombok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages