tangara goh wrote:I was asked to produce another end point with the input parameters = boolean in Order class which has instance Variable Enum status : APPROVED, DELIVERED AND PENDING.
Is the
Order resource specified in the request or the response?
Is the
boolean value part of the
Order resource, or is it outside of the resource and used to indicate how the request should be processed, or maybe part of the response to indicate the outcome of the request?
tangara goh wrote:In a put request, how do I make it work ?
Generally a
POST method is used to create a new resource, and a
PUT method is used to update an existing resource (although
PUT is sometimes used to create a new resource if the resource identifier is provided by the requestor). Are you creating a new resource, or updating an existing resource?
tangara goh wrote:Should I just use Postman to do a key value with status and approved
Does
key value mean that you would be putting information in the HTTP header (for the request and/or response), or do you mean a key/value pair in a JSON or other type of structure?
tangara goh wrote:Will Postman be able to read the key value and the body with the Approved changed to delivered concurrently ?
Postman really just takes your input, builds a HTTP request, sends the request to the server, receives the response, and then lightly parses and displays the received information. The application data specified in a request or response can be included in the HTTP headers (normally metadata, not resource data) and/or the body.