On-Demand API
Last updated
Was this helpful?
Last updated
Was this helpful?
Each request to you site fetches live data directly from the MFN API
Can be used from backend or frontend
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.
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.
Description
Query params
<none>
type=ir
Regulatory
tag=:regulatory
Reports
tag=sub:report
type=pr
filter=(not(.properties.tags@>[":regulatory"]))
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.
If .json or .xml is left out, it will return JSON by default
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.
All releases ()
Press releases ()
News ()
Other News ( and Non regulatory )