Download the PHP package drunomics/xtrf-rest-client without Composer
On this page you can find all versions of the php package drunomics/xtrf-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drunomics/xtrf-rest-client
More information about drunomics/xtrf-rest-client
Files in drunomics/xtrf-rest-client
Package xtrf-rest-client
Short Description XTRF REST client library based on Guzzle
License GPL-2.0+
Homepage https://github.com/drunomics/xtrf-rest-client
Informations about the package xtrf-rest-client
XTRF REST client library
REST client library based on Guzzle.
The client provides a nice API using model classes for the data structure. The models are generated based upon the Swagger REST service specification. See http://swagger.io/.
The specification (swagger.json) can be edited using Swagger's online editor: http://editor.swagger.io
Usage
Notes on using swagger-UI:
see https://github.com/swagger-api/swagger-ui
Swagger-ui can be used to provide a good overview and curl commands for testing. The following instructions describe how to run swagger-ui easily:
-
Run swagger-ui via "composer swagger-ui" command.
-
Start with the authentication call. It's result needs to be copied into the api-key field at the top.
-
The cookie authentication does not work from swagger. But the generated curl commands do. If you have troubles with SSL verification you can prepend the curl options:
curl -3 --insecure OTHER OPTIONS
Generate models based upon swagger spec
- Run
composer install
in the libraries directory - Run
composer generate
- that's it.
All versions of xtrf-rest-client with dependencies
symfony/serializer Version ~2.8
symfony/property-access Version ~2.3|~3.0.0
guzzlehttp/guzzle Version ~6.2.1