This ticket is simple: API of hr.sr.ht is not in similar state as git.sr.ht's.
From the beginning, there is no documented API for hg.sr.ht:
Also it seems to me hg.sr.ht's API is not implemented at all, or this is not so obvious:
- https://git.sr.ht/~sircmpwn/git.sr.ht/tree/master/gitsrht/blueprints has
api.py, which has lots of
- https://hg.sr.ht/~sircmpwn/hg.sr.ht/browse/default/hgsrht/blueprints has no obvious equivalent.
My use case was to try webhooks in my hg repo, and I thought that however there are no docs then by analogy to git.sr.ht's API I can achieve at least
GET /api/:username/repos/:name/webhooks. :(