Download the PHP package jaeger-app/rest-client without Composer
On this page you can find all versions of the php package jaeger-app/rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaeger-app/rest-client
More information about jaeger-app/rest-client
Files in jaeger-app/rest-client
Package rest-client
Short Description A simple REST client to interact with Jaeger based installations in a RESTful manner
License MIT
Informations about the package rest-client
Jaeger REST Client
A simple REST client to interact with Jaeger REST API installations.
Installation
Add jaeger-app/rest-client
as a requirement to composer.json
:
Simple Example
Authentication
Jaeger uses HMAC-SHA authentication which is a simple key / secret paradigm to create hashed signatures. You can get/set your api key and secret, as well as the API URL endpoint, from your individual Jaeger installations.
Error Handling
If anything goes wrong with a request the library will return an ApiProblem object. Here's an example:
Hal Responses
For all successful responses from the Jaeger API, the library will return an instance of \JaegerApp\Rest\Client\Hal
object which is a wrapper for \Nocarrier\Hal.
Examples
Since Jaeger follows the [Richardson Maturity Model](Richardson Maturity Model) there are helper methods available for each HTTP verb. Below are some simple use case examples and their implementations
Take a Backup
Update Settings
Get Settings
Get Storage Locations
All versions of rest-client with dependencies
nocarrier/hal Version ^0.9.12
crell/api-problem Version ^1.7
php Version >=5.4.0
lib-curl Version *