Skip to content

Improve / Expand API #158

Closed
Closed

Description

@geoffrey-wu
  • Some of the endpoints return full objects while others only return arrays. I think it might be worth converting one that don't return objects (like api/check-answer) into returning objects for consistency and easier use for developers.
  • Many questions in the database are missing certian fields in the schema like formatted_answer, could definitely be a problem for devs expecting all fields to be complete.
  • Quickstarts and cookbooks
  • probably should change api/random-question to GET soon
  • accordion design???

Originally posted by @g3ner1c in #150 (comment)

Activity

  1. geoffrey-wu commented on Apr 26, 2023

    @geoffrey-wu
    MemberAuthor

    Many questions in the database are missing certian fields in the schema like formatted_answer, could definitely be a problem for devs expecting all fields to be complete.

    Ideally in the future, I get around to reparsing all the sets so they all have a formatted_answer field; should mark somewhere that some fields are optional and should check for null when using them. This makes sense for fields like alternate_subcategory that one should not expect on all fields.

  2. added
    documentation
    on May 4, 2023
  3. linked a pull request that will close this issueImprove API Consistency #174on May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions