{"openapi":"3.1.1","info":{"title":"Loka Tech Blog API","version":"1.3.0","description":"Public, read-only access to the blog search index and individual published articles. See the [API deprecation policy](https://techblog.loka.com/docs/deprecation/) for version changes and retirement notices."},"servers":[{"url":"https://techblog.loka.com"}],"externalDocs":{"url":"https://techblog.loka.com/docs/"},"paths":{"/search-index.json":{"get":{"operationId":"listArticles","summary":"List published articles","description":"Fetch the complete article index in one request. Filter the returned records locally by title, text, author, topic or tag.","parameters":[{"in":"header","name":"If-None-Match","required":false,"description":"Send the ETag from a cached index to check whether that copy is still current.","schema":{"type":"string"}}],"responses":{"200":{"description":"The published article index.","headers":{"ETag":{"description":"Validator for this representation. Preserve the surrounding quotes when revalidating.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Article"}}}}},"304":{"description":"The cached index is current. The response has no body.","headers":{"ETag":{"description":"Validator for this representation. Preserve the surrounding quotes when revalidating.","schema":{"type":"string"}}}},"429":{"description":"GitHub Pages may throttle requests. Pause requests before trying again. The host supplies an HTML explanation.","content":{"text/html":{"schema":{"$ref":"#/components/schemas/RateLimitErrorPage"}}}}}}},"/api/v1/article-cursors/{cursor}.json":{"get":{"operationId":"listArticlesAfter","summary":"Resume browsing after the last article read","description":"Start with index and follow next until it is null. A continuation resumes after its named article, including when newer articles have been published.","parameters":[{"in":"path","name":"cursor","required":true,"description":"Use index to start or the next_cursor returned by an earlier request.","schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"example":"index"}],"responses":{"200":{"description":"The next slice of published articles.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleCursorPage"}}}},"404":{"description":"No published resource at this URL. The HTML document embeds a machine-readable problem in script[type=\"application/problem+json\"].","content":{"text/html":{"schema":{"$ref":"#/components/schemas/NotFoundPage"}}},"links":{"publicationIndex":{"operationId":"listArticlePage","parameters":{"page":"1"}}}},"429":{"description":"GitHub Pages may throttle requests. Pause requests before trying again. The host supplies an HTML explanation.","content":{"text/html":{"schema":{"$ref":"#/components/schemas/RateLimitErrorPage"}}}}}}},"/api/v1/article-pages/{page}.json":{"get":{"operationId":"listArticlePage","summary":"Browse one page of article summaries","description":"Start at page 1. Follow next until it is null. Fetch an item’s record URL for its full text.","parameters":[{"in":"path","name":"page","required":true,"description":"One-based page number, written in decimal without leading zeros.","schema":{"type":"integer","minimum":1},"example":1}],"responses":{"200":{"description":"Article summaries in publication order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticlePage"}}}},"404":{"description":"No published resource at this URL. The HTML document embeds a machine-readable problem in script[type=\"application/problem+json\"].","content":{"text/html":{"schema":{"$ref":"#/components/schemas/NotFoundPage"}}},"links":{"publicationIndex":{"operationId":"listArticlePage","parameters":{"page":"1"}}}},"429":{"description":"GitHub Pages may throttle requests. Pause requests before trying again. The host supplies an HTML explanation.","content":{"text/html":{"schema":{"$ref":"#/components/schemas/RateLimitErrorPage"}}}}}}},"/api/v1/articles/{slug}.json":{"get":{"operationId":"getArticle","summary":"Read one published article","description":"Return the article text, authors, topics and canonical path for a slug from the index.","parameters":[{"in":"path","name":"slug","required":true,"description":"The final path segment of the article href, without slashes.","schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"example":"openai-bedrock"}],"responses":{"200":{"description":"The published article.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Article"}}}},"404":{"description":"No published resource at this URL. The HTML document embeds a machine-readable problem in script[type=\"application/problem+json\"].","content":{"text/html":{"schema":{"$ref":"#/components/schemas/NotFoundPage"}}},"links":{"publicationIndex":{"operationId":"listArticlePage","parameters":{"page":"1"}}}},"429":{"description":"GitHub Pages may throttle requests. Pause requests before trying again. The host supplies an HTML explanation.","content":{"text/html":{"schema":{"$ref":"#/components/schemas/RateLimitErrorPage"}}}}}}}},"components":{"schemas":{"Article":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"href":{"type":"string","description":"Article path relative to the site origin."},"title":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string"},"abstract":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"authors":{"type":"array","items":{"type":"string"},"description":"Author display names."},"text":{"type":"string","description":"Article text used for client-side search."}},"required":["href","title","description","abstract","tags","topics","authors","text"]},"ArticlePage":{"type":"object","required":["page","total","next","items"],"properties":{"page":{"type":"integer","minimum":1},"total":{"type":"integer","minimum":0,"description":"Number of published articles across all pages."},"next":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, or null on the last page."},"items":{"type":"array","maxItems":10,"items":{"type":"object","required":["title","description","href","record"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"href":{"type":"string","format":"uri-reference","description":"Canonical article path relative to the site origin."},"record":{"type":"string","format":"uri","description":"Absolute URL of the full article record."}}}}}},"ArticleCursorPage":{"type":"object","required":["total","next","next_cursor","items"],"properties":{"total":{"type":"integer","minimum":0,"description":"Number of published articles across all pages."},"next":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, or null on the last page."},"items":{"type":"array","maxItems":10,"items":{"type":"object","required":["title","description","href","record"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"href":{"type":"string","format":"uri-reference","description":"Canonical article path relative to the site origin."},"record":{"type":"string","format":"uri","description":"Absolute URL of the full article record."}}}},"next_cursor":{"type":["string","null"],"description":"Cursor for the next request. Null at the end of the list."}}},"RateLimitErrorPage":{"type":"string","contentMediaType":"text/html","description":"HTML error document supplied by GitHub Pages when it limits traffic."},"NotFoundPage":{"type":"string","contentMediaType":"text/html","description":"The Pages error document. Read the JSON problem from the script element with type application/problem+json.","x-embedded-problem-schema":{"$ref":"#/components/schemas/NotFound"}},"NotFound":{"type":"object","required":["type","title","status","detail","code","index"],"properties":{"type":{"type":"string","const":"about:blank"},"title":{"type":"string"},"status":{"type":"integer","const":404},"detail":{"type":"string"},"code":{"type":"string","const":"not_found"},"index":{"type":"string","format":"uri","description":"Publication index for finding an available article."}}}}}}