Documenting seneca.js


#1

hello,
I’m trying to document services made with seneca.js.
Basically, rather than having a syntax like baseUrl/resorce1, baseUrl/resource2, we have something like:

baseUrl/act?{“cmd”:“resource1”}, baseUrl/act?{“cmd”:“resource1”}

One idea is to decouple somehow the resource name from the resource url, i.e:

resource name: Products,
resource url: baseUrl/act?{“cmd”:“getProducts”}

but I don’t think it’s possible

do you have some suggestion?


#2

Can you have the part that takes the cmd as a query parameter instead of a json object? So something like baseUrl/act?cmd="resource1"