Highlighted
Regular Contributor.
Regular Contributor.
1211 views

Can SM use REST api

Hi friends,

 

I wanna use REST api at Service Manager. My product version is 9.51. Service manager can use SOAP api. Unfortunately but i can use REST api. Can Service manager use rest api .

 

Thx

0 Likes
7 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can SM use REST api

SM has Restful API since sm 9.41. Have a look here to find out how to use RESTful API in 9.51.

https://docs.software.hpe.com/SM/9.51/Codeless/Content/Search.htm#search-rest api

 

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: Can SM use REST api

thx for your reply,

 

But, Sm can publish the rest api. I wanna use rest api with sms rest web services at service manager. How integration this. Can we use for this.

thx

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Can SM use REST api

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: Can SM use REST api

How will I respond to rest api; phone number and content ?

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Can SM use REST api

Hi @omerfarukaydin,

what do you mean exactly? I do not understand your question.

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: Can SM use REST api

How can I integrate? sms gateway with service manager. Is the dohttprequest parameter enough?

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Can SM use REST api

Hi,

if your SMS Gateway has a RESTful API, dohttprequest function should be enough.


 Is the dohttprequest parameter enough?

I don't think so 🙂

You need
* the method (POST/GET/PUT)
* Header Informations (auth, encoding etc.)
* Request body (optional, only needed for PUT/POST)
* the api url which should be executed 

The example inside the documentation is a good startpoint which explains every available argument for the dohttprequest function.

If you need an example for doHTTPRequest(), you can check the following thread:

https://community.saas.hpe.com/t5/Service-Manager-Service-Center/SM9-32-Restful-Response-in-Javascript/m-p/1034969

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.