8d02f0f45c7439336023f0b9a172a3243a4d7255
[lhc/web/www.git] / www / plugins / formidable / http / collectionjson / formulaires_reponses.html
1 [(#SET{defaut_tri,#ARRAY{
2 titre,1,
3 date,#ENV{date_sens,-1},
4 maj,#ENV{date_sens,-1},
5 id_formulaires_reponse,1,
6 points,-1,
7 }})]
8
9 {
10 "collection": {
11 "version": "1.0",
12 "href": "[(#URL_SITE_SPIP|concat{/http.api/collectionjson/formulaires_reponses}|url_absolue)]",
13 "title": "#NOM_SITE_SPIP - <:formidable:reponses_liste:>",
14 "updated": "[(#DATE|date_iso)]"
15 <B_formulaires_reponses>
16 ,
17 "links": [
18 {"rel":"self", "type":"application/json", "href":"[(#VAL{&}|self|url_absolue)]"}[,
19 (#PAGINATION{collectionjson})]
20 ],
21 "totalResults": #GRAND_TOTAL,
22 "startIndex": #ENV{debut_formulaires_reponses,0},
23 "itemsPerPage": #ENV{pagination,100},
24 "items": [
25 <BOUCLE_formulaires_reponses(FORMULAIRES_REPONSES)
26 {id_formulaire?}
27 {statut IN #ENV{statut,#LISTE{publie}}}
28 {id_auteur?}
29 {cookie?}
30 {recherche?}
31 {tri #ENV{par,#ENV{recherche}|?{points,date}},#GET{defaut_tri}}
32 {pagination #ENV{pagination,100}}{","}
33 >
34 <INCLURE{fond=http/collectionjson/inc-formulaires_reponse, id_formulaires_reponse, mode, url_self=#SELF}>
35 </BOUCLE_formulaires_reponses>
36 ]
37 </B_formulaires_reponses>
38 }
39 }