Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flashcard setp 5 (custom Opperation)
<?php
// ...
/**
* @ApiResource(
* normalizationContext={"groups"={"userList"}},
* denormalizationContext={"groups"={"userCreate"}},
* validationGroups="userCreate",
* itemOperations={
* "get",
* "put",
* "changePassword"={
* "method"="PUT",
* "path"="/users/{id}/change-password",
* "denormalization_context"={"groups"={"userChangePassword"}},
* "validation_groups"={"userChangePassword"},
* "swagger_context"={
* "summary" = "Change user password"
* }
* }
* }
* )
*/
class User implements UserInterface
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.