-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Document input/output resource attribute #646
Conversation
core/dto.md
Outdated
use App\Dto\Output; | ||
|
||
/** | ||
* @ApiResource(attributes={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use the shortcuts inputClass
and outputClass
directly
core/dto.md
Outdated
|
||
/** | ||
* {@inheritdoc} | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be remove in the example
core/dto.md
Outdated
use App\Dto\Input; | ||
use App\Dto\Output; | ||
|
||
class InputDataPersister implements DataPersisterInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class InputDataPersister implements DataPersisterInterface | |
final class InputDataPersister implements DataPersisterInterface |
Shouldn't we remove the previous sections in the same file (https://api-platform.com/docs/core/dto/#how-to-use-a-dto-for-writing). |
Yeah we should def remove the previous sections, but we need swagger support first :|. |
api-platform/core#2235 ping @silverbackdan