Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

UrlFnService - URL Function Service

UrlFnService is an Angular Factory in the Remote module with the name urlfn.js. It provides functions that build rest and websocket URLs for rest and websocket requests. To use these functions, see the documentation on injecting Angular services.

NameSummary
rsUrlConstruct a URL for rest calls.
wsUrlConstruct a URL for websocket calls.

Function Descriptions

rsUrl

Example UsageArgumentsReturn Value
ufs.rsUrl(path);path - string of the path you want the rest call to request to – just the ending path, this function will construct the rest of the URL for you

a string of the form:

http[s]://<HOST>:<PORT>/onos/ui/rs/path

[s] – if applicable

 

wsUrl

 

 

 

 

 

 

 

 

 

 

  • No labels