Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/messenger.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use Symfony\Component\Validator\Constraints as Assert;
* "post"={"status"=202}
* },
* itemOperations={},
* outputClass=false
* output=false
* )
*/
final class ResetPasswordRequest
Expand All @@ -53,7 +53,7 @@ Because the `messenger` attribute is `true`, when a `POST` will be handled by AP
For this example, only the `POST` operation is enabled.
We use the `status` attribute to configure API Platform to return a [202 Accepted HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202).
It indicates that the request has been received and will be treated later, without giving an immediate return to the client.
Finally, the `output_class` attribute is set to `false`, so the HTTP response that will be generated by API Platform will be empty, and the [serialization process](serialization.md) will be skipped.
Finally, the `output` attribute is set to `false`, so the HTTP response that will be generated by API Platform will be empty, and the [serialization process](serialization.md) will be skipped.

## Registering a Message Handler

Expand Down