Summary
The user info card is a Vue component that makes an API request to obtain data needed for display. This task is about creating the API endpoint.
Background
- Add a REST endpoint in Extension:CheckUser
- Add access controls to the endpoint; the endpoint should be restricted to logged in, permanent account users
- At this point in time, a bulk retrieval endpoint isn't needed. The endpoint should support a single user ID and return data for just that user.
- We should aim to return a response within 100ms
User story
As a frontend developer, I need an API endpoint to call in order to populate data for a Vue component.
Acceptance criteria
- An API endpoint for /checkuser/v0/userinfo/{id} exists
- The API returns JSON serialized data from the CheckUserUserReputationService