IB REST Methods and Content types

REST methods determine the HTTP method for manipulating the resources defined in the service operation. The valid values are listed and described in the following table and can all be used for provider and consumer service operations:

DELETE - Delete an existing resource.

GET - Retrieve a representation of a resource.

HEAD - Identical to a GET except that no message body is returned in the response.

POST - Create a new resource to an existing URL.

PUT - Create a new resource to a new URL, or modify an existing resource to an existing URL.

MIME Content-Types

When you specify a message for a REST service operation, you must also specify the MIME content-type of the message. PeopleSoft supports the following content types for request and response messages used for REST service operations:

  • application/json
  • application/xml
  • text/xml
  • text/plain
  • text/html



No comments:

Post a Comment

PeopleCode to retrieve Google map between two addresses

  PeopleCode Example: /* Define constants for the API request */ Local string &origin = "123 Main St, Anytown, USA";   /* ...