How to create the REST API Method
- Right-click your REST API and choose Add REST API Method.
- Give a name to your REST API method such as GetCustomerData, AddCustomer, UpdatePaymentMethod.
- Set the HTTP Method property corresponding to the action your method will perform: GET – Read POST – Create PUT – Update DELETE – Delete
- 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.