Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jun 3, 2024

Conversation

EricWittmann
Copy link
Member

@EricWittmann EricWittmann commented Jun 3, 2024

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

  • GET - standard search versions using query param filters
  • POST - search for versions by content

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
Copy link

apicurio-bot bot commented Jun 3, 2024

Thank you for creating a pull request!

Pinging @jsenko to respond or triage.

@EricWittmann EricWittmann merged commit 216de81 into main Jun 3, 2024
20 checks passed
@EricWittmann EricWittmann deleted the rest-api/search-versions branch June 3, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant