Chufle / kutter

Capstone project AWS Cloud Dev Bootcamp
0 stars 0 forks source link

define metadata news-object #8

Closed Chufle closed 1 year ago

Chufle commented 1 year ago

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.

Chufle commented 1 year ago

Metadata fields for news-object:

Chufle commented 1 year ago
{"newsObject": [
 {"newsId": string,
"newsAuthor": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]} 
Chufle commented 1 year ago

New metadata structure proposal:

{"objects": [
{"objectId": string,
"objectType": newsObject,
"newsAuthor": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]} 
Chufle commented 1 year ago

without objectType and author instead of newsAuthor:

{"objects": [
{"objectId": news1,
"author": string,
"title": string,
"description": string,
"url": string,
"urlToImage": string,
"creationDate": date}
]}