Skip to content
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

Controllers das rotas Users, Product, Squad e Member #8

Open
lthurler opened this issue Nov 15, 2024 · 0 comments
Open

Controllers das rotas Users, Product, Squad e Member #8

lthurler opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@lthurler
Copy link
Collaborator

lthurler commented Nov 15, 2024

Criação dos controllers com as funções dos endpoints da tabela users, product, squad e member.

Autenticação:

post '/login', 'App\Controller\AuthController@login' -> login

Users:

['GET'], '/users', 'App\Controller\UserController@index'
['PUT'], '/user/{id}', 'App\Controller\UserController@update'
['DELETE'], '/user/{id}', 'App\Controller\UserController@del'
['POST'], '/user', 'App\Controller\UserController@create'
['POST'], '/user/permission/{uuid}', 'App\Controller\UserController@permission' -> logica antiga para alterar userType
['PATCH'], '/user/alterPermissions/{uuid}', 'App\Controller\UserController@alterUserPermission'
['PATCH'], '/user/type/{id}', 'App\Controller\UserController@updateUserType'

Product:

(['GET'], '/product/{uuid}', 'App\Controller\ProductController@show');
(['POST'], '/product', 'App\Controller\ProductController@create');
(['PUT'], '/product/{uuid}', 'App\Controller\ProductController@update');
(['DELETE'], '/product/{uuid}', 'App\Controller\ProductController@delete');
(['POST'], '/product/active/{uuid}', 'App\Controller\ProductController@active');
(['GET'], '/products/[{userUuid}]', 'App\Controller\Product@index');

Squad:

(['GET'], '/squads/[{productUuid}]', 'App\Controller\SquadController@index');
(['GET'], '/squad/{uuid}', 'App\Controller\SquadController@show');
(['POST'], '/squad', 'App\Controller\SquadController@create');
(['PUT'], '/squad/{uuid}', 'App\Controller\SquadController@update');
(['DELETE'], '/squad/{uuid}', 'App\Controller\SquadController@delete');

Member:

['GET'], '/squad/{uuid}/members', 'App\Controller\MemberController@index');
(['GET'], '/squad/{uuid}/member/{memberUuid}', 'App\Controller\MemberController@show');
(['POST'], '/squad/{uuid}/member', 'App\Controller\MemberController@create');
(['PUT'], '/squad/{uuid}/member/{memberUuid}', 'App\Controller\MemberController@update');
(['DELETE'], '/squad/{uuid}/member/{memberUuid}', 'App\Controller\MemberController@delete');

@lthurler lthurler self-assigned this Nov 15, 2024
@lthurler lthurler converted this from a draft issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready to QA
Development

No branches or pull requests

1 participant