The User API provides endpoints for retrieving and updating user information. All endpoints require authentication via token-based authentication.Base URL: /api/users/Authentication: Token authentication required. Include the token in the Authorization header:
Retrieve a list of users. Note: This endpoint only returns the authenticated user due to queryset filtering in footycollect/users/api/views.py:17-19.Authentication Required: YesResponse
Retrieve the authenticated user’s information. This is a custom action endpoint defined in footycollect/users/api/views.py:21-24.Authentication Required: YesResponse
The UserViewSet uses username as the lookup field instead of the default ID. All user detail endpoints use the username in the URL path.
The list users endpoint is filtered to only return the authenticated user. This is implemented in footycollect/users/api/views.py:17-19 via the get_queryset method.
For full interactive API documentation with the ability to test endpoints, visit /api/docs/ when running the FootyCollect server.