satooon/json-schema-gen
json-schema-gen
satooon/json-schema-gen - Response data convert to JSON Schema
Install
Install Composer
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
Add the following to your require block in composer.json config
"satooon/json-schema-gen": ">=0.0.1"
Configuration
Add to your app/config/app.php the service provider and aliases:
// Provider
'providers' => array(
'Satooon\JsonSchemaGen\JsonSchemaGenServiceProvider',
)
// Aliases
'aliases' => array(
'JsonSchemaGen' => 'Satooon\JsonSchemaGen\Facades\JsonSchemaGen',
)
Usage
GET request
php artisan command:JsonSchemaGen https://search.twitter.com/search.json
POST request and add heade paramater
php artisan command:JsonSchemaGen https://api.twitter.com/1.1/statuses/update.json -X POST -d '{"status":"text"}' -H "Authorization: OAuth ...."
Licence
MIT
Related Packages
barbushin/laravel-swoole-jsonrpc
JSON-RPC server and client based on swoole, for laravel and lumen framework.
8
1
metabytes-sro/laravel-formatter
A formatting library that converts data output between XML, CSV, JSON, TXT, YAML...
18,301
0
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.0.1 | >=5.4.0 | 4.2.* | MIT |