mdnfiras opened a new issue, #3210:
URL: https://github.com/apache/apisix-dashboard/issues/3210

   # Feature request
   
   ## Please describe your feature
   
   Exposing a bulk operation to fetch multiple credentials of different 
consumers in one request.
   
   Our application has a web portal in which we can filter consumers by their 
credentials. This requires us to load all credentials first, and then we can 
perform the filtering in the web portal when the user provides a key to filter 
with.
   
   ## Describe the solution you'd like
   
   One solution would be to implement a dedicated Bulk Endpoint for credentials:
   * Define a separate URL for bulk operations, e.g. `POST 
/apisix/admin/credentials`.
   * Requires a JSON body listing all consumer IDs, e.g `["consumer1", 
"consumer2"]`
   * The server responds with a mapping of consumer ID → credentials, e.g 
`{"consumer1": [... credentials ...], "consumer2": [... credentials ...]}`
   
   ## Describe alternatives you've considered
   
   The workaround right now is to loop over the list of consumers, and for each 
consumer make an API request to get the credentials, which increases network 
traffic and latency.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to