Try our conversational search powered by Generative AI!

Content API question

Vote:
 

Hi good morning everyone.

One of our customer is looking out inform one of its partners when a new content (Content based on a PageType type) have been Published in the Episerver Web Site through the Epi's CMS; the main idea would be create a REST API.

Could we use the Episerver Content API for this? --> https://world.episerver.com/documentation/developer-guides/content-delivery-api/

What do you think about use that?, is there other solution?.

We are using Episerver 10 (v10.10.4).

Best regards.

#206289
Edited, Aug 12, 2019 10:51
Vote:
 

1. For Content Delivery API you will need Episerver 11.4 if I recall correctly.

2. The easiest way to solve it is to use Episerver content events and listen on the published events. When a page has been published you can write code to send the mail, call a REST API or similar. 

Check out here for some example code for listening on events 

https://world.episerver.com/blogs/Daniel-Ovaska/Dates/2019/6/content-events-in-episerver/

3. Another option is to build a separate scheduled job, search the site for newly published pages either by using Episerver Find or FindPagesWithCriteria

http://www.jondjones.com/learn-episerver-cms/episerver-developers-guide/episerver-api-explained/findpageswithcriteria-how-to-search-for-pages-within-episerver

This has an advantage since you can avoid spamming mails and only send one per day or similar.

4. Build a custom REST api that uses the same functionality as 3.  

Depends a bit if you want to push or pull information which option is the best. 2. is probably fastest to build.

#206290
Edited, Aug 12, 2019 11:20
Vote:
 

Hi @Daniel Ovaska.

Thank you for your feedback, we'll try then use a workaround, using a mix of Episerver content event and our own REST Api Service, this was one of our first approach, because for is not going to be possible update to a new Episerver version (as you can imaging this could have a high risk for us).

Best regards.

#206291
Aug 12, 2019 11:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.