Examples of Extensive API Use/Integration with Non-Blog Sites?

Unfortunately it was all on a intranet :frowning:.

Yes, they where on a different domain. But all calls to Discourse API are made in the backend, so you won’t have CORS problems and cache calls when needed. Since you have SSO, you know the user account on the main site and on the forum, so it’s easy to extract the data.

Search is easy. When a user executes a search, your backend call your main site search and discourse search at the same time. When both returns (or one of then timeouts) you merge the data and return to user. Make the both calls concurrent and it will be fast.

This is a little more involved, you need to:

  1. listen to new notifications (rails model callback),

  2. transform Discourse notification data into your site format (Discourse doesn’t store the notification link destination in a very straightforward manner)

  3. Publish the transformed notification using your current site system.