Skip to content

Commit

Permalink
#122. Change readme - mistakes and generated dirs correction
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Dec 11, 2018
1 parent ab4c112 commit 1492ccf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ The state of the server will not be changed by a request if any individual opera

#### Static access token
In ```QueryParams``` you can declare the ```access_token``` property, that will be placed to ```Modules/{ModuleName}/Config/config.php```.
Generator will create ```App\Http\Requests\ApiAccessToken.php``` global FormRequest.
Generator will create ```Modules\{ModuleName}\Http\Requests\ApiAccessToken.php``` FormRequest.

To activate this check on every request - add ApiAccessToken FormRequest to ```app/Http/Kernel.php```, ex.:
```php
Expand All @@ -833,7 +833,7 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\App\Http\Requests\ApiAccessToken::class,
\Modules\V2\Http\Requests\ApiAccessToken::class,
];
```
Generated configuration part:
Expand Down Expand Up @@ -1619,8 +1619,6 @@ Laravel project example with generated files can be found here - https://github

To get deep-into ```Open API``` specification - https://swagger.io/specification/

To get deep-into ```RAML``` specification - https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/

To get deep-into ```JSON-API``` specification - http://jsonapi.org/format/
JSON-API support is provided, particularly for output, by Fractal package - http://fractal.thephpleague.com/

Expand Down

0 comments on commit 1492ccf

Please sign in to comment.