• 1 Post
  • 46 Comments
Joined 3 months ago
cake
Cake day: April 13th, 2024

help-circle

  • Yours is a little bit easier to read, but my main problems remain the same. Here’s some initial comments looking at your swagger link from the perspective of a user who is brand new to the lemmy API (and doesn’t use Javascript):

    • I can’t tell what the general flow of the API usage in general is. Am I supposed to login/authorize somehow first? Some common examples, especially in at least one programming language (whether that’s curl or python or whatever) I think would go a long way to help people understand what they’re supposed to do.

    • How do I know if I need to authorize for a particular endpoint?

    • What is the entire URL for any given endpoint? It’s never really explained clearly.

    • What is this “servers” dropdown? What’s the difference between those?

    • Endpoint descriptions are often unhelpful. /user says “Get the details for a person.” It doesn’t tell me this is actually how I’m supposed to find their comments or posts. Nothing tells us this.

    • We have to guess what endpoint we might need for a lot of things. Example: /post/like is also for dislikes, but it doesn’t tell you that. It also never tells you HOW to like or dislike anything, the valid values of score do not appear to be documented. And you’re left to assume that’s the right field to even use for it.

    • What is the content type of the request supposed to be? JSON is never mentioned anywhere.

    • What are these named “parameters”? Is that a query parameter? Why does it say “object” and “(query)”? Does this parameter go in the request body instead? /user shows a parameter called “GetPersonDetails” except in reality this name is (I guess) supposed to be completely ignored, because no part of the request actually uses the string “GetPersonDetails”.

    • Schema is missing for many endpoints, like the request part of /user.

    • What are all these fields under “GetPersonDetails”? Are they all required? Only some? It doesn’t say anything about it.

    • Many of the possible error codes are undocumented.

    There’s probably more but that’s the main stuff I think.












  • refalo@programming.devtoProgrammer Humor@lemmy.mlLemmy today
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    1 month ago

    they’re called crimeflare for a reason. besides being a government goldmine having access to everyone’s encrypted TLS traffic, they selectively enforce censorship in unethical ways.

    why block kiwifarms when you still allow hosting monkey torture sites? or sites for sourcing bathtub HRT secretly sent to minors? they shouldn’t be policing the internet in the first place. this is dangerously close to invalidating Section 230 protections as well.

    there’s so many more reasons it’s not even funny.