Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Getting back links from the API #102

Closed
daviddavis opened this issue Jul 17, 2014 · 3 comments
Closed

Getting back links from the API #102

daviddavis opened this issue Jul 17, 2014 · 3 comments
Labels

Comments

@daviddavis
Copy link
Contributor

Not sure if there's a different endpoint we should be hitting but it seems odd that the API would return links for package versions:

$ curl https://apps.fedoraproject.org/packages/fcomm_connector/bodhi/query/query_active_releases/%7B%22filters%22:%7B%22package%22:%22rubygem-activesupport%22%7D,%22rows_per_page%22:7,%22start_row%22:0%7D
{"visible_rows":7,"total_rows":7,"start_row":0,"rows":[{"stable_version":"4.1.4-1.fc21","testing_version":"None","release":"Rawhide"},{"stable_version":"4.1.4-1.fc21","testing_version":"None","release":"Fedora 21"},{"stable_version":"4.0.0-2.fc20","testing_version":"None","release":"Fedora 20"},{"stable_version":"<a href=\"https://admin.fedoraproject.org/updates/rubygem-activesupport-3.2.13-2.fc19\">3.2.13-2.fc19</a>","testing_version":"None","release":"Fedora 19"},{"stable_version":"None","testing_version":"None","release":"Fedora EPEL 7"},{"stable_version":"2.3.8-2.el6","testing_version":"None","release":"Fedora EPEL 6"},{"stable_version":"2.1.1-2.el5","testing_version":"None","release":"Fedora EPEL 5"}],"rows_per_page":7}

Thanks.

@ralphbean
Copy link
Contributor

Agreed. There's lots of weird HTML stuffed into the JSON returned from the API.

The pkgwat.api python api just strips it out, but it shouldn't be there in the first place.

@ralphbean ralphbean added the API label Oct 17, 2015
@ralphbean
Copy link
Contributor

This seems to be a duplicate of #24.

@daviddavis
Copy link
Contributor Author

Agreed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants