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] Updated the branch API to be a bit more REST compatible #4763

Merged
merged 11 commits into from
Jun 14, 2024

Conversation

EricWittmann
Copy link
Member

@EricWittmann EricWittmann commented Jun 12, 2024

The API for branches has been updated a bit. The API now looks like this:

Endpoint Operation Description
/groups/:groupId/artifacts/:artifactId/branches GET List all artifact branches.
/groups/:groupId/artifacts/:artifactId/branches POST Create a new branch, can create an empty branch or a branch with some versions.
/groups/:groupId/artifacts/:artifactId/branches/:branchId GET Get branch metadata (description, createdOn, etc)
/groups/:groupId/artifacts/:artifactId/branches/:branchId PUT Update branch metadata (description, etc).
/groups/:groupId/artifacts/:artifactId/branches/:branchId DELETE Delete the branch.
/groups/:groupId/artifacts/:artifactId/branches/:branchId/versions GET List all versions in the branch.
/groups/:groupId/artifacts/:artifactId/branches/:branchId/versions PUT Fully update the list of versions in the branch, replacing the previous list (can be used to re-order).
/groups/:groupId/artifacts/:artifactId/branches/:branchId/versions POST Add a new version to the branch.

@EricWittmann EricWittmann requested a review from jsenko June 13, 2024 19:19
@EricWittmann EricWittmann merged commit 82f59a5 into main Jun 14, 2024
20 checks passed
@EricWittmann EricWittmann deleted the rest-api/branches-upgrade branch June 14, 2024 16:06
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