Fetching single items
When you want to fetch just one content item of a given model you can use the single content item request.
Query by ID
Since IDs are unique in Prepr, you will be able to find the content item you want using the id argument. Here is an example that shows how to query a content item with the id "535c1e-...".
GET: /content_items/535c1e-4d52-4794-9136-71e28f2ce4c1
Query by Slug
Since slugs are unique within a content model, you will be able to find a content item you want using the slug
argument.
Here is an example that shows how to query a Page type content item with the slug "about-us".
GET: /content_items?slug[0][eq]=nieuws/388107-beelden-paaseiland-wandelden-over-het-eiland.html
GET: /content_items?slug[0][sq]=nieuws/388107