knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.7k stars 303 forks source link

Pagination response doesn't appear to work #678

Closed laurenwilliams92 closed 1 year ago

laurenwilliams92 commented 1 year ago

Scribe version

4.19.0

PHP version

8.2

Framework

Laravel

Framework version

10.8.0

Scribe config

type => "laravel"
try_it_out.enabled => false
auth.enabled => true
auth.default => true
auth.name => "Authorization"
auth.use_value => "{AUTHKEY}"

What happened?

I have an endpoint that returns a resource collection with a paginated model

The response generated by scribe does not contain the paginated response, only that inside the 'data' array

Screenshot 2023-06-01 at 11 46 44 Screenshot 2023-06-01 at 11 49 03

Docs

shalvah commented 1 year ago

Fixed in 4.21.1