Replies: 2 comments
-
edit: the api does only return the specified data, however the spec shows more columns than are actually returned and i believe this is confusing since the spec doesnt actually match what is returned by the api |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a big weakness in my opinion. Resources are a must-have to hide private columns. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curious about the spec builder,
I have an api set up that works, for my controllers i'm defining a protected $resource and that resource is set to return specific fields, however whenever i use the spec generation tool 'php artisan orion:specs`, the generated spec shows schema directly from the database columns instead of what i have limited in the resource class for the object, is this the intended behavior? shouldn't the spec generation only include the data that i'm returning in the resource class?
Beta Was this translation helpful? Give feedback.
All reactions