This release brings API support for adding non published articles to content lists, with additional improvements (for details see Superdesk Publisher plugin 2.8 release notes). Please make sure you are ready to start receiving HTML instead of plain text for the lead/abstract fields in your frontends.
- API improvements
- Improved search response for articles
- Added article
id
- Renamed
item.feature_media
toswp_article_feature_media
- Changed the structure of the route properties metadata, the new mapping is:
swp_route: { name: item.route.name, staticprefix: item.route.slug }
- Added
swp_article_extra
to the response
- Added article
- Adding support for custom media fields in the API response for articles
- Introducing content push endpoint with options (non published articles in content lists support, more details about the feature here)
- Used for setting custom status when a non published article is added to the content list, like
/api/{version}/content/push-with-options?status={status}
- Used for setting custom status when a non published article is added to the content list, like
- Introducing API endpoint for getting article
id
byguid
(non published articles in content lists support, more details about the feature here)- Used for retrieving an article id so the article can be properly added to the content list, after it’s pushed with the special status, like
/api/{version}/content/article/search-code?code={guid}
- Used for retrieving an article id so the article can be properly added to the content list, after it’s pushed with the special status, like
- Improved search response for articles
- Use HTML instead of plain text for the lead/abstract field
- Enabled strings to be used as Urgency values in automatic content lists