API Documentation for: 1.0.1
Show:

URIUtils Class

Utility function for handling the URI request strings

Item Index

Methods

Methods

methodCallToUri

(
  • methodCall
)
String static

Convert a method call (getAllUsers) to a URI stub (get-all-users)

Parameters:

  • methodCall String

    The name of the method

Returns:

String:

The method call as a URI stub

processURI

(
  • uriRequest
  • ignore
)
Array static

Process the URI as an array with different pieces

Parameters:

  • uriRequest String

    The URI request being made

  • ignore Int

    The number of elements to exclude from the beginning

Returns:

Array:

The URI request where each stub is an element

uriToMethodCall

(
  • uri
)
String static

Convert a uri (eg. get-all-users) to method call (e.g. getAllUsers)

Parameters:

  • uri String

    The input uri (lowercase, hyphen separated)

Returns:

String:

The method call name (lower, camel-cased)