getOrderById

Get details of an Order

get
https://localhost:9443/am/sample/pizzashack/v1/api/order/{orderId}

Path Parameters

orderIdstring(string)required

Order Id

Response

application/json

OK Requested Order will be returned

Pizza Order

customerNamestring
deliveredboolean
addressstring
pizzaTypestring
creditCardNumberstring
quantitynumber
orderIdstringrequired
get/order/{orderId}
 
application/json

updateOrder

Update an existing Order

put
https://localhost:9443/am/sample/pizzashack/v1/api/order/{orderId}

Path Parameters

orderIdstring(string)required

Order Id

Body

application/json

Order object that needs to be added

Pizza Order

customerNamestring
deliveredboolean
addressstring
pizzaTypestring
creditCardNumberstring
quantitynumber
orderIdstringrequired

Response

application/json

OK. Successful response with updated Order

Pizza Order

customerNamestring
deliveredboolean
addressstring
pizzaTypestring
creditCardNumberstring
quantitynumber
orderIdstringrequired
put/order/{orderId}

Body

{ "orderId": "orderId" }
 
application/json

deleteOrder

Delete an existing Order

delete
https://localhost:9443/am/sample/pizzashack/v1/api/order/{orderId}

Path Parameters

orderIdstring(string)required

Order Id

Response

OK. Resource successfully deleted.

delete/order/{orderId}
 

Description of individual errors that may have occurred during a request.

messagestringrequired

Description about individual errors occurred

codeinteger(int64)required
Example

Pizza menu Item

pricestring
descriptionstring
namestringrequired
imagestring
Example