From 4e8804bd43a8cba97da82f50ee1dd6ecba0fbd25 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 28 Jun 2021 17:51:20 +0200 Subject: [PATCH] fix datasource format --- formation-api/presentation.tex | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/formation-api/presentation.tex b/formation-api/presentation.tex index e202b7b..f082e20 100644 --- a/formation-api/presentation.tex +++ b/formation-api/presentation.tex @@ -78,14 +78,13 @@ \item Structure très simple \note[item]{Rendre une API compatible Publik, c'est facile !} \end{itemize} - \begin{minted}[tabsize=4]{json} + \begin{minted}[tabsize=2]{json} { "err": 0, - "data": { - "text": "Donnée 1", - "id": 1, - "xxx": "clé supplémentaire" - } + "data": [ + {"id": "1", "text": "rue du Château"}, + {"id": "2", "text": "avenue du Maine"}, + ] } \end{minted} \end{frame}