API
This portfolio publishes a small read-only HTTP API so an agent can quote the page without scraping HTML. There is no API key, no write operation, and no sandbox account. Every documented route is a public GET.
- GET /api/portfolio.json returns name, bio, projects, stack, timeline, and contact.
- GET /api/health returns {"status":"ok"}.
- GET /openapi.json is the OpenAPI description, with an operationId and a typed schema on each operation.
- GET /llms.txt is the short index, including when to use this site.
- GET /index.md is the homepage as Markdown. Sending Accept: text/markdown to the homepage returns the same body.
A working request:
curl https://debeshghorui.dev/api/portfolio.json
Errors use application/problem+json with a code, a detail, and a resolution. An unknown path under /api returns 404. A method other than GET or HEAD returns 405. The API is public and does not issue rate-limit quotas.