Hacker News new | ask | show | jobs
by kxrm 1335 days ago
Not OP but you can store all your routes in one file or multiple, it's up to you.

Personally what I do is I script out full API workflows in different files. So one file might login, then POST to add an object, then GET that object off an endpoint, then patch that endpoint, then trigger the GET object again.

Another workflow might login, upload an image, get that image, etc. For me the scripting is what makes this appealing.

But you could setup one file that documents and tests all your endpoints similar to Postman.