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.
Name | Summary |
---|---|
rsUrl | Construct a URL for rest calls. |
wsUrl | Construct a URL for websocket calls. |
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 |
Example Usage | Arguments | Return Value |
---|---|---|
ufs.wsUrl(path , wsport , host ); |
| a string of the form: ws[s]:// [s] – if applicable |