Skip to content

Commit

Permalink
feat: UserBundle config start
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 11, 2022
1 parent 8df9fa3 commit 498fd5d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test:
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCoreBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCompatBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizRozierBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizUserBundle/src
php -d "memory_limit=-1" vendor/bin/phpstan analyse -c phpstan.neon
php -d "memory_limit=-1" bin/console lint:twig ./lib

Expand Down
43 changes: 43 additions & 0 deletions config/api_resources/user.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
RZ\Roadiz\CoreBundle\Entity\User:
collectionOperations: [ ]
itemOperations:
signup:
method: 'POST'
path: '/signup'
controller: RZ\Roadiz\UserBundle\Controller\SignupController
openapi_context:
summary: Create a new public user
description: |
Create a new public user. User won't be validated and will not be granted with any role
validate:
method: 'POST'
path: '/validate'
controller: RZ\Roadiz\UserBundle\Controller\ValidateController
openapi_context:
summary: Validate a public user email
description: |
Validate a public user email with a unique and temporary token
password_request:
method: 'POST'
path: '/password_request'
controller: RZ\Roadiz\UserBundle\Controller\PasswordRequestController
openapi_context:
summary: Request a public user new password
description: |
Initiate a public user new password request (forgot my password)
password_reset:
method: 'POST'
path: '/password_reset'
controller: RZ\Roadiz\UserBundle\Controller\PasswordResetController
openapi_context:
summary: Reset a public user password
description: |
Change a public user password against a unique temporary token (forgot my password)
information:
method: 'GET'
path: '/me'
controller: RZ\Roadiz\UserBundle\Controller\InformationController
openapi_context:
summary: Get current user (JWT) information
description: |
Get current user (JWT) information

0 comments on commit 498fd5d

Please sign in to comment.