Assistance de TMDB

It would be helpful if the search API had an option to limit matches to the exact query string given.

Also, it would be nice to have the option of limiting the number of results returned... I'm thinking 'limit: 1' primarily, which would return a single result instead of an array, but there may be other uses :)

Cheers, Tim

2 réponses (sur la page 1 sur 1)

Jump to last post

if limit: 1 returns a single object, will be a pain in the a** for the most of developers out there.

you will need more code for parsing, and deserialization, which is bad. Consider a single endpoint service that will return a List of Movies, and when you provide limit 1, instead of a list will return to you a movie, boom get a deserialization error. Having to return an array with a single object thought , it would be fine.

It would be helpful if the search API had an option to limit matches to the exact query string given.

The search service is getting completely re-written later this year and it will be designed to support extra parameters like this.

Also, it would be nice to have the option of limiting the number of results returned... I'm thinking 'limit: 1' primarily, which would return a single result instead of an array, but there may be other uses :)

I am not sure I'll ever support custom page sizes but regardless, the results field is just an array. If you are only interested in the first results, it's easy enough to only grab that single object.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion