Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Content Delivery API - Search under parent and other Queries

$
0
0

Ive a few queries about the Content Delivery API (which needs some better documentation and examples)

I want to use the Content Delivery API with Find to search for pages of a specific type under a known Parent.

The base API call is: GET /api/episerver/v2.0/search/content

My API call below returns top 5 MyStandardPage pages ordered by PublishDate:

../api/episerver/v2.0/search/content?filter=ContentType/any(t:t eq 'MyStandardPage')&top=5&orderby=startPublish

Queries:

  1. However I want to return the above data below a specific Parent page and also ignore pages in the recycle bin.
    1. UPDATE: Ive figured this out: filter=parentLink/id eq 4449
    2. https://localhost:44353/api/episerver/v2.0/search/content?top=5&orderby=startPublish&expand=TeaserImage&filter=parentLink/id eq 4449
  2. Alternatively is it possible to use my own API to return Content Delivery API reposnes based on my own custom Find queries?

Viewing all articles
Browse latest Browse all 8020

Trending Articles