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

Add Collection release dates to the official API #2495

Open
GregSutcliffe opened this issue Sep 8, 2020 · 0 comments
Open

Add Collection release dates to the official API #2495

GregSutcliffe opened this issue Sep 8, 2020 · 0 comments

Comments

@GregSutcliffe
Copy link

Feature Request

Use Case

Adding the release timestamps to the Galaxy API. This is currently visible in the UI, but not in the API.

Proposed Solution

Currently the API looks like:

URL: https://galaxy.ansible.com/api/v2/collections/community/grafana/versions/
    "results": [
        {
            "version": "1.0.0",
            "href": "https://galaxy.ansible.com/api/v2/collections/community/grafana/versions/1.0.0/"
        },
...

It would be great to have the release date in there too, eg

                    "created": "2020-08-16T05:18:29.873694-04:00",

Alternatives

This data is already available via the internal API used by the UI, e.g.:

URL: https://galaxy.ansible.com/api/internal/ui/repo-or-collection-detail/?namespace=community&name=grafana
            "all_versions": [
                {
                    "pk": 3485,
                    "version": "1.0.0",
                    "quality_score": null,
                    "created": "2020-08-16T05:18:29.873694-04:00",
                    "modified": "2020-08-16T05:18:29.873716-04:00",
                    "download_url": "/download/community-grafana-1.0.0.tar.gz"
                },
...

However, relying on internal APIs for external tooling is generally bad form, hence this request.

Implementation

As per the Proposed Solution, adding "created" and also "modified" would be perfect.

@GregSutcliffe GregSutcliffe changed the title Add release dates to the official API Add Collection release dates to the official API Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant