datagouv / api-geo

Interroger les référentiels géographiques plus facilement
https://api.gouv.fr/api/api-geo.html
MIT License
47 stars 17 forks source link

Ajout d'un paramètre `limit` #89

Closed jdesboeufs closed 6 years ago

jdesboeufs commented 6 years ago

Limite le nombre d'éléments retournés lors d'une recherche.

Closes #79

jdesboeufs commented 6 years ago

Il n'y a pas de tests car mocha m'a énervé.

jdesboeufs commented 6 years ago

Non il ne s’applique qu’aux routes renvoyant un listing. Par la suite on pourra faire un helper plus global en effet, a minima initSearch.

Le jeu. 24 mai 2018 à 13:01, Théophile Merlière notifications@github.com a écrit :

@tmerlier approved this pull request.

initLimit() semble s'appliquer à toutes les routes, il pourrait être implémenté au niveau de l'application:

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/etalab/api-communes/pull/89#pullrequestreview-122942272, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLJgMdGcH7s_Gnsdx0OJOfk97ibeu_gks5t1pL2gaJpZM4UL_qf .