Add answers to REST API

This commit is contained in:
Raphael Michel
2017-07-02 16:34:55 +02:00
parent a530eda9fc
commit 0dc82b6a28
4 changed files with 45 additions and 4 deletions
+32
View File
@@ -76,6 +76,10 @@ checkins list of objects List of check-i
downloads list of objects List of ticket download options
├ output string Ticket output provider (e.g. ``pdf``, ``passbook``)
└ url string Download URL
answers list of objects Answers to user-defined questions
├ question integer Internal ID of the answered question
├ answer string Text representation of the answer
└ options list of integers Internal IDs of selected option(s)s (only for choice types)
===================================== ========================== =======================================================
@@ -152,6 +156,13 @@ Order endpoints
"datetime": "2017-12-25T12:45:23Z"
}
],
"answers": [
{
"question": 12,
"answer": "Foo",
"options": []
}
],
"downloads": [
{
"output": "pdf",
@@ -248,6 +259,13 @@ Order endpoints
"datetime": "2017-12-25T12:45:23Z"
}
],
"answers": [
{
"question": 12,
"answer": "Foo",
"options": []
}
],
"downloads": [
{
"output": "pdf",
@@ -359,6 +377,13 @@ Order position endpoints
"datetime": "2017-12-25T12:45:23Z"
}
],
"answers": [
{
"question": 12,
"answer": "Foo",
"options": []
}
],
"downloads": [
{
"output": "pdf",
@@ -428,6 +453,13 @@ Order position endpoints
"datetime": "2017-12-25T12:45:23Z"
}
],
"answers": [
{
"question": 12,
"answer": "Foo",
"options": []
}
],
"downloads": [
{
"output": "pdf",