hjens / kisseklyv_api

Som KittySplit men gratis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • kisse_id (required)

Response

  • 200 OK on success
  • 404 Not Found if the kisse does not exist
{
  "kisse_id": "af23ce8",
  "people": ["Adam", "Bertil", "Cesar"],
  "description": "Ski trip",
  "expenses": [
    {"Name":  "Adam", "Amount":  10, "Description":  "Food"},
    {"Name":  "Adam", "Amount":  50, "Description":  "Drink"},
    {"Name":  "Bertil", "Amount":  100, "Description":  "Misc"}
  ]
}

Person

Create a new person

POST /person

Arguments

  • kisse_id
  • name

Response

  • 409 Conflict if the person name is not unique within the kisse
  • 201 Created on success
{
  "message": "Person created",
  "data": {
      "person_id": "ab23ce8"
  }
}

Get info about person

GET /person

Arguments

  • kisse_id
  • person_id

Response

  • 200 OK on success
  • 404 Not Found if the person does not exist
{
  "person_id": "cb67a",
  "name": "Kalle"
}

About

Som KittySplit men gratis


Languages

Language:Python 98.3%Language:Mako 1.1%Language:Shell 0.6%