Skip to content

User submissions

Marcel Guzik edited this page Feb 27, 2018 · 1 revision

A user can submit a quote via an API by a POST request:

/api/submit

Quote: A z dziećmi jest jak z pająkami...
Date: 27.02.2018
Annotation: kek

There will also be a form on the website that allows to submit in a more user-friendly way.

The administrators will then be able to review submitted quotes:

/api/submissions?secret=[32chars secret]

{
    "submissions": [
        {
            "id": "2137",
            "quote": "..."
        },
    ]
}

An admin can then accept or reject the submission:

/api/submissions/:id?action=[reject|accept]&secret=[32chars secret]

{
    "status": "success"
}
Clone this wiki locally