Cantook Édition
French English

API de la table des matières d'une publication

Ce service Web retourne la table des matières d’une publication, sous la forme d’un fichier XML ou JSON.


Déclaration

Adresse :  /api/publications/[isbn]/toc.[xml|js]

Formats  : XML ou JSON

Méthode  : GET

Security : HTTP/BASIC (Utilisez votre identifiant et mot de passe)


Paramètres

isbn :  (Obligatoire)

L'isbn de la publication


Réponse

Format XML :


<chapters>


<chapter>

<page>1</page>

<title>Couverture</title>

</chapter>

<chapter>

<page>7</page>

<title>Table des matières</title>

</chapter>

<chapter>

<page>13</page>

<title>Chapitre 1</title>

</chapter>

<chapter>

<page>24</page>

<title>Chapitre 2</title>

</chapter>

...

</chapters>


Format JSON :

[{"page":1,"title":"Couverture"},{"page":7,"title":"Table des matières"},{"page":13,"title":"Chapitre 1"},{"page":24, "title":"Chapter 2"}...