{"openapi":"3.1.0","info":{"title":"rashidazarang.com public API","version":"1.0.0","summary":"Read-only JSON access to the essays, case studies, guides, research, books and CV of Rashid Azarang.","description":"Public and unauthenticated. Everything returned is published on rashidazarang.com and quotable with attribution to its source URL. The same corpus is served as an MCP server at /mcp and as markdown on any page with Accept: text/markdown; see /developers and /llms.txt.","contact":{"name":"Rashid Azarang","url":"https://rashidazarang.com/contact"}},"servers":[{"url":"https://rashidazarang.com"}],"externalDocs":{"description":"Developer resources","url":"https://rashidazarang.com/developers"},"paths":{"/api/search":{"get":{"operationId":"searchContent","summary":"Search the public corpus","description":"Lexical search over guides, services, questions, places, essays, case studies and research. Each result carries a content id for /api/content/{id}, its canonical URL and an excerpt.","parameters":[{"name":"query","in":"query","required":true,"description":"What to look for (at most 500 characters).","schema":{"type":"string","maxLength":500}},{"name":"language","in":"query","required":false,"description":"Only results in this language.","schema":{"type":"string","enum":["en","es"]}},{"name":"type","in":"query","required":false,"description":"Only results of this kind.","schema":{"type":"string","enum":["profile","guide","essay","case-study","research","service","question","location"]}},{"name":"limit","in":"query","required":false,"description":"How many results.","schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/content/{id}":{"get":{"operationId":"getContent","summary":"Read one search result by its content id","parameters":[{"name":"id","in":"path","required":true,"description":"A content id from /api/search, such as guide:en:secure-database-mcp.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No public item has this id or slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/context":{"get":{"operationId":"getContext","summary":"Structural overview of the corpus: languages, topics, content types, surfaces and reading paths","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/posts":{"get":{"operationId":"listPosts","summary":"List the public essays","parameters":[{"name":"lang","in":"query","required":false,"description":"Only essays in this language.","schema":{"type":"string","enum":["en","es"]}},{"name":"topic","in":"query","required":false,"description":"Only essays on this topic.","schema":{"type":"string","enum":["ai-systems","engineering","philosophy","psychology","building","writing","personal","projects","notes"]}},{"name":"audience","in":"query","required":false,"description":"Only essays written for this audience.","schema":{"type":"string","enum":["technical","general","reflective","personal"]}},{"name":"content_format","in":"query","required":false,"description":"Only essays of this format.","schema":{"type":"string","enum":["essay","tutorial","reflection","analysis","note","transcript"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array"}}}},"400":{"description":"A parameter is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/posts/{slug}":{"get":{"operationId":"getPost","summary":"One essay: its metadata and full markdown body","parameters":[{"name":"slug","in":"path","required":true,"description":"The essay slug, as in /c/{slug}.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No public item has this id or slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/case-studies":{"get":{"operationId":"listCaseStudies","summary":"List the case studies","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array"}}}}}}},"/api/case-studies/{slug}":{"get":{"operationId":"getCaseStudy","summary":"One case study: its metadata and full markdown body","parameters":[{"name":"slug","in":"path","required":true,"description":"The case study slug, as in /case-studies/{slug}.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No public item has this id or slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/md/{slug}":{"get":{"operationId":"getMarkdown","summary":"Any essay or case study as plain markdown, without a JSON wrapper","parameters":[{"name":"slug","in":"path","required":true,"description":"An essay or case study slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"The piece as markdown.","content":{"text/markdown":{"schema":{"type":"string"}}}},"404":{"description":"No public item has this id or slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/research":{"get":{"operationId":"listResearch","summary":"Research papers and software records: metadata, abstract, DOI or arXiv id, and where to read them","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array"}}}}}}},"/api/books":{"get":{"operationId":"listBooks","summary":"Books, with the addresses of their rendered editions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array"}}}}}}},"/api/films":{"get":{"operationId":"getFilms","summary":"The film channel, its episodes, the studio and product videos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/portfolio":{"get":{"operationId":"getPortfolio","summary":"Shipped platforms and open-source repositories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/libros":{"get":{"operationId":"listLibros","summary":"The Spanish books read in the site reader, with their chapters","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/libros/{slug}":{"get":{"operationId":"getLibro","summary":"One Spanish book: its metadata and chapter list","parameters":[{"name":"slug","in":"path","required":true,"description":"The book slug, such as manual-despertar.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/libros/{slug}/chapters/{chapterSlug}":{"get":{"operationId":"getLibroChapter","summary":"One chapter of a Spanish book: its full composition document","parameters":[{"name":"slug","in":"path","required":true,"description":"The book slug.","schema":{"type":"string"}},{"name":"chapterSlug","in":"path","required":true,"description":"The chapter slug, from /api/libros/{slug}.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}