enzonotario / vitepress-openapi

Generate VitePress API Docs from OpenAPI specifications
https://vitepress-openapi.vercel.app
MIT License
54 stars 9 forks source link

Path based sidebar #119

Open stereobooster opened 1 week ago

stereobooster commented 1 week ago

What would you like?

I wonder if it is possible to implement path based sidebar. For example, we have

/api/v1/products CRUD
/api/v1/orders CRUD

Sidebar would look like

/api/v1
  ├ products
  |  ├ PUT
  |  ├ GET
  |  ├ POST
  |  └ DELETE
  └ orders
     ├ PUT
     ├ GET
     ├ POST
     └ DELETE

Note: empty folders are collapsed

Why is this needed?

I want to use more than one tag per endpoint. But in this case sidebar looks strange. Maybe there is a way to organize sidebar better even if there are multiple tags...

How could it be implemented?

No response

Other information

No response