Open aleksa-krolls opened 1 month ago
Here is my feedback for the API reference.
I am going to make a few comments on the API itself while I'm here, although that's technically not part of this work
params
object feels more like options
, and I would be in favour of changing the APIs to be a bit cleaner(params, callback)
structureparams
are not documented in detail (needs a typedef)params
language is vague - it talks about a fetch or filter
but neither thing is explainedcallback
function is not well described (to be fair, it never is). It's actually an operation signature.get info for a form
, get with filter
, and get with callback
.getDeploymentInfo(formId, options, callback)
making a request
an says you can attach headers etc. But as it's called getForms
it should really be abstracting out the HTTP API.params
is not documentedMake a request to get the list of forms
- what forms? All forms? Can I filter?get all forms
as one example, and maybe get with callback
as another. If those params are actually important (and I doubt it) we should add an example for them tooGet submissions for a specific form
but params says it allows a filter? So is it for one form or can I get all submissions and filter?There is clear documentation on the configuration. Like every other adaptor I don't think its well presented, but that's a wider problem
There is one example, with a score of 0, with no code. So that needs sorting out.
Also the readme has quite a nice example of filtering on submissions
Review & audit the existing docs for the Kobo adaptor to determine what the "best-class" version of the documentation on the adaptor functions and examples could look like.
To check:
options
documented? (And how do we do this?)