{"openapi":"3.1.0","info":{"title":"GET /api/v1/public/blog/posts/{slug}","version":"1.0.0","description":"Get a published blog post by slug"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/public/blog/posts/{slug}":{"get":{"tags":["blog-public"],"summary":"Get a published blog post by slug","description":"Public, unauthenticated, cached fetch of one published post. Returns 404 for drafts, soft-deleted, or unknown slugs.","operationId":"get_public_post_api_v1_public_blog_posts__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostPublicResponse"}}}},"404":{"description":"Not Found - Resource does not exist","content":{"application/json":{"example":{"detail":"Resource not found"}}}},"429":{"description":"Too Many Requests - Rate limit exceeded","content":{"application/json":{"example":{"detail":"Rate limit exceeded"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BlogPostPublicResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"body_md":{"type":"string","title":"Body Md"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Alt"},"seo_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Title"},"seo_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Description"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"related":{"items":{"$ref":"#/components/schemas/BlogPostPublicSummary"},"type":"array","title":"Related","description":"Up to 3 related published posts (tag overlap, falling back to most-recent if no overlap exists)."}},"type":"object","required":["slug","title","body_md","published_at","updated_at"],"title":"BlogPostPublicResponse","description":"Full public view used on /blog/{slug} and in API detail responses."},"BlogPostPublicSummary":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Alt"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["slug","title","published_at"],"title":"BlogPostPublicSummary","description":"Card-sized view used on /blog and in API list responses."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}