Backend for

DineshShaw.in Live

API Reference

Base URL
https://api.dineshshaw.in
GET
/

Returns this documentation page.

GET
/api/views/:id

Retrieve the view count for a blog post by its numeric id.

200 Response
{ "count": 42 }
POST
/api/views/:id

Increment the view count for a blog post. Creates the entry if it doesn't exist.

200 Response
{
  "message": "Views counter incremented",
  "count": 43
}