ui: add new API docs tab#9409
Conversation
This introduces a new API docs table which is enabled by default but the admin can disable it via config.json. This uses the discovered APIs for logged in user/account to show them the APIs accessible to them and generates dynamic API docs based on them which are searchable. Also introduces some common auto-completed API groups that are available to most roles. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9409 +/- ##
============================================
- Coverage 15.54% 15.54% -0.01%
+ Complexity 11976 11975 -1
============================================
Files 5493 5494 +1
Lines 481030 481055 +25
Branches 60247 60363 +116
============================================
- Hits 74766 74763 -3
- Misses 398000 398030 +30
+ Partials 8264 8262 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
UI build: ✔️ |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
JoaoJandre
left a comment
There was a problem hiding this comment.
LGTM, tested with npm run serve, went through a lot of APIs and all seemed ok, also verified that the download and docs for CMK was ok. Great addition!
I think that it might be interesting to have the 'since' for APIs/params as well, what do you think @rohityadavcloud ? cc @DaanHoogland @weizhouapache
sureshanaparti
left a comment
There was a problem hiding this comment.
Verified the API docs section, with some APIs listed.
|
@JoaoJandre thanks for reviewing and testing. Let me explore if since can be added. There’s also a related field and routability between selected APIs. |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
* ui: add new API docs tab This introduces a new API docs table which is enabled by default but the admin can disable it via config.json. This uses the discovered APIs for logged in user/account to show them the APIs accessible to them and generates dynamic API docs based on them which are searchable. Also introduces some common auto-completed API groups that are available to most roles. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * Update ui/src/views/plugins/ApiDocsPlugin.vue * Update ui/src/views/plugins/ApiDocsPlugin.vue * Update ui/src/views/plugins/ApiDocsPlugin.vue * Update ui/src/views/plugins/ApiDocsPlugin.vue * Update ui/src/views/plugins/ApiDocsPlugin.vue * fix performance issues Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * Update ui/src/views/plugins/ApiDocsPlugin.vue Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com> * Update ui/public/locales/en.json Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com> * address Suresh's feedback Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * filter example/options as we type Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * Address Joao's comments Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> --------- Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>





This introduces a new API docs tab which is enabled by default but the admin can disable it via config.json. This uses the discovered APIs for logged in user/account to show them the APIs accessible to them and generates dynamic API docs based on them which are searchable. Also introduces some common auto-completed API groups that are available to most roles.
Types of changes