New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation of token system for write API #2018
Comments
Hey @jywarren can i work on it? |
For sure, thank you! |
Sorry for not documenting the feature at that point in time as I was in a haste to complete the tasks on the timeline. Thanks for volunteering to work on it, @namangupta01! I would love to review it once you finish documenting. |
No problem at all! Teamwork! |
@ryzokuken Thank you! :) |
@jywarren @ryzokuken So i was working on this issue, i was wondering that do i only have to document about comments through token i.e https://github.com/publiclab/plots2/pull/1513/files ? |
@namangupta01 correct! This is the PR where I actually wrote the code for commenting through a token. |
Hi, everyone! Can I help with this too? How is it going so far? I was thinking about start writing the token documentation to familiarize more with the API. |
@stefannibrasil I think this is abandoned for now, so you may feel free to go ahead and work on this. Let us know if you face any issues. |
Thanks, @ryzokuken I am gonna start working on documenting the token feature this week. I am going to see some examples and I'll let you know anything, of course. Thanks for the help! @sukhbir-singh do you wanna start working on this too? We can compare our work later. |
Yeah! sure 😄 |
HI @jywarren and @ryzokuken! After reading more the docs provided here, I have some questions to ask:
That's what I understand so far. I would appreciate if you could give a little more information on that. Thanks! |
@stefannibrasil for saving time and effort, I had avoided making the "commenting over tokens" action a part of the existing Swagger API spec, and had made a standalone function in the Rails codebase (in I don't think Swagger allows you to document external functions, but I might be wrong. I hope that makes it clear, feel free to ask for clarification on any of this. |
That makes sense, thanks! After looking more at the docs and how to write API docs, I added some changes to this PR. I am not sure if that's the type of documentation you were asking for. I added my questions in the description, could you please take a look and see if you can help me? I couldn't find much documentation about the token, you can tell me where to look more too, that would help! :) @sukhbir-singh sorry, I am not on gitter, but if you want, you can contribute in the PR too, that would be great. |
@stefannibrasil you can check out this video for demo showing how to use postman for making request on comment API. 🎈 |
Great, is this complete, or is there more we could break out about this one? Feel free to close it up if it's done! Thanks, all!!! |
Actually perhaps we can add a couple additions -- like, could we refine https://github.com/publiclab/plots2/blob/master/app/controllers/comment_controller.rb#L48-L73 |
@jywarren +1, that sounds perfect. |
Hey, everyone! These are good points, thanks! The PR was already merged, I'll add this and create another one then =) |
Also, thanks @sukhbir-singh thanks for all the help here! |
No problem...!! Happy to help. I am very active on github, gitter and irc, you can ping me there further if you need help in any case. 😃 |
We now have a token system for people (or bots) to post comments via the API, thanks to @ryzokuken. We just need some documentation now!
API docs live here: https://github.com/publiclab/plots2/blob/master/doc/API.md and there's more work at #1449
We should document:
Starting point here: https://github.com/publiclab/plots2/pull/1513/files
Thanks!
The text was updated successfully, but these errors were encountered: