Closed
Bug 986421
Opened 11 years ago
Closed 11 years ago
Need clear documentation of the server APIs
Categories
(Hello (Loop) :: Server, defect)
Hello (Loop)
Server
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: standard8, Assigned: alexis+bugs)
References
Details
(Whiteboard: [qa+][mlp-server?])
Attachments
(1 file)
The server API documentation is highly insufficient. I currently have the following issues:
- Some requests require parameters in JSON bodies, others require them in querystrings
- It is unclear the intention of some of the parameters, and what their intended values and scales are.
- The return values are not documented.
The API documentation really should be updated in sync with the bugs that are implementing/changing the APIs.
Comment 1•11 years ago
|
||
Should reviewers be requiring documentation updates for r+? I'd say yes.
Comment 2•11 years ago
|
||
dmose we will definitly do that in the future.
The hardest part is to setup the first layout.
Tomorrow we will land the first documentation draft and after that we will require documentation changes for every PR. :)
Comment 3•11 years ago
|
||
Great; glad to hear it!
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8396763 -
Flags: review?(adam)
Attachment #8396763 -
Flags: feedback?(standard8)
Attachment #8396763 -
Flags: feedback?(dmose)
Assignee | ||
Comment 5•11 years ago
|
||
I did a pull request with some basic documentation. Please provide me any feedback on it. You can have a look at the rendered documentation here, in the meantime I put a preview version here: http://alexis.notmyidea.org/services-docs/loop/
Assignee | ||
Updated•11 years ago
|
Attachment #8396763 -
Flags: feedback?(nperriault)
Comment 7•11 years ago
|
||
In my experience it helps to give curl example for API calls.
Comment 8•11 years ago
|
||
Maybe using the HTTPie <https://github.com/jkbr/httpie> format?
Assignee | ||
Comment 9•11 years ago
|
||
That's a brilliant idea! I've updated the docs with full examples. Updated the temporary location : http://alexis.notmyidea.org/services-docs/loop/apis.html#apis
Reporter | ||
Comment 10•11 years ago
|
||
Comment on attachment 8396763 [details] [review]
link to github PR
Commented on PR, looks generally good to me.
Attachment #8396763 -
Flags: feedback?(standard8) → feedback+
Comment on attachment 8396763 [details] [review]
link to github PR
Looks very good to me as well.
Attachment #8396763 -
Flags: feedback?(nperriault) → feedback+
Comment 12•11 years ago
|
||
Comment on attachment 8396763 [details] [review]
link to github PR
Looks good to me too. Presumably, this wants to be linked to from the wiki page and the README once it's live.
Attachment #8396763 -
Flags: feedback?(dmose) → feedback+
Comment 13•11 years ago
|
||
Comment on attachment 8396763 [details] [review]
link to github PR
This looks correct for MLP. Thanks.
Attachment #8396763 -
Flags: review?(adam) → review+
Assignee | ||
Comment 14•11 years ago
|
||
Waiting for the docs to regenerate. In the meantime they're available here: http://moz-services-docs.readthedocs.org/en/latest/
Comment 15•11 years ago
|
||
Alexis -- Is this bug completed for MLP? Thanks.
Flags: needinfo?(alexis+bugs)
Whiteboard: [qa+] → [qa+][mlp-server?]
Assignee | ||
Comment 16•11 years ago
|
||
For whatever reason the docs fails to generate, that's why I'm keeping it open.
Dan, can you have a look there and tell me why the docs are not generating correctly on docs.services.mozilla.com ? (the svn seems up to date, but the actual docs aren't).
Flags: needinfo?(alexis+bugs) → needinfo?(dmaher)
Comment 17•11 years ago
|
||
It should be noted that I no longer work in the webops team, and thus, am no longer responsible for this mechanism.
That said, I looked into it, and determined that the cause of the problem was a simple logic failure in the update script, which would cause it to not pull the repo under a specific circumstance. That has now been fixed, so the site should update as expected from now own. I apologise for the inconvenience.
Flags: needinfo?(dmaher)
Assignee | ||
Comment 18•11 years ago
|
||
Oh okay, thanks dan for the convenience then ;)
Assignee | ||
Comment 19•11 years ago
|
||
http://docs.services.mozilla.com/loop/apis.html is the new docs location.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•