List Package Versions
List Package Versions
To retrieve a list of all versions of a specific package, use the following REST API endpoint:
- Endpoint:
https://api.repoflow.io/<workspace-name>/<repo-name>/<package-name>/versions
- Method: GET
Request Details
This API retrieves the available versions of a package stored in the specified repository. Ensure that the repository type is local
or virtual
, as this endpoint is designed to work with local and virtual repositories only.
Example Response
On success, the API returns an array of package version details with HTTP status 200:
[
{
"version": "0.1.0",
"createdAt": "2025-01-02T12:06:57.520627+00:00"
},
{
"version": "0.2.5",
"createdAt": "2025-01-04T12:09:27.520621+00:00"
},
...
]
Each entry in the array contains:
version
: The version of the package.createdAt
: The timestamp when the version was created.
Error Responses
- 404 Not Found: If the package is not found in the repository.
- 500 Internal Server Error: If an unexpected error occurs during the request processing.