{"openapi":"3.1.0","info":{"title":"DRIVE Article API App","version":"0.1.0"},"paths":{"/api/v2/articles":{"get":{"summary":"Get Articles","operationId":"get_articles_api_v2_articles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Get Articles Api V2 Articles Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Add New Article","operationId":"add_new_article_api_v2_articles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v2/articles/{article_id}":{"head":{"summary":"Article Exists","operationId":"article_exists_api_v2_articles__article_id__head","security":[{"HTTPBearer":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Article","operationId":"get_article_api_v2_articles__article_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetArticleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Article","description":"Delete single article from the raw data lake","operationId":"delete_article_api_v2_articles__article_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/archive":{"post":{"summary":"Add Archive Article","operationId":"add_archive_article_api_v2_archive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Agency":{"type":"string","enum":["dpa","apa","sda"],"title":"Agency"},"Article":{"properties":{"article_id":{"anyOf":[{"type":"integer"},{"type":"string"}],"title":"Article Id","description":"Artikel-ID aus eurem CMS"},"article_title":{"type":"string","title":"Article Title","description":"Überschrift des Artikel"},"article_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Subtitle","description":"Optional: Unterüberschrift des Artikels"},"article_teaser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Teaser","description":"Artikelteaser"},"article_text":{"type":"string","title":"Article Text","description":"Inhalt des Artikels (ohne HTML-Tags)"},"authors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Authors","description":"Optional: Autor(en) des Artikels","examples":[["Hans Mustermann","DPA"]]},"publish_timestamp":{"type":"string","format":"date-time","title":"Publish Timestamp","description":"Zeitpunkt der Artikelveröffentlichung","examples":["2021-11-08T17:12:06"]},"update_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Update Timestamp","description":"Optional: Zeitpunkt der letzten Änderung am Artikel","examples":["2021-11-12T07:48:02"]},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Urls","description":"Optional: URLs unter denen der Artikel abrufbar ist.","examples":[["www.drive-this.de"]]},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Urls","description":"Optional: URLs der Bilder aus dem Artikel; Empfohlene Sortierung ist nach absteigender Relevanz.","examples":[["https://www.drive-this.de/images/artikelbild-1.jpg","https://www.drive-this.de/images/artikelbild-2.jpg"]]},"agency_id":{"anyOf":[{"$ref":"#/components/schemas/ArticleAgencyInfo"},{"type":"null"}],"description":"Für Agenturartikel: Name der Agentur (\"dpa\", \"apa\" oder \"sda\") und Artikel-ID der Agentur","examples":[{"agency_article_id":"220131-99-916578/2","agency_name":"dpa"}]},"tags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tags","description":"Optional: Beliebige Tags aus eurem CMS"},"extra_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Info","description":"Optional: Weitere spannende Infos"},"publisher":{"type":"string","title":"Publisher","description":"Publisher-Identifier. Wird vom Schickler Datateam zugewiesen","examples":["example-publisher"]},"article_user_need_publisher":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Article User Need Publisher","description":"Optional: User-Need(s) laut der Redaktion. Bei mehreren User-Needs den primären User-Need als erstes aufführen.","examples":[["Inspire me","Educate me"]]},"editorial_article_segment":{"anyOf":[{"items":{"$ref":"#/components/schemas/ArticleSegments"},"type":"array"},{"type":"null"}],"title":"Editorial Article Segment","description":"Optional: Artikel-Segmente der Redaktion (nach geo/ressort/audience/other) in bis zu drei Ebenen (Ebene 2 und 3 sind optional). Hier bitte die für euch wichtigste Kategorie als erstes aufführen.","examples":[[{"editorial_category":"geo","level_1":"Kreis Testhaven","level_2":"Teststadt","level_3":"Teststadtteil"}]]},"article_geo_location":{"anyOf":[{"items":{"$ref":"#/components/schemas/GeoLocation"},"type":"array"},{"type":"null"}],"title":"Article Geo Location","description":"Optional: Geo-Daten des Artikels. Es können auch mehrere Orte angegeben werden. Abseits von dem Feld 'ort' sind alle Einträge optional. Erlaubte Einträge in 'granularity_level' sind 'global/bundesland/land/kreis/ort/adresse/other'.","examples":[[{"gps":{"lat":53.550953439921145,"lon":9.990342711673089},"granularity_level":"kreis","ort":"KreisTesthausen","plz":"1924"}]]},"content_type":{"anyOf":[{"type":"string","enum":["article","image","video","KI-Support Testredaktion 1","non-article","advertorial"]},{"type":"null"}],"title":"Content Type","description":"Art des Inhalts. Erlaubte Werte: article, image, video, KI-Support Testredaktion 1, non-article, advertorial"}},"type":"object","required":["article_id","article_title","article_text","publish_timestamp","publisher"],"title":"Article"},"ArticleAgencyInfo":{"properties":{"agency_name":{"$ref":"#/components/schemas/Agency"},"agency_article_id":{"type":"string","title":"Agency Article Id"}},"type":"object","required":["agency_name","agency_article_id"],"title":"ArticleAgencyInfo"},"ArticleSegments":{"properties":{"level_1":{"type":"string","title":"Level 1"},"level_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level 2"},"level_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level 3"},"editorial_category":{"type":"string","enum":["geo","ressort","audience","other"],"title":"Editorial Category"}},"type":"object","required":["level_1","editorial_category"],"title":"ArticleSegments"},"GeoGps":{"properties":{"lat":{"type":"number","title":"Lat"},"lon":{"type":"number","title":"Lon"}},"type":"object","required":["lat","lon"],"title":"GeoGps"},"GeoLocation":{"properties":{"ort":{"type":"string","title":"Ort"},"plz":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plz"},"gps":{"anyOf":[{"$ref":"#/components/schemas/GeoGps"},{"type":"null"}]},"granularity_level":{"anyOf":[{"type":"string","enum":["global","bundesland","land","kreis","ort","adresse","other"]},{"type":"null"}],"title":"Granularity Level"}},"type":"object","required":["ort"],"title":"GeoLocation"},"GetArticleResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"size":{"type":"integer","title":"Size"},"updated":{"type":"string","format":"date-time","title":"Updated"},"created":{"type":"string","format":"date-time","title":"Created"},"article":{"$ref":"#/components/schemas/StoredArticle"}},"type":"object","required":["filename","size","updated","created","article"],"title":"GetArticleResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"StoredArticle":{"properties":{"article_id":{"anyOf":[{"type":"integer"},{"type":"string"}],"title":"Article Id","description":"Artikel-ID aus eurem CMS"},"article_title":{"type":"string","title":"Article Title","description":"Überschrift des Artikel"},"article_subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Subtitle","description":"Optional: Unterüberschrift des Artikels"},"article_teaser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Teaser","description":"Artikelteaser"},"article_text":{"type":"string","title":"Article Text","description":"Inhalt des Artikels (ohne HTML-Tags)"},"authors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Authors","description":"Optional: Autor(en) des Artikels","examples":[["Hans Mustermann","DPA"]]},"publish_timestamp":{"type":"string","format":"date-time","title":"Publish Timestamp","description":"Zeitpunkt der Artikelveröffentlichung","examples":["2021-11-08T17:12:06"]},"update_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Update Timestamp","description":"Optional: Zeitpunkt der letzten Änderung am Artikel","examples":["2021-11-12T07:48:02"]},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Urls","description":"Optional: URLs unter denen der Artikel abrufbar ist.","examples":[["www.drive-this.de"]]},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Urls","description":"Optional: URLs der Bilder aus dem Artikel; Empfohlene Sortierung ist nach absteigender Relevanz.","examples":[["https://www.drive-this.de/images/artikelbild-1.jpg","https://www.drive-this.de/images/artikelbild-2.jpg"]]},"agency_id":{"anyOf":[{"$ref":"#/components/schemas/ArticleAgencyInfo"},{"type":"null"}],"description":"Für Agenturartikel: Name der Agentur (\"dpa\", \"apa\" oder \"sda\") und Artikel-ID der Agentur","examples":[{"agency_article_id":"220131-99-916578/2","agency_name":"dpa"}]},"tags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tags","description":"Optional: Beliebige Tags aus eurem CMS"},"extra_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Info","description":"Optional: Weitere spannende Infos"},"publisher":{"type":"string","title":"Publisher","description":"Publisher-Identifier. Wird vom Schickler Datateam zugewiesen","examples":["example-publisher"]},"article_user_need_publisher":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Article User Need Publisher","description":"Optional: User-Need(s) laut der Redaktion. Bei mehreren User-Needs den primären User-Need als erstes aufführen.","examples":[["Inspire me","Educate me"]]},"editorial_article_segment":{"anyOf":[{"items":{"$ref":"#/components/schemas/ArticleSegments"},"type":"array"},{"type":"null"}],"title":"Editorial Article Segment","description":"Optional: Artikel-Segmente der Redaktion (nach geo/ressort/audience/other) in bis zu drei Ebenen (Ebene 2 und 3 sind optional). Hier bitte die für euch wichtigste Kategorie als erstes aufführen.","examples":[[{"editorial_category":"geo","level_1":"Kreis Testhaven","level_2":"Teststadt","level_3":"Teststadtteil"}]]},"article_geo_location":{"anyOf":[{"items":{"$ref":"#/components/schemas/GeoLocation"},"type":"array"},{"type":"null"}],"title":"Article Geo Location","description":"Optional: Geo-Daten des Artikels. Es können auch mehrere Orte angegeben werden. Abseits von dem Feld 'ort' sind alle Einträge optional. Erlaubte Einträge in 'granularity_level' sind 'global/bundesland/land/kreis/ort/adresse/other'.","examples":[[{"gps":{"lat":53.550953439921145,"lon":9.990342711673089},"granularity_level":"kreis","ort":"KreisTesthausen","plz":"1924"}]]},"content_type":{"anyOf":[{"type":"string","enum":["article","image","video","KI-Support Testredaktion 1","non-article","advertorial"]},{"type":"null"}],"title":"Content Type","description":"Art des Inhalts. Erlaubte Werte: article, image, video, KI-Support Testredaktion 1, non-article, advertorial"},"ingest_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingest Uuid","description":"UUIDv4 identifying this ingestion event"},"is_archive_article":{"type":"boolean","title":"Is Archive Article","description":"True if delivered via the archive endpoint","default":false}},"type":"object","required":["article_id","article_title","article_text","publish_timestamp","publisher"],"title":"StoredArticle","description":"Article as stored and published; fields here are set by the service, never by publishers."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}