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}