Skip to content

Commit

Permalink
Merge pull request #201 from flotiq/bugfix/23987-fix-co-filtering-docs
Browse files Browse the repository at this point in the history
#23987 fix documentation for filtering content objects  by relation
  • Loading branch information
WHLukasz authored Dec 19, 2023
2 parents 0dae761 + f7e6357 commit 5500f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API/content-type/listing-co.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ You have to care about encoding url params. For example:
1. Using JsonPath, product category path is `categories[*].dataUrl`
1. Expected value is `/api/v1/content/categories/category-1`
1. Raw query: `GET /api/v1/content/products?filters={"categories[*].dataUrl":{"type":"contains","filter":"/api/v1/content/categories/category-1"}}`
1. Encoded query: `GET /api/v1/content/products?filters=%7B%22categories%5B%2A%5D.dataUrl%22%3A%7B%22type%22%3A%22equals%22%2C%22filter%22%3A%22%2Fapi%2Fv1%2Fcontent%2Fcategories%2Fcategory-1%22%7D%7D`
1. Encoded query: `GET /api/v1/content/products?filters=%7B%22categories%5B%2A%5D.dataUrl%22%3A%7B%22type%22%3A%22contains%22%2C%22filter%22%3A%22%2Fapi%2Fv1%2Fcontent%2Fcategories%2Fcategory-1%22%7D%7D`

Only `contains` and `notContains` type filters can be used with filtering by relation.

Expand Down

0 comments on commit 5500f38

Please sign in to comment.