How to create the REST API Method

  1. Right-click your REST API and choose Add REST API Method.
  2. Give a name to your REST API method such as GetCustomerData, AddCustomer, UpdatePaymentMethod.
  3. Set the HTTP Method property corresponding to the action your method will perform: GET – Read POST – Create PUT – Update DELETE – Delete
  4. Write the method as an action that fetches or transforms the data you need. Examples: GetCustomerData will return the data of the particular customer such as Customer Name, Customer Address, Customer ID.

Was this helpful?