Deleting Operations from REST Service

Procedure

  1. Select an operation in a REST service. Right-click the operation and select Refactor > Delete Operation
    If you created a REST service using wizard, the Delete Operation dialog box is displayed.

    If you created a REST service using external swagger file, the following dialog box is displayed:

    Note: It is recommended to keep the Generate Implementation Specification check box selected to generate a swagger file.
  2. Optional. To see the changes that are performed, click Preview.

  3. Once you delete an operation, remove the constructor implementation by selecting the Remove OnMessage.

    Important: If you created a REST service using external swagger file, then to reflect the changes in the REST reference binding, a new reference binding should be created using the newly generated swagger file. However, if you created a REST service using wizard, then create a new reference binding with an existing swagger file only.
    The operation is deleted.