Skip to content

Using @apiResource as a @bodyParam? #851

@mwillbanks

Description

@mwillbanks

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions