-
Notifications
You must be signed in to change notification settings - Fork 5
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
API documentation - improve automation and content #770
Comments
Also to figure out how to add the non-v2 API endpoints to the doco (either same doco page or a different one) |
@batpad @nanometrenat Please review the README and confirm if the basic documentation guidelines are sufficient. |
@gulfaraz thanks for that - two further related qs for you:
Also if it's in the functioning part of the code if I were to do the doco updates I would need advice on update process (in terms of branches and PRs etc. so as not to affect anyone else's work - or perhaps best I just feed the updates to you for action instead? thanks + cheers |
A common string is possible using the
From main/settings.py, it looks like search filter is enabled by default for all endpoints. We should disable this filter as default to remove the corresponding documentation. I would check with the dev who enabled this as default before removing anything.
These doc changes are integrated with the functioning parts of the code. I can walk you through the branch + PR process over a call. |
Thanks @gulfaraz for all the investigation and updates. Next step is content creation. I will give it a go when I next have a moment (after installing GIT) else backstop is to send through the content for dev. |
@gulfaraz in the meanwhile, could you make a PR for the documentation update? That will be useful regardless. |
feat: updated readme with documentation guidelines (#770)
@JonathanGarro FYI |
@ypyelab this is the API doco ticket - not sure if the instructions at https://github.com/IFRCGo/go-api#documentation still apply given that https://goadmin.ifrc.org/docs/ is in a different format to previously - but for sure worth making sure all the parameters etc. have specific details re what's expected/format/how to use (i.e. data dictionary type stuff, separate to the bigger picture use case documentation by JG). Here is some prelim work of that nature by BRC (from last year so you would need to check if anything changed since the changes for ticket IFRCGo/go-frontend#1529) |
Bumping this. @thenav56 @szabozoltan69 @k9845 it does seem like the auto docs generation is weirdly broken and is a bit hard to reason about right now. Can we take some time to review the tooling around our documentation generation and bring things up-to-date? We should also auto-generate an
I'm not sure if this is related to the overall weirdness around the automatic docs generation, but it seems likely. We should:
If things do not work, consider other tooling, etc. so that updating docstrings works to update docs, and we can update instructions in the README. Once this is done, we can start the process of incorporating the excellent documentation @ypyelab has made into the API docs. |
@arunissun @tovari @batpad is it still useful having this ticket open, or should we close it given the new world? Cheers |
@nanometrenat, we can close this, the api is nicely documented on go-wiki. |
Actually, on second thoughts, we need to reopen - as currently the "GO Documentation" link in the GO Footer The only (tiny) action required by devs please: The other consideration is how to link to Monty API doco - but that's for another day. @tovari may you please put the above in the to do list? Quick and easy! Thanks |
What about showing somehow https://goadmin.ifrc.org/api-docs/swagger-ui also? As an interactive API documentation. |
Sounds great! As I've been out of the loop for so long I don't think I'm best placed to advise, my key objectives are:
If the Swagger option is deemed to be the best place for people to see endpoints etc. then we should make sure GO footer and GO wiki and GO docs landing page all point to that :) THANK YOU! |
I will re organize the structure of the documentation on Go - wiki. At the moment it has many pages which needs to be combined |
I modified the description to this: |
Done via 76230f6 |
Closing ticket as I can see this has been implemented in Prod - THANKS! @tovari the ticket didn't seem to change status when it was released? Shout if needing a hand to figure out a process to keep tickets in sync :) |
Issue
API documentation is at https://goadmin.ifrc.org/docs/
This needs to be improved and updated, to be more useful to API users. Scratchpad thoughts in Teams wiki, to be added here when actions agreed.
The text was updated successfully, but these errors were encountered: