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

API does not expose following list #685

Open
spaceninja opened this issue Apr 16, 2023 · 1 comment
Open

API does not expose following list #685

spaceninja opened this issue Apr 16, 2023 · 1 comment

Comments

@spaceninja
Copy link
Member

On MLTSHP.com when viewing a user's page, you can see who they are following. This information is not exposed in the API.

@spaceninja
Copy link
Member Author

spaceninja commented May 1, 2023

Suggestion: Add the following new endpoint:

GET /api/user_id/(int: userid)/following

(this should also be available on the /api/user_name endpoint.)

Returns a list of users who are followed by the given numeric user ID.

Parameters

  • userid – the user's numeric ID

Status Codes

  • 200 OK – the response is an object containing:
    • following – a list of users followed by the user
  • 404 Not Found – no such user with that ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant