4 ms·
Show HN: I gave my API a JSON homepage
- Dementor430 2y agoWhats the point of doing this? I am curious now
- nathan_f77 2y agoIt's just an easter egg in case someone accidentally clicks on api.docspring.com or sends an API request without a path. I thought it would be more fun than a generic 404 error like this: { "status": "error", "error": "Unrecognized request URL (GET: /) }
- eszed 2y agoThat's pretty darn cool. I can see all of your services and endpoints without having to click through a bunch of menus in a gui, and discover some I might not have thought to ask for on my own - like "There's a PostMan collection? Great!". Nice idea.