- Apis\Api
- Apis\ApiList\ApiListApi
abstract class Apis\ApiList \ ApiListApi
- All known direct subclasses:
- ApiList
Method Summary
Name | Description |
---|---|
getAPIs() | This can be controlled e.g. with component-discovery |
getEndpoint() | |
getJSON($arguments) | Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. |
Inherited Method Summary
Name | Description |
---|---|
render($arguments) |
Try and get the JSON result for this API, and return either {success: true: result: $json} or {success: false, error: $message} if an exception occured. (from Api)
|
abstract function getAPIs()
This can be controlled e.g. with component-discovery
- Returns:
a list of all Api instances that we will iterate over
public function getEndpoint()
- Overrides:
- getEndpoint()
- Returns:
e.g. "/api/v1/currency/:currency"
public function getJSON($arguments)
Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. (from getJSON)
- Overrides:
- getJSON($arguments)