Skip to content

Commit

Permalink
added docs to response
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Sep 19, 2022
1 parent 3964d88 commit fb6fc03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/usage/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ Based on source code analysis, Scramble can generate endpoint responses document

- `JsonResource` response
- `AnonymousResourceCollection` of `JsonResource` items
- Some `response()` (`ResponseFactory`) support: `response()->make(...)`, `response()->json(...)`, `response()->noContent()`
- `LengthAwarePaginator` of `JsonResource` items

First two can be understood automatically from the code. The latest one needs to be documented in PhpDoc for now.
First three can be understood automatically from the code. The latest one needs to be documented in PhpDoc for now.

```php
use App\Models\TodoItem;
Expand Down

0 comments on commit fb6fc03

Please sign in to comment.