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.
Function Descriptions
rsUrl
Example Usage | Arguments | Return Value |
---|---|---|
ufs.rsUrl(path ); | path - string of the path you want the rest call to send a request to | a string of the form: http[s]://<HOST>:<PORT>/onos/ui/rs/ [s] – if applicable |
wsUrl
Example Usage | Arguments | Return Value |
---|---|---|
ufs.wsUrl(path , wsport , host ); |
| a string of the form: ws[s]:// [s] – if applicable |