Package Data | |
---|---|
Maintainer Username: | sato00 |
Maintainer Contact: | yy.satooon@gmail.com (Yoshiori Sato) |
Package Create Date: | 2015-04-01 |
Package Last Update: | 2015-04-01 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:03:12 |
Package Statistics | |
---|---|
Total Downloads: | 681 |
Monthly Downloads: | 2 |
Daily Downloads: | 1 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 0 |
satooon/json-schema-gen - Response data convert to JSON Schema
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"
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',
)
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 ...."
MIT