logoalt Hacker News

jiehongtoday at 1:41 AM0 repliesview on HN

Recently, I was wondering why http API don’t make use of the body of a http OPTIONS query to discover what an endpoint does.

It’s easy enough to send back the openapi definition for that endpoint only.

Also, when calling an endpoint, instead of a simple 404, we could have a 303 see others, or short description of all available endpoints