diff --git a/README.md b/README.md index 3b76d03..652ca1d 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ pd.get('/incidents') .then({data, resource, next} => console.log(data, resource, next)) .catch(console.error); +// Filtering by incident status +pd.get('/incidents', { queryParameters: { 'statuses[]': ['triggered'] } }) + .then({data, resource, next} => console.log(data, resource, next)) + .catch(console.error); + // Similarly, for `post`, `put`, `patch` and `delete`. pd.post('/incidents', { data: { ... } }).then(...);