Skip to content

Create '/karma/' endpoint #3

Description

@tlake

Object

{
  "group": {string},
  "user": {string},
  "name": {string},
  "upvotes": {int},
  "downvotes": {int}
}

API Endpoints

/karma/

  • GET:
    List all karma entries.

  • POST:
    Add upvote or downvote (create entry if non-existant)

/karma/?{query}/

  • GET:
    List all karma entries that match the {query}.
    Available query params (may be joined with &):
    • group=
    • user=
    • name=

/karma/{pk}/

  • GET:
    Describe the karma entry with primary key {pk}.

  • DELETE:
    Delete the karma entry with primary key {pk}.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions