-
-
Notifications
You must be signed in to change notification settings - Fork 131
documenting some endpoints of the api #76
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
Conversation
|
We have internally discussed API documentation, and I think we saw that the best idea would be in-code documentation (as PHP comments). However, we haven't decided that. A few things, if we do decide that we want the documentation to be in the current docs as simple text
I'd wait for another core member to chime in here though. |
|
Hi Nicco! 👋 While I agree with David that we want to move to something auto-generated from the source code as our source of truth, I still think having any API docs would be nicer than having none. As @datitisev, this would have to be moved to a separate section of the documentation, though. @flarum/core Any input on the best place for that? |
I agree with this point: our extend docs should be for extension developers. IMO, a REST API documentation section should be moved out to its own section of the docs. |
|
For sure this should be in it's own API sub directory something like flarum.org/docs/api should be fine in the end. |
|
I love the approach Stripe made. They have extremely well thought out documentation on every topic. But they have an additional API doc for developers where not just endpoints are described (including their payloads), but also example objects are provided. https://stripe.com/docs/api |
|
@luceos I found a vuepress theme that supports the example query/response area, but I don't know if it's possible to target specific folders/areas with a specific theme on vuepress or if it has to be global https://github.com/sqrthree/vuepress-theme-api |
|
Here's a message I sent last year in a private channel about possible tools for API documentation.
Franz might prefer inline documentation
There's also Stoplight Studio (https://stoplight.io/studio/) which integrates with Git, and Postman (https://learning.postman.com/docs/postman/api-documentation/documenting-your-api/). |
|
Closing for inactivity. |
|
Anything I can refer to for an API...please? Even if its half baked..... |
This is useful for me if I would like to provide 3rd-party services for Flarum.