{"openapi":"3.0.0","info":{"version":"1.0.0","title":"Corp Service","description":"A small plain-Hono service. Hosts the HTML Share feature."},"servers":[{"url":"http://localhost:3020","description":"Local development server"}],"paths":{"/":{"get":{"summary":"Landing page","description":"Navigation cards linking to the service's tools (HTML Share, API docs, health).","responses":{"200":{"description":"Landing page","content":{"text/html":{}}}}}},"/health":{"get":{"summary":"Healthcheck","description":"Railway healthcheck target. Returns 'ok'.","responses":{"200":{"description":"Service healthy","content":{"text/plain":{}}}}}},"/html-share":{"get":{"summary":"Upload UI","description":"Self-contained HTML page to paste/drop HTML or Markdown.","responses":{"200":{"description":"Upload page","content":{"text/html":{}}}}}},"/html-share/encode":{"post":{"summary":"Create a share link","description":"Stores content in memory (expires after 24h) and returns a short link.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["content"],"properties":{"content":{"type":"string","description":"HTML or Markdown source."},"format":{"type":"string","enum":["html","markdown"],"description":"Defaults to 'html' when omitted."}}}}}},"responses":{"200":{"description":"Share created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"}}}}}},"400":{"description":"Invalid content/format or payload too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/html-share/render/{id}":{"get":{"summary":"Render a stored share","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Rendered HTML","content":{"text/html":{}}},"404":{"description":"Share not found or expired","content":{"text/plain":{}}}}}}}}