Thanks for starting this thread :)
We are very hopeful that we'll be getting a technical writer to work on the API docs as part of Google Season of Docs (GSoD).
However theres still plenty of work for other people to do!
I'd like the GSoDs writer to concentrate on the higher level - to make it much easier for people to get to grips with the API and to understand how it fits together.
Ricardo (thc202) is working on generating an OpenAPI definition of our current API. This will define the calls but not the responses, which we dont have defined in code.
Areas that I think other people can work on are:
- Improving the existing call descriptions
- Adding parameter descriptions
- Adding response definitions and descriptions
The existing call descriptions can be worked on right now - they are just defined in the relevant properties file, eg:
No code changes are required. You just need to find the relevant property file then add or update message properties with the following name conventions:
<component>.api.<type>.<name>
where <type> is one of 'action', 'other' or 'view'
At the moment _some_ of the descriptions give some info about the parameters.I think that once we have a framework for generating the OpenAPI definitions then we'll want to be able to document the parameters individually.
We'll also want to be able to define what the response structure looks like.
Both of these things will require code changes.
I think that the current mechanism for adding API descriptions works well, so for the parameters how about we adopt the conventions that the keys must be:
<component>.api.<type>.<name>.param.<param_name>
The response definitions will be more complicated, so for those I think we should wait to see how Ricardo gets on.
Cheers,
Simon