Showing Posts For Erunno.3295:

API CDI 2015

in API Development

Posted by: Erunno.3295

Erunno.3295

Why do you need multiple languages in a single response?

I want to let the user search for items by different criterias. So my plan was to parse the data into a database and use indexes for the searches. To support several language i need to know the item names in theese languages. It is not a big problem to repeat the request and ignore everything except the names, but it would be easier to just fire one request and get everything I need.
Most of the data the apis provide doesn’t change very frequently, so imho it is feasible to cache it even without a database in the back.
The format smiley used in his pull-requests looks good to me. And if only one language is requested, it stays just like it is now.

P.S. There is a working work-around, so this is no high prio of course.

API CDI 2015

in API Development

Posted by: Erunno.3295

Erunno.3295

Is it possible to allow more than one value in the “lang”-parameter? Or “all” as possible value? This would allow to get more than one language with one request and would make these almost redundant requests required at the moment obsolete.