Creating an Operation for an Existing Service
Add a new operation to an existing service in the Service Workbench.
Implementation:
- Click
to access the Service Workbench tab.
- Select the provider and service to which you want to add the operation.
- Open the Service Options menu and select Service Operations. This opens the Manage Operations interface.
- Click Add to create a new operation.
- Select the operation and switch to the Details tab.
- Enter a title for the operation in the Name field.
- (Optional) The Reference field will automatically fill to match the name you entered. However, you can edit this if required. The reference is used when calling the service using the WorkbenchRequest function.
- Enter a Description, explaining the purpose of the operation.
- Enter the service's website address in the Service Web Page URL field.
- (Optional) Click the Test URL button to open the website in your default browser to ensure it is correct.
- Switch to the Parameters tab.
- Add all the Parameters required by the operation, along with their values. The parameters determines what the operation does and how its functionality is executed, so these will differ depending on the API service you are using.
Many RESTful API web services will provide reference documentation for which parameters and values are required. For example, you can find comprehensive information about Microsoft's API services in their reference catalog.
- When you've added all necessary parameters, click Save.