mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
96065f9c94
closes https://github.com/TryGhost/Product/issues/3955 - also, moved recommendations code to the "membership" folder for consistency with the UI - also, renamed "yarn test:slowmo" to "yarn test:acceptance:slowmo" for consistency in the naming - also, removed "limit: 1" when checking whether a recommendation URL already exists. The limit defaults to 5 on the API side, and allowing more than 1 result will lead to a more thorough check
33 lines
1018 B
JSON
33 lines
1018 B
JSON
{
|
|
"recommendations": [
|
|
{
|
|
"id": "64f6ed7d63be05eff0045d88",
|
|
"title": "Incoming recommendation 1 title",
|
|
"excerpt": "Incoming recommendation 1 excerpt",
|
|
"featured_image": "https://incoming1.com/image.jpg",
|
|
"favicon": "https://incoming1.com/favicon.ico",
|
|
"url": "https://incoming1.com/",
|
|
"recommending_back": false
|
|
},
|
|
{
|
|
"id": "f52d782ef9278a47d6965d1e",
|
|
"title": "Incoming recommendation 2 title",
|
|
"excerpt": "Incoming recommendation 2 excerpt",
|
|
"featured_image": "https://incoming2.com/image.jpg",
|
|
"favicon": "https://incoming2.com/favicon.ico",
|
|
"url": "https://incoming2.com/",
|
|
"recommending_back": true
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"page": 1,
|
|
"pages": 1,
|
|
"limit": 5,
|
|
"total": 2,
|
|
"prev": null,
|
|
"next": null
|
|
}
|
|
}
|
|
}
|