Skip to content

Minor confusion with user feed endpoint docs #3

@reallytiredofclowns

Description

@reallytiredofclowns

Hi,

Should we be reporting API questions in the docs repo or on the Discuit repo? In working with the API, I've noticed some issues where the old documentation didn't seem to match up with what was actually returned.

One example is the user feed endpoint.

The descriptive text says, "Feeds of banned users can only be viewed by admins. For anyone else, a 403 error is returned." However, the chart mentions 401 should be returned for banned users.

The error code returned seems to even differ depending on the request's logged-in status. Test case: https://discuit.net/api/users/Spruce/feed

I get {"status":403,"code":"not_admin","message":"You are not an admin."} when logged in and {"status":401,"code":"user_banned","message":"User is banned."} when logged out.

From the text, it feels like 403 should be returned whether logged in or not, if I'm not an admin.

Also, I can go through some of my other notes and point out other API issues, but I don't know Go, so can't tell in general if something is a documentation issue or a code issue. Were you expecting people to actually do pull requests to help update the documentation, or is opening an issue enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorSomething's wrong with the contentneeds clarificationClarification is needed before this can be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions