Soporte de The Movie Database

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 respuestas (en la página 1 de 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.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión