-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
Edib Isic edited this page May 13, 2019
·
5 revisions
Register a new User POST http://localhost:8083/registerUser
Example Json to register new User
{
"id": "[email protected]",
"name": "John",
"surname": "Doe",
"pwd" : "p4ssw0rd",
"adresses": [
{"id": 1, "street": "Musterstraße 212","postcode": 80995, "city": "Munich"},
{"id": 2, "street": "Mustermannstraße. 146a","postcode": 80935, "city": "Munich"}
],
"bankAccount": "DE34598437943857983457984797"
}
AllProducts available GET http://localhost:8083/products
GetProduct by ID GET http://localhost:8083/products/1
addProduct http://localhost:8083/products/add
{
"id": 10,
"name": "Test Product",
"price": {
"number": 1299.99,
"currency": "EUR"
},
"description": "Dummy Product for testing Purposes",
"itemsLeft" : 50
}
Then you can register a new User through calling the POST Method in Postman
http://localhost:8083/registerUser
With the Post Request you have to send an Json formatted user in the Format