In this article you will learn how to retrieve and create service operations using the REST API. Service operations are Below list provides the preconfigured set of actions that can are configured to be performed on the tickets using these methods. Using these you can also create any other operation using the generic ODATA controller. .
Note: All service operations are called in the same way. You can refer to the sections below to understand how to Create and retrieve data using the generic OData controller.
The list of operations as follows.:
- Create -TicketApproval
- Create -sendCommunications
- Create -updatePendingTickets
- Retrieve -ChangeRequestsResolved
- Retrieve -getAssignToList
- Retrieve -getAssignToUserGroups
- Retrieve -getPriorityList
- Retrieve -getTicketsNotUpdated
- Retrieve -getTicketsbacklog
- Retrieve -getUnAssignedTickets
- Retrieve -getUsers
- Retrieve -listTicketsByLastModified
- Retrieve -notifyApprovers
- Retrieve -notifyApproversManager
- Retrieve -notifyToManager
- Retrieve -notifyToNextEsclationGroup
- Retrieve -resetPassword
- Retrieve -showMyTickets
- Retrieve -showOrgTickets
- Retrieve -showResolvedTickets
- Retrieve -showTicketsApproachingSLA
- Retrieve -ticketBacklog
- Retrieve -ticketsWaitingForApproval
- Retrieve -validateCSMTenant
POST- Create Ticket Approval
To create ticket approval data, specify the following information in Swagger. All service operations are called in the same way, here is an example of a call using this service operation.
- Click POST or Expand Operations to retrieve information.
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password - Click the Example Value text box. The operations displayed in the text box will be copied to the approvalNotification text box.
- Click Try it out to view the response. The following information is displayed in the Example Value box.
Valid Attribute { |
---|
Sample Payload to send for Approving ticket 100-132
Sample Payload { |
---|
POST- Send Communications
To create send communications data, specify the required parameters as stated above, in Swagger. To copy the example value, perform the following:
- Click the Example Value text box. The operations displayed in the text box will be copied to the Communication text box.
- Click Try it out to view the response. The following information is displayed in the Example Value box.
Valid Attribute { |
---|
Sample Payload to Send Email to recipients (testuser@acme.com and test@acme.com)
{
"RelevanceItemID":"200-125",
"Message": "This is a test message",
"Subject": "This is a test",
"CC":"testuser@acme.com",
"SendTo":"testuser@acme.com"
}
POST- Update Pending Tickets
To create data related to update pending tickets, specify the required parameters as stated above, in Swagger. To copy the example value, perform the following:
- Click the Example Value text box. The operations displayed in the text box will be copied to the Communication text box.
- Click Try it out to view the response. The following information is displayed in the Example Value box.
Valid Attribute { |
---|
Retrieve Service Operations
To retrieve the data from ISM use the appropriate service operations information, I general, . you can perform the following steps in Swagger to check the response.:
- Click GET or Expand Operations to retrieve information for a specific operation.
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password - Click Try it out to view the response.
You can validate the response by the response code displayed.
...