Repository navigation
[FR] Update to OpenAPI from CoreAPI - #4178
Conversation
|
@SchrodingersGat would you rather keep shipping self-contained API docs or hyperlink to the needed resources from a CDN? |
|
Can we package them as part of docs.inventree.org? That would be my preference, keep all the documentation together. |
|
But how does this work with CORS and own instances (I guess @matmair is speaking about something like swagger docs). I like this idea, but think that this should also be distributed on each inventree instance using only self-contained resources and not some CDN. |
|
@SchrodingersGat we can too, I was more thinking of the self-packaged API docs we ship today. |
|
@wolflu05 this version already includes local assets |
|
If I get this correct, your action will keep committing for each push that contains a diff in the api schema. And if the changes are removed from the pr the comment is still there? |
|
@wolflu05 I removed that part - we want to release more often and figuring this out will probably take good time. |
|
@matmair Ok. Sounds like a good plan. You want to ship the react ui with v0.10.0 parallel to the current ui in experimental mode to get some feedback? |
|
No, I want to prove out the APIs first and enable testing with the beta frontend while I find a solution for plugin templates. Still working out problems with shipping the compiled data in an efficient way without node, yarn etc. |
You mean for non-docker installs? For docker it would be easy to use multi stage builds for that. |
|
@wolflu05 mainly, we have to get it running for deb packages and bare metal |
|
@SchrodingersGat what is your opinion on this PR? Should this be in 0.10.0 or pushed back? |
|
I think let's push it back to next release - I'd like to get |
|
@SchrodingersGat this would be ready for a review now. This changes the API docs (2 versions are included. Redoc on /api-doc and Rapidoc on /api-doc2). We should probably look into the api docstrings, they are varying in structure a lot. |
|
@matmair looks reasonable, although do we need two different version? |
|
@SchrodingersGat redoc is pretty similar to the current docs, rapidoc is quite different. |
|
I quite like the redoc one, can we just use that? |
|
Yes, I will adjust the PR |
|
Excellent work as always, thanks for implementing this @matmair |
|
I will release rapidoc as a plugin https://github.com/matmair/inventree-rapidoc/ |



This PR:
Fixes #3226