Repository navigation
Conversation
There was a problem hiding this comment.
This whole toplevel nav coupld be moved under somewhere else if we wanted..
|
Cool |
|
I wonder if a better fit than ref-guide is to add it as part of or alongside the Admin UI on /api-docs/ or something? |
Are you suggesting having it not as static docs but as an actual deployed artifacts? Kind of like how https://go.quepidapp.com/api/docs works? |
|
Yes, that would be great. I’m not saying it won’t be useful as static pages in ref guide too, but perhaps then using a more doc like, less interactive rendering? |
My original intention for this JIRA was more to generate a bunch of small snippets using IMO that's still the best option as it'd allow us to reduce what we're currently maintaining "by hand". But there's still lots of value in a parallel |
That makes sense. Would those snippets be individual files checked into git, with explicit re-generation (like we have for picocli docs in a pr branch)? I imagine an on-demand build of openapi-spec is too heavy. Where do we currenlty hand-code REST-API paths, actions and parameters? I know we have some cURL examples here and there, those would be hard to replace as is. Guess an example would help here to grok what it would look like. To limit scope, this PR should probably only do the rendering of these static snippets and wire it in one place in the ref-guide. Then follow-up PRs can replace more hand-written docs. And yet another PR could add swagger-UI style live docs. |
|
Next step on this? |
|
This PR has had no activity for 60 days and is now labeled as stale. Any new activity will remove the stale label. To attract more reviewers, please tag people who might be familiar with the code area and/or notify the dev@solr.apache.org mailing list. To exempt this PR from being marked as stale, make it a draft PR or add the label "exempt-stale". If left unattended, this PR will be closed after another 60 days of inactivity. Thank you for your contribution! |
|
closing in favour of the interactive api explorer in #5201 |
|
I'm +1 to close this out in its current form. That said - I do think we'll need to think through the implications for the ref-guide as v2 takes over more and more. DRY applies to documentation just as much as code, so we don't want to repeat (e.g.) parameter descriptions in multiple places. The API Explorer approach is probably easier in some ways, nut I think the ref-guide's current format is a richer, better experience for most users... |
|
I suspect figuring this out will be driven by when we decide we can remove V1 from our Ref Guide, becasue at that point, we won't have to be straddleing the "v1 and v2" examples that we currently have. |

https://issues.apache.org/jira/browse/SOLR-17395
Description
POC of using the https://stoplight.io/open-source/elements library to render our OpenAPI specfication in Ref Guide.
Solution
This is just a draft, and I don't even know if it should be in Ref Guide or standalone site? I tried Redoc which I've used before but couldn't get the magic to work.
After building the site you need to run
python3 -m http.server 8080 --directory solr/solr-ref-guide/build/siteand hit port 8080.. The docs only work in a HTTP environment.Tests
manual