sideshowcoder / canned

Server to respond with fake API responses, by using a directory of files for finding out what to say!
213 stars 46 forks source link

List all routes available #48

Open sideshowcoder opened 9 years ago

sideshowcoder commented 9 years ago

Currently canned resolves the routes on request, which is great since they can be modified while canned is running without any problems, adding new files/folders/etc. One thing missing so is the option to actually list what is available, currently this is mostly done by using tree to show the folder structure of the example folder, which prints something like this:

screen shot 2014-12-16 at 09 55 18

Sadly this does not take into account the rules canned has to resolve the paths, it would be awesome to get something like this:

example(master*)$ canned routes
verb   path
GET  /search
PUT  /comment/1
...

This means crawling the current file tree and resolving the routes and print.