nic-chen commented on issue #861:
URL: 
https://github.com/apache/apisix-dashboard/issues/861#issuecomment-738524806


   > Based on previous discussions, we need two apis in manager-api, a API to 
get label list, and a API to search routes by labels filter.
   > 
   > * Get label list(create a new API)
   >   API name: `GET /apisix/admin/labels`
   >   Data:
   > 
   > ```json
   > [
   >   {"key":  "value"},
   >   {"key":  "value2"},
   >   {"key2":  "value3"},
   >   ...
   > ]
   > ```
   > 
   > * Search routes by lables (expand existing interfaces `GET 
/apisix/admin/routes`, add query params)
   >   API name: `GET /apisix/admin/routes?label=key:value&label=key:value1&...`
   >   Data: routes list, just keep the same with current data.
   > 
   > cc @LiteSun @membphis @gxthrj @nic-chen @juzhiyuan
   
   
   I think API `Get label list` also need support search, like:
   
   `GET /apisix/admin/labels?label=key&label=key:value&...`
   
   User can filter when there are too many labels.
   
   What do you think? @liuxiran 
   
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to