Skip to content

Commit

Permalink
add documents to note-01
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Aug 9, 2024
1 parent a510599 commit e313457
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@
},
{
"url": "/api/document/?filters={\"stories__slug\":%20\"note-05-theme-02\"}&limit=10&offset=0",
"description": "[Documents] get all picture documents linked to a note, to be paginated with limit and offset",
"description": "[Documents] get all picture documents linked to note note-05-theme-02, to be paginated with limit and offset",
"hash": "731f72f3c2e70cb9a4164a793381e2d332b652a1a3bd77b3e8129662e971765a"
},
{
"url": "/api/document/?filters={\"stories__slug\":%20\"nnote-01-entering-the-war\"}&limit=10&offset=0",
"description": "[Documents] get all picture documents linked to note note-01-entering-the-war, to be paginated with limit and offset",
"hash": "332089f2fab21eaf5d300e5a3c1b88c3947f2c3ffc7b18a2e5376a435a4c428c"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"count": 0,
"next": null,
"previous": null,
"results": [],
"facets": {}
}
171 changes: 170 additions & 1 deletion public/api/story/note-01-entering-the-war/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,176 @@
"short_url": "dGBHZ5G",
"title": "Note 01 - Entrée en guerre",
"abstract": null,
"documents": [],
"documents": [
{
"id": 8,
"document_id": 22,
"title": "Heinrich Himmler in Luxembourg",
"slug": "Heinrich-Himmler-in-Luxembourg",
"url": "https://en.wikipedia.org/wiki/Luxembourg_in_World_War_II#/media/File:Bundesarchiv_Bild_101III-Weill-061-25,_Heinrich_Himmler_in_Luxembourg.jpg",
"type": "picture",
"copyrights": "",
"caption": "",
"short_url": "ScYZ7CG",
"data": {
"type": "picture",
"title": {
"de_DE": "Heinrich Himmler in Luxembourg",
"en_GB": "Heinrich Himmler in Luxembourg",
"fr_FR": "Heinrich Himmler in Luxembourg"
},
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:2169"
}
},
"geometry": {
"properties": {
"city": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"name": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"address": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
}
}
}
},
"snapshot": {
"width": 1200,
"height": 751
},
"identifier": "",
"provenance": "",
"description": {
"de_DE": "Heinrich Himmler in Luxembourg",
"en_GB": "Heinrich Himmler in Luxembourg",
"fr_FR": "Heinrich Himmler in Luxembourg"
},
"resolutions": {
"medium": {
"url": "/media/picture/snapshots/Bundesarchiv_Bild_101III-Weill-061-25_Heinrich_Himmler_in_Luxembourg-96-768-0-0.jpg",
"width": 768,
"height": 481
},
"preview": {
"url": "/media/picture/snapshots/Bundesarchiv_Bild_101III-Weill-061-25_Heinrich_Himmler_in_Luxembourg-96-0-0-768.jpg",
"width": 1227,
"height": 768
},
"thumbnail": {
"url": "/media/picture/snapshots/Bundesarchiv_Bild_101III-Weill-061-25_Heinrich_Himmler_in_Luxembourg-72-0-260-0.jpg",
"width": 260,
"height": 163
}
},
"videoResolutions": {
"hsl": {
"url": ""
},
"dash": {
"url": ""
},
"sd360p": {
"url": ""
}
}
},
"attachment": "/media/picture/Bundesarchiv_Bild_101III-Weill-061-25_Heinrich_Himmler_in_Luxembourg.jpg"
},
{
"id": 9,
"document_id": 20,
"title": "klinik st Joseph, 1943 (CNA)",
"slug": "klinik-st-joseph-1943-cna",
"url": "https://vimeo.com/528298336/8b9085c3b6?share=copy",
"type": "video",
"copyrights": "",
"caption": "",
"short_url": "b9EcuWk",
"data": {
"type": "media",
"title": {
"de_DE": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 ",
"en_GB": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 ",
"fr_FR": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 "
},
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:2169"
}
},
"geometry": {
"properties": {
"city": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"name": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"address": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
}
}
}
},
"identifier": "",
"provenance": "",
"description": {
"de_DE": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 ",
"en_GB": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 ",
"fr_FR": "CNA: IA000453.mp4\" (klinik st Joseph de 1 minute 00 à 1 minute 3) film datant de 1943 "
},
"resolutions": {
"medium": {
"url": "https://placehold.co/768x430/black/white?text=klinik-st-joseph-1943-cna",
"width": 768,
"height": 430
},
"preview": {
"url": "https://placehold.co/1371x768/black/white?text=klinik-st-joseph-1943-cna",
"width": 1371,
"height": 768
},
"thumbnail": {
"url": "https://placehold.co/260x146/black/white?text=klinik-st-joseph-1943-cna",
"width": 260,
"height": 146
}
},
"videoResolutions": {
"hsl": {
"url": "https://player.vimeo.com/external/528298336.m3u8?s=48042a6eddb4ebc97b6ede8f92c4a39139ddb2a6&logging=false"
},
"dash": {
"url": "https://player.vimeo.com/external/528298336.mpd?s=26992b78d2bd96e58a2a21d4c224af21355e73fd&logging=false"
},
"sd360p": {
"url": "https://player.vimeo.com/progressive_redirect/playback/528298336/rendition/360p/file.mp4?loc=external&signature=094baf3a199f1c4e36356a4dfd3474a53abb1e0adf8a0052d330962fec4ce038"
}
}
},
"attachment": null
}
],
"tags": [
{
"id": 2,
Expand Down
6 changes: 5 additions & 1 deletion scripts/urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
},
{
"url": "/api/document/?filters={%22stories__slug%22:%20%22note-05-theme-02%22}&limit=10&offset=0",
"description": "[Documents] get all picture documents linked to a note, to be paginated with limit and offset"
"description": "[Documents] get all picture documents linked to note note-05-theme-02, to be paginated with limit and offset"
},
{
"url": "/api/document/?filters={%22stories__slug%22:%20%22nnote-01-entering-the-war%22}&limit=10&offset=0",
"description": "[Documents] get all picture documents linked to note note-01-entering-the-war, to be paginated with limit and offset"
}
]

0 comments on commit e313457

Please sign in to comment.