Apicurio / apicurio-registry

An API/Schema registry - stores APIs and Schemas.
https://www.apicur.io/registry/
Apache License 2.0
588 stars 261 forks source link

[REST API] Created a `/search/versions` endpoint #4726

Closed EricWittmann closed 4 months ago

EricWittmann commented 4 months ago

This allows searching for versions across all groups and artifacts. It has two variants:

The latter variant also replaces the old way of figuring out which version of an artifact uses specific content, which was semantically problematic and existed here:

POST /groups/:groupId/artifacts/:artifactId

That operation has been removed. Now if you need to find an artifact version by content you must use the POST variant of /search/versions and include groupId and artifactId filter query params (along with optional sorting and limiting params). It's much more flexible and I think makes a lot more sense semantically.

Note that I also renamed type properties in the REST API definition to artifactType since we've done the same for all our IDs. It seems redundant but I think adds clarity.

apicurio-bot[bot] commented 4 months ago

Thank you for creating a pull request!

Pinging @jsenko to respond or triage.