I have an order resource on server. the url looks like http://example.net/order/1 the get method on above url will return whole order object like
{ "orderNo": "1", "status": "order place", "orderTimestamp": "2018-11-22 14:28:12", "invoiceAddress": { "salutation": "M", "firstName": "Dieter", "lastName": "Wolf", "companyName": "", "street": "Michaelkirchstr.", "houseNo": "16", "zipCode": "31604", "city": "Raddestorf", "countryIsoCode": "DEU", "phone": "05763 82 60 80", "email": "[email protected]" }, "deliveryAddress": {} "items": [ { ... } ], "returnItemsDetails": [] } Now I wish to offer patch method on same api so one can update/add few details like delivery address. To update order detail one may request following request with patch http method on same order url
{ "deliveryAddress": { "deliveryType": "CUSTOMER", "salutation": "M", "firstName": "Dieter", "lastName": "Wolf", "companyName": "", "street": "Michaelkirchstr.", "houseNo": "16", "zipCode": "31604 ", "city": "Raddestorf", "countryIsoCode": "DEU", "phone": "05763 82 60 80", "email": "[email protected]" } } My question is what should be there in response of patch request according to REST standard? or Is there any document where I can find about response data and format for REST api.