kotamat/laravel-apispec-generator
RestAPI spec generator with Laravel test
0.1.0
2018-09-26 00:36 UTC
Requires
- laravel/framework: >=5.4
Requires (Dev)
- phpunit/phpunit: ^6.5
README
Rest API Spec generator with Laravel test
This Package overrides getJson(), putJson(), postJson(), deleteJson().
When you use those function, RestAPI specs are going to be generated.
Usage
Just use as base class for API-based test classes.
+use ApiSpec\ApiSpecTestCase;
class SomeTestCase extends ApiSpecTestCase
{
Output
The output format is recognized on several IDE.
ex) PHPStorm, IntelliJ IDEA...(2017.3 EAP https://blog.jetbrains.com/phpstorm/2017/09/editor-based-rest-client/