help: update list of cards / global list of forms API output to match reality

This commit is contained in:
Frédéric Péters 2020-12-06 17:13:37 +01:00
parent b1ffd25470
commit d1ed3df076
2 changed files with 52 additions and 45 deletions

View File

@ -88,23 +88,28 @@ effacées, puis effectuera pour chacune les actions nécessaires.
<screen>
<output style="prompt">$ </output><input>curl -H "Accept: application/json" \
https://www.example.net/api/cards/parkings/list<var>?signature…</var></input>
</screen>
<code mime="application/json">
[
{
url: "https://www.example.net/backoffice/data/parkings/1/",
last_update_time: "2015-03-26T23:08:45",
receipt_time: "2015-03-26T23:08:44",
id: 1
},
{
url: "https://www.example.net/backoffice/data/parkings/3/",
last_update_time: "2015-03-27T12:11:21",
receipt_time: "2015-03-27T12:45:19",
id: 3
}
]
<output>{
"data": [
{
"id": 1,
"text": "Parking de la place",
"url": "https://www.example.net/backoffice/data/parkings/1/",
"last_update_time": "2015-03-26T23:08:45",
"receipt_time": "2015-03-26T23:08:44",
"display_id": "12-1",
"display_name": "Parkings - n°12-1"
},
{
"id": 3,
"text": "Parking de la rivière",
"url": "https://www.example.net/backoffice/data/parkings/3/",
"last_update_time": "2015-03-27T12:11:21",
"receipt_time": "2015-03-27T12:45:19",
"display_id": "12-3",
"display_name": "Parkings - n°12-3"
}
]
}
</code>
<p>

View File

@ -282,16 +282,16 @@ etc.).
<code mime="application/json">
[
{
url: "https://www.example.net/inscriptions/1/",
last_update_time: "2015-03-26T23:08:45",
receipt_time: "2015-03-26T23:08:44",
id: 1
"url": "https://www.example.net/inscriptions/1/",
"last_update_time": "2015-03-26T23:08:45",
"receipt_time": "2015-03-26T23:08:44",
"id": 1
},
{
url: "https://www.example.net/inscriptions/3/",
last_update_time: "2015-03-27T12:11:21",
receipt_time: "2015-03-27T12:45:19",
id: 3
"url": "https://www.example.net/inscriptions/3/",
"last_update_time": "2015-03-27T12:11:21",
"receipt_time": "2015-03-27T12:45:19",
"id": 3
}
]
</code>
@ -374,26 +374,28 @@ nest pas nécessaire de préciser lidentifiant dun utilisateur.
</screen>
<code mime="application/json">
[
{
url: "https://www.example.net/inscriptions/1/",
last_update_time: "2015-03-26T23:08:45",
receipt_time: "2015-03-26T23:08:44",
id: 1
},
{
url: "https://www.example.net/inscriptions/3/",
last_update_time: "2015-03-27T12:11:21",
receipt_time: "2015-03-27T12:45:19",
id: 3
},
{
url: "https://www.example.net/signalement/1/",
last_update_time: "2015-03-25T14:14:21",
receipt_time: "2015-03-25T14:48:20",
id: 1
}
]
{
"data": [
{
"url": "https://www.example.net/inscriptions/1/",
"last_update_time": "2015-03-26T23:08:45",
"receipt_time": "2015-03-26T23:08:44",
"id": 1
},
{
"url": "https://www.example.net/inscriptions/3/",
"last_update_time": "2015-03-27T12:11:21",
"receipt_time": "2015-03-27T12:45:19",
"id": 3
},
{
"url": "https://www.example.net/signalement/1/",
"last_update_time": "2015-03-25T14:14:21",
"receipt_time": "2015-03-25T14:48:20",
"id": 1
}
]
}
</code>
<p>