From d1ed3df076495b39315b830d9d0a546e4a7fdd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 6 Dec 2020 17:13:37 +0100 Subject: [PATCH] help: update list of cards / global list of forms API output to match reality --- help/fr/api-cards.page | 39 +++++++++++++++------------- help/fr/api-get.page | 58 ++++++++++++++++++++++-------------------- 2 files changed, 52 insertions(+), 45 deletions(-) diff --git a/help/fr/api-cards.page b/help/fr/api-cards.page index b36899704..5dfc051e9 100644 --- a/help/fr/api-cards.page +++ b/help/fr/api-cards.page @@ -88,23 +88,28 @@ effacées, puis effectuera pour chacune les actions nécessaires. $ curl -H "Accept: application/json" \ https://www.example.net/api/cards/parkings/list?signature… - - - -[ - { - 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 - } -] +{ + "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" + } + ] +}

diff --git a/help/fr/api-get.page b/help/fr/api-get.page index ca6de1bd5..311d8fbd2 100644 --- a/help/fr/api-get.page +++ b/help/fr/api-get.page @@ -282,16 +282,16 @@ etc.). [ { - 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 } ] @@ -374,26 +374,28 @@ n’est pas nécessaire de préciser l’identifiant d’un utilisateur. -[ - { - 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 + } + ] +}