{"openapi":"3.1.0","info":{"title":"Drive to Pod","version":"0.1.0"},"paths":{"/api/auth/google":{"post":{"summary":"Google Login","operationId":"google_login_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"summary":"Whoami","operationId":"whoami_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserOut"},{"type":"null"}],"title":"Response Whoami Api Auth Me Get"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/config":{"get":{"summary":"Client Config","description":"What the frontend needs to render the Google button.","operationId":"client_config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/podcasts":{"get":{"summary":"List Podcasts","operationId":"list_podcasts_api_podcasts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PodcastOut"},"type":"array","title":"Response List Podcasts Api Podcasts Get"}}}}}},"post":{"summary":"Create Podcast","operationId":"create_podcast_api_podcasts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePodcastRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/podcasts/{podcast_id}":{"patch":{"summary":"Update Podcast","operationId":"update_podcast_api_podcasts__podcast_id__patch","parameters":[{"name":"podcast_id","in":"path","required":true,"schema":{"type":"integer","title":"Podcast Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePodcastRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Podcast","operationId":"delete_podcast_api_podcasts__podcast_id__delete","parameters":[{"name":"podcast_id","in":"path","required":true,"schema":{"type":"integer","title":"Podcast Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/podcasts/{podcast_id}/refresh":{"post":{"summary":"Refresh Podcast","operationId":"refresh_podcast_api_podcasts__podcast_id__refresh_post","parameters":[{"name":"podcast_id","in":"path","required":true,"schema":{"type":"integer","title":"Podcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/podcasts/{podcast_id}/rotate":{"post":{"summary":"Rotate Feed Url","description":"Issue a new feed URL. The old one stops working (410 Gone).","operationId":"rotate_feed_url_api_podcasts__podcast_id__rotate_post","parameters":[{"name":"podcast_id","in":"path","required":true,"schema":{"type":"integer","title":"Podcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/podcasts/{token}":{"get":{"summary":"Get Podcast Feed","operationId":"get_podcast_feed_podcasts__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/faq":{"get":{"summary":"Faq","operationId":"faq_api_faq_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/faq":{"get":{"summary":"Serve Frontend","operationId":"serve_frontend_faq_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Serve Frontend","operationId":"serve_frontend__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"CreatePodcastRequest":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CreatePodcastRequest"},"GoogleLoginRequest":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleLoginRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PodcastOut":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","title":"Title"},"drive_folder_name":{"type":"string","title":"Drive Folder Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"language":{"type":"string","title":"Language"},"episode_order":{"type":"string","title":"Episode Order"},"feed_url":{"type":"string","title":"Feed Url"},"folder_url":{"type":"string","title":"Folder Url"},"episode_count":{"type":"integer","title":"Episode Count"},"files_skipped":{"type":"boolean","title":"Files Skipped"},"cover_thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Thumbnail Url"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"file_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Count"},"oversized_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oversized Count"},"last_refreshed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Refreshed"},"already_existed":{"type":"boolean","title":"Already Existed","default":false}},"type":"object","required":["id","title","drive_folder_name","description","language","episode_order","feed_url","folder_url","episode_count","files_skipped","cover_thumbnail_url","cover_url","file_count","oversized_count","last_refreshed"],"title":"PodcastOut"},"UpdatePodcastRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"episode_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Order"}},"type":"object","title":"UpdatePodcastRequest"},"UserOut":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","required":["email"],"title":"UserOut"},"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"}}}}