Class: Routes

Routes

Manages Routes on Cloud Foundry

Constructor

new Routes(endPoint)

Parameters:
Name Type Description
endPoint String [CC endpoint]
Source:

Methods

add(routeOptions) → {JSON}

Parameters:
Name Type Description
routeOptions JSON [route options]
Source:
Returns:
[return a JSON response]
Type
JSON

getRoute(guid) → {JSON}

Parameters:
Name Type Description
guid String [route guid]
Source:
Returns:
[return a JSON response]
Type
JSON

getRoutes(filter) → {JSON}

Parameters:
Name Type Description
filter JSON [Search options]
Source:
Returns:
[return a JSON response]
Type
JSON
Example
Paging: /v2/routes?order-direction=asc&page=2&results-per-page=50

qs: {
    'page': page,
    'results-per-page': 50
}

remove(guid) → {String}

Parameters:
Name Type Description
guid String [route guid]
Source:
Returns:
[output]
Type
String