Releases¶
Release service at /releases/{name}¶
Fedora Releases
GET¶
Accepted content types:- text/html
Render a release given by id as HTML.
- Args:
- request (pyramid.Request): The current request.
- Returns:
- basestring: An HTML representation of the reqeusted Release.
Response: release.html
GET¶
Accepted content types:- application/javascript
Return JSON for a release given by name.
- Args:
- request (pyramid.json): The current request.
- Returns:
- bodhi.server.models.Release: The matched Release.
Response: jsonp
GET¶
Accepted content types:- application/json
- text/json
Return JSON for a release given by name.
- Args:
- request (pyramid.json): The current request.
- Returns:
- bodhi.server.models.Release: The matched Release.
Response: json
Releases service at /releases/¶
Fedora Releases
GET¶
values in the querystring- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- name (String) - (optional)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- text/html
Return all releases, collated by state, rendered as HTML.
- Args:
- request (pyramid.request): The current request.
- Returns:
- dict: A dictionary with a single key, releases, mapping another dictionary that maps release
- states to a list of Release objects that are in that state.
Make sure this singular release existsMake sure those updates existMake sure those packages exist
Response: releases.html
GET¶
values in the querystring- chrome (Boolean) - (default: true)
- page (Integer) - (default: 1)
- rows_per_page (Integer) - (default: 20)
- name (String) - (optional)
- updates (Sequence) - (optional)
- packages (Sequence) - (optional)
- application/json
- text/json
Search releases by given criteria, returning the results as JSON.
- Args:
- request (pyramid.request): The current request.
- Returns:
- dict: A dictionary with the following keys:
- releases: An iterable of the Releases that match the query. page: The current page. pages: The total number of pages. rows_per_page: The number of rown on a page. total: The number of matching results.
Make sure this singular release existsMake sure those updates existMake sure those packages exist
Response: json
POST¶
values in the body- csrf_token (String)
- name (String)
- long_name (String)
- version (String) - (optional)
- branch (String)
- id_prefix (String)
- dist_tag (String)
- stable_tag (String)
- testing_tag (String)
- candidate_tag (String)
- pending_signing_tag (String) - (default: “”)
- pending_testing_tag (String) - (default: “”)
- pending_stable_tag (String) - (default: “”)
- override_tag (String)
- state (String) - (default: “disabled”)
- edited (String) - (optional)
Save a release.
This entails either creating a new release, or editing an existing one. To
edit an existing release, the release’s original name must be specified in
the edited
parameter.
- Args:
- request (pyramid.request): The current request.
- Returns:
- bodhi.server.models.Request: The created or edited Request.
Ensure that all the tags are valid Koji tagsConvert from strings to our enumerated types
Response: json