nervnews / nerv

A news aggregation app
3 stars 3 forks source link

Displaying list of results #15

Closed MynahMarie closed 6 years ago

MynahMarie commented 6 years ago

As a user, I want to search for a keyword and receive a list of relevant articles below the search box on the home page so that I can have an idea of how what kind of articles have been published on the subject and from which source they come from.

User acceptance criteria:

prodionov commented 6 years ago

Hi, here is the example for object output: we can specifically design an object to be rendered. you can use shortUrl for link thumbnail for picture, headline for headline,

{
id: "sport/live/2018/jan/15/australian-open-2018-rafa-nadal-caroline-wozniacki-tennis-action-day-one-live",
type: "liveblog",
sectionId: "sport",
sectionName: "Sport",
webPublicationDate: "2018-01-15T09:03:25Z",
webTitle: "Australian Open 2018: Nadal, Kyrgios, Wozniacki and more in action on day one – live!",
webUrl: "https://www.theguardian.com/sport/live/2018/jan/15/australian-open-2018-rafa-nadal-caroline-wozniacki-tennis-action-day-one-live",
apiUrl: "https://content.guardianapis.com/sport/live/2018/jan/15/australian-open-2018-rafa-nadal-caroline-wozniacki-tennis-action-day-one-live",
fields: 
{
headline: "Australian Open 2018: Nadal, Kyrgios, Wozniacki and more in action on day one – live!",
body:...,
shortUrl: "https://gu.com/p/7qq2b",
thumbnail: "https://media.guim.co.uk/00ef68b0881552a7d9f370cd83fafd03d8f02c86/10_0_3289_1974/500.jpg"
},
isHosted: false,
pillarId: "pillar/sport",
pillarName: "Sport"
}
prodionov commented 6 years ago

I will check how to add the trail text

harrygfox commented 6 years ago

DONE