ApiController
class ApiController extends AbstractController
Api Controller class
Properties
private ApiServiceInterface | $apiService | Stores ApiServiceInterface | |
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private EventDispatcherInterface | $dispatcher | Stores EventDispatcherInterface | |
private UserServiceInterface | $userService | Stores UserServiceInterface |
Methods
No description
Lists all the users
Searches for %{term}% in email
Creates the user using the API
Authenticates the user using the API and returns the JWToken
Returns the json for a specific user using "/user/api/display/{identifier}"
Modifies specific user using "/user/api/modify/{identifier}"
Deletes specific user using "/user/api/delete/{identifier}"
Adds role to specific user using "/user/api/add-role/{identifier}/{role}"
Adds role to specific user using "/user/api/delete-role/{identifier}/{role}"
Modifies roles to specific user using "/user/api/modify-role/{identifier}"
Allows to change password for specific user using "/user/api/change-password"
Allows to reset password for specific user using "/user/api/reset-password"
Confirm the reset of the password for specific user using "/user/api/reset-password-confirm"
Export the user's data in JSON
Details
at line 58
__construct(ApiServiceInterface $apiService, ConfigServiceInterface $configService, EventDispatcherInterface $dispatcher, UserServiceInterface $userService)
at line 81
JsonResponse
listAll(Request $request, PaginatorInterface $paginator)
Lists all the users
at line 110
JsonResponse
search(Request $request, PaginatorInterface $paginator, string $term)
Searches for %{term}% in email
at line 138
JsonResponse
create(Request $request, ValidatorInterface $validator)
Creates the user using the API
at line 178
JsonResponse
authenticate(Request $request)
Authenticates the user using the API and returns the JWToken
at line 211
JsonResponse
display($identifier)
Returns the json for a specific user using "/user/api/display/{identifier}"
at line 235
JsonResponse
modify(Request $request, $identifier)
Modifies specific user using "/user/api/modify/{identifier}"
at line 268
JsonResponse
delete(Request $request, $identifier)
Deletes specific user using "/user/api/delete/{identifier}"
at line 303
JsonResponse
addRole($identifier, $role)
Adds role to specific user using "/user/api/add-role/{identifier}/{role}"
at line 332
JsonResponse
deleteRole($identifier, $role)
Adds role to specific user using "/user/api/delete-role/{identifier}/{role}"
at line 358
JsonResponse
modifyRoles(Request $request, $identifier)
Modifies roles to specific user using "/user/api/modify-role/{identifier}"
at line 382
JsonResponse
changePassword(Request $request)
Allows to change password for specific user using "/user/api/change-password"
at line 401
JsonResponse
resetPassword(Request $request)
Allows to reset password for specific user using "/user/api/reset-password"
at line 427
JsonResponse
resetPasswordConfirm(Request $request, $token)
Confirm the reset of the password for specific user using "/user/api/reset-password-confirm"
at line 449
JsonResponse
export(Request $request)
Export the user's data in JSON