clearlydefined / service

The service side of clearlydefined.io
MIT License
45 stars 40 forks source link

Add batch querying on definition endpoint #1168

Closed pxp928 closed 2 months ago

pxp928 commented 3 months ago

Currently the definition end point requires you to query one at a time based on the coordinates. It would be much more efficient to be able to query in bulk. The bulk ingestion could take in an array of coordinates and return an array of responses based on those.

For would be very helpful for services like GUAC (https://github.com/guacsec/guac/issues/1964) to be able to query clearlydefined endpoint and receive information back quickly without making multiple calls.

qtomlinson commented 3 months ago

@pxp928 Is https://api.clearlydefined.io/api-docs/#/definitions/post_definitions what you are looking for?

pxp928 commented 3 months ago

Yes! I must have missed that. So would that have the rate limit of 250 /min?

qtomlinson commented 3 months ago

@pxp928 yes based on the doc.

pxp928 commented 2 months ago

Closing this issue thanks @qtomlinson