On-Demand API
Description
Each request to you site fetches live data directly from the MFN API
Can be used from backend or frontend
Getting Started
News feed
Start by studying the Feed API and corresponding News Item model. The feed should be simple to be consume with any HTTP client and is available in both JSON or XML.
FeedTypical filtering setups
Most of the time the website should be divided into different parts / menus for different categories of press releases. Typically at least the user should be able to distinguish between Regulatory releases and other press releases. If the customer will use MFN for PR many times it will also be displayed in a separate feed.
News item
To fetch and display a single press release from the API you can use either use the query param news-slug
(.content.slug) or news-id
in combination with the base feed url.
https://feed.mfn.se/v1/feed/<feed_id>[.json/.xml]?news-slug=<slug>
Typical Page Layout
Part
JSON model path
Title
.content.title
Publish Date
.content.publish_date
Tags (*)
.properties.tags
Text Body
.content.html
Attachments
.content.attachments
(*) Press releases can contain many tags, but typically a select few would be displayed as actual visible tags. Most commonly :regulatory
as Regulatory / Regulatorisk according to site language.
Last updated
Was this helpful?