public function HttpServiceApiHandlerInterface::getServicesApi in HTTP Client Manager 8
Same name and namespace in other branches
- 8.2 src/HttpServiceApiHandlerInterface.php \Drupal\http_client_manager\HttpServiceApiHandlerInterface::getServicesApi()
Gets all available services Api.
example_api:
title: "Example fake API"
api_path: "src/api/example-api.json"
base_url: "http://www.example.com/services"
another_example_api:
title: "Another Example fake API"
api_path: "../../../vendor/example/api/another-example-api.json"
base_url: "http://api.example.com/v2"
Return value
array An array whose keys are api names and whose corresponding values are arrays containing the following key-value pairs:
- title: The human-readable name of the API.
- api_path: The Guzzle description path (relative to module directory).
- base_url: The Service API base url.
1 method overrides HttpServiceApiHandlerInterface::getServicesApi()
- HttpServiceApiHandler::getServicesApi in src/
HttpServiceApiHandler.php - Gets all available services Api.
File
- src/
HttpServiceApiHandlerInterface.php, line 34
Class
- HttpServiceApiHandlerInterface
- Interface HttpServiceApiHandlerInterface.
Namespace
Drupal\http_client_managerCode
public function getServicesApi();