typicode / jsonplaceholder

A simple online fake REST API server
https://jsonplaceholder.typicode.com
MIT License
5.05k stars 582 forks source link

Query/filter by multiple ids #170

Open Mestika opened 3 years ago

Mestika commented 3 years ago

I can't find any documentation on this but it would be great if it was possible to query or filter with multiple ids. E.g. https://jsonplaceholder.typicode.com/posts?_limit=10&userId=2,5,10,12

dicbrus commented 3 years ago

following works for that kind of filtering https://jsonplaceholder.typicode.com/posts?&userId=2&userId=5&userId=10&userId=12