Service Desk Practitioners Forum
cancel

How to run a Web API

Highlighted
Deepika G
Respected Contributor.

How to run a Web API

Hello,

Can someone please list down the steps that need to be followed inorder to run a web API.
I have a .java file. Ia m not sure as to what class files need to be included in the class path, does the .java file need to be compiled and lastly how do I run this file - from the SD application or externally.

Thanks.
3 REPLIES
Vasily Kamenev
Acclaimed Contributor.

Re: How to run a Web API

hi
The 1st compile, 2nd - run from command line:
java -cp web-api.jar yourclassName ...
arguments insert in line if that requared for your class.

Vasily
Robert S. Falko
Acclaimed Contributor.

Re: How to run a Web API

Hello,

Some more information:

Typically you will use a DB or UI rule that selects an action that returns a value to OVSD. You are asked there which URL to use to run your script, which script uses the methods of the Web API. This is if you want to return a value to OVSD.

Remember that you must recompile if you create New (as opposed to activating existing) Custom Fields.

-Josh
Deepika G
Respected Contributor.

Re: How to run a Web API

Required information gotten