Closed Chufle closed 1 year ago
Metadata fields for news-object:
{"newsObject": [
{"newsId": string,
"newsAuthor": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]}
New metadata structure proposal:
{"objects": [
{"objectId": string,
"objectType": newsObject,
"newsAuthor": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]}
without objectType and author instead of newsAuthor:
{"objects": [
{"objectId": news1,
"author": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]}
An example of metadata I get from news API: {"id": "die-zeit", "name": "Die Zeit"}, "author": "ZEIT ONLINE: News -", "title": "Harburg: Feuerwehr befreit Pferd aus Wassergraben", "description": "", "url": "https://www.zeit.de/zustimmung?url=https%3A%2F%2Fwww.zeit.de%2Fnews%2F2022-11%2F20%2Ffeuerwehr-befreit-pferd-aus-wassergraben", "urlToImage": null, "publishedAt": "2022-11-20T10:28:27Z",
I would import all the metadata.