-
Notifications
You must be signed in to change notification settings - Fork 0
Routes
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
}
UserAuthentication GET http://localhost:8083/secured PostMan Tab Authorization Username and Password must be provided after you register!!!
getProductsIntheBasket GEThttp://localhost:8083/secured/basketActor
POST Add Products to the Basket by Providing an Product-ID from the Products Page POST http://localhost:8083/secured/addToBasket/1
GET a List of available deliveryadresses http://localhost:8083/secured/selectDeliveryAdress
You can add a new delivery Adress POST http://localhost:8083/secured/addDeliveryAdress
JSON {"id": 1, "street": "Musterstraße 212", "postcode": 80995, "city": "Munich"}
Get logged in User Info http://localhost:8083/secured/userInfo
Finally you can choose the DeliveryAdress-ID and call to finally checkout and get your Order-ID