Skip to content

Commit

Permalink
add inlinks and outlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Aug 9, 2024
1 parent 9226ddb commit 46bb018
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 4 deletions.
14 changes: 12 additions & 2 deletions docs/urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,22 @@
},
{
"url": "/api/story/note-05-theme-02?parser=yaml",
"description": "get the note content with a reference section and links to note-05",
"description": "[Note] get the note 05 content with a reference section and links to note-05",
"hash": "2f176b99c2924fc4acac5f511532682a85e719c6b10cdd245a816038d72640d7"
},
{
"url": "/api/story/note-02-la-formation-dun-consensus-memoriel/?parser=yaml",
"description": "get the note content with a reference section, but there is no link to the note-02 as linking is asymetric ;)",
"description": "[Note] get the note 02 content with a reference section, but there is no link to the note-02 as linking is asymetric ;)",
"hash": "2f176b99c2924fc4acac5f511532682a85e719c6b10cdd245a816038d72640d7"
},
{
"url": "/api/story/?filters={\"stories__slug\":\"note-05-theme-02\"}",
"description": "[Note] get the stories which links TO the note, that is the themes or the capsules",
"hash": "3dbbed7c7decdda07bdb98fb85dfddde63b3341e3e3ede372e784f2dcec19ded"
},
{
"url": "/api/story/?filters={\"mentioned_to__slug\":\"note-05-theme-02\"}",
"description": "[Note] get the note 02 content with a reference section, but there is no link to the note-02 as linking is asymetric ;)",
"hash": "927e26e85a01f0b042f0bc58965fd13b59b7c40b7b9be846fa4794a6484866ea"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 2,
"slug": "theme-01-vivre-sous-lannexion",
"short_url": "P3ru6Qp",
"date": null,
"date_created": "2024-05-17T08:44:34.373782Z",
"date_last_modified": "2024-08-09T12:39:22.547226Z",
"status": "public",
"covers": [],
"authors": [],
"tags": [
{
"id": 1,
"category": "publishing",
"slug": "theme",
"name": "theme",
"status": "public",
"data": {
"name": "theme"
}
}
],
"data": {
"color": "",
"title": {
"fr_FR": "Vivre sous l'annexion"
},
"abstract": {
"fr_FR": ""
},
"chapters": [
14,
15
],
"background": {
"bbox": [],
"overlay": "",
"backgroundColor": "#ddd"
}
}
},
{
"id": 5,
"slug": "st-joseph-clinic",
"short_url": "DBwy2aP",
"date": null,
"date_created": "2024-05-17T14:27:24.975607Z",
"date_last_modified": "2024-08-07T07:29:43.914171Z",
"status": "public",
"covers": [
{
"id": 20,
"title": "klinik st Joseph, 1943 (CNA)",
"slug": "klinik-st-joseph-1943-cna",
"mimetype": "",
"type": "video",
"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"
}
}
},
"url": "https://vimeo.com/528298336/8b9085c3b6?share=copy",
"attachment": null,
"snapshot": "/media/video/snapshots/Screenshot_2024-05-24_at_09.17.10.png",
"short_url": "b9EcuWk"
},
{
"id": 18,
"title": "Clinique Saint-Joseph",
"slug": "clinique-saint-joseph",
"mimetype": "",
"type": "entity",
"data": {
"type": "place",
"title": {
"de_DE": "Saint-Joseph-Klinik",
"en_GB": "Saint-Joseph Clinic",
"fr_FR": "Clinique Saint-Joseph"
},
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:2169"
}
},
"type": "Feature",
"geometry": {
"type": "Point",
"properties": {
"city": {
"de_DE": "Wiltz",
"en_GB": "Wiltz",
"fr_FR": "Wiltz"
},
"name": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"address": {
"de_DE": "",
"en_GB": "",
"fr_FR": ""
},
"country": "Luxembourg"
},
"coordinates": [
"63197.490072547036",
"114580.1060949051"
]
}
},
"description": {
"de_DE": "Versorgungsort für Flüchtlinge aus Differdange",
"en_GB": "Place of supply for refugees from Differdange",
"fr_FR": "Lieu de ravitaillement des réfugiés de Differdange"
}
},
"url": null,
"attachment": null,
"snapshot": null,
"short_url": "iR8gFGE"
}
],
"authors": [],
"tags": [
{
"id": 2,
"category": "publishing",
"slug": "chapter",
"name": "chapter",
"status": "public",
"data": {
"name": "chapter"
}
},
{
"id": 4,
"category": "publishing",
"slug": "level-1",
"name": "level-1",
"status": "public",
"data": {}
}
],
"data": {
"title": {
"de_DE": "Klinik St Joseph",
"en_GB": "St Joseph Clinic",
"fr_FR": "Clinique St Joseph"
},
"abstract": {
"fr_FR": "Short paragraph if needed"
},
"background": {
"overlay": "#ddd"
},
"count_modules": 0
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 4,
"slug": "note-01-entering-the-war",
"short_url": "dGBHZ5G",
"date": null,
"date_created": "2024-05-17T08:51:14.285141Z",
"date_last_modified": "2024-08-09T09:07:31.828242Z",
"status": "public",
"covers": [],
"authors": [],
"tags": [
{
"id": 2,
"category": "publishing",
"slug": "chapter",
"name": "chapter",
"status": "public",
"data": {
"name": "chapter"
}
}
],
"data": {
"color": "",
"title": {
"de_DE": "Kriegseintritt (N01)",
"en_GB": "Entering the war (N01)",
"fr_FR": "Entrée en guerre (N01)"
},
"abstract": {
"de_DE": "Der Ausbruch des Zweiten Weltkriegs 1939 und die Invasion Luxemburgs",
"en_GB": "The outbreak of the Second World War in 1939 and the invasion of Luxembourg",
"fr_FR": "Le déclenchement de la Seconde Guerre mondiale en 1939 et l'invasion du Luxembourg"
},
"background": {
"bbox": [],
"overlay": "",
"backgroundColor": "#ddd"
},
"count_modules": 4
}
},
{
"id": 6,
"slug": "note-02-la-formation-dun-consensus-memoriel",
"short_url": "Stxe3vr",
"date": null,
"date_created": "2024-05-17T14:32:10.732213Z",
"date_last_modified": "2024-05-17T14:45:14.560905Z",
"status": "public",
"covers": [],
"authors": [],
"tags": [
{
"id": 2,
"category": "publishing",
"slug": "chapter",
"name": "chapter",
"status": "public",
"data": {
"name": "chapter"
}
}
],
"data": {
"color": "",
"title": {
"de_DE": "Die Bildung eines Gedächtniskonsenses",
"en_GB": "The formation of a memory consensus",
"fr_FR": "La formation d'un consensus mémoriel"
},
"abstract": {
"de_DE": "Luxemburgs Gesellschaft nach der Annexion war tief gespalten, mit Widerstandsbewegungen, die mit der zurückkehrenden Regierung um Macht und Säuberungen kämpften. Nach 1945 bildete sich ein fragiler Erinnerungskonsens, der Wahrheit und nationale Einheit in Einklang brachte, aber oft die Komplexitäten der Kriegszusammenarbeit übersah.",
"en_GB": "Luxembourg's post-annexation society faced deep divisions, with Resistance movements clashing with the returning government over power and purges. A fragile memory consensus formed post-1945, balancing truth with the need for national unity, but often overlooked the complexities of wartime collaboration.",
"fr_FR": "La société luxembourgeoise post-annexion est profondément divisée, avec des mouvements de Résistance en conflit avec le gouvernement. Un fragile consensus mémoriel s'est formé après 1945, équilibrant vérité et unité nationale, mais négligeant souvent les complexités de la collaboration en temps de guerre."
},
"background": {
"bbox": [],
"overlay": "",
"backgroundColor": "#ddd"
},
"count_modules": 3
}
}
]
}
12 changes: 10 additions & 2 deletions scripts/urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,18 @@
},
{
"url": "/api/story/note-05-theme-02?parser=yaml",
"description": "get the note content with a reference section and links to note-05"
"description": "[Note] get the note 05 content with a reference section and links to note-05"
},
{
"url": "/api/story/note-02-la-formation-dun-consensus-memoriel/?parser=yaml",
"description": "get the note content with a reference section, but there is no link to the note-02 as linking is asymetric ;)"
"description": "[Note] get the note 02 content with a reference section, but there is no link to the note-02 as linking is asymetric ;)"
},
{
"url": "/api/story/?filters={\"stories__slug\":\"note-05-theme-02\"}",
"description": "[Note] get the stories which links TO the note, that is the themes or the capsules"
},
{
"url": "/api/story/?filters={\"mentioned_to__slug\":\"note-05-theme-02\"}",
"description": "[Note] get the note 02 content with a reference section, but there is no link to the note-02 as linking is asymetric ;)"
}
]

0 comments on commit 46bb018

Please sign in to comment.