Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using @apiResource as a @bodyParam? #851

Open
1 task done
mwillbanks opened this issue May 13, 2024 · 1 comment
Open
1 task done

Using @apiResource as a @bodyParam? #851

mwillbanks opened this issue May 13, 2024 · 1 comment

Comments

@mwillbanks
Copy link

Scribe version

4.31.0

Your question

It would be helpful as most API's actually leverage the exact model for inputs to be able to do something like:

@bodyParam [] App\Model\MyModel with=... omits=some_field,with_relation.field

It doesn't currently appear that this is possible but rather it's recommended to always use Form handlers but this would be a nice feature especially for quick building of the spec docs.

Docs

@mwillbanks mwillbanks added question Further information is requested triage labels May 13, 2024
@shalvah
Copy link
Contributor

shalvah commented May 27, 2024

Seems interesting. I'd welcome a PR with support for this, then we can refine the implementation from there.

@shalvah shalvah added feature-request and removed question Further information is requested triage labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants