Composes

cornice_sphinx does not yet have the ability to render documentation for the /composes/ API, so we will include docblock documentation for that service here instead.

class bodhi.server.services.composes.Composes(request, context=None)[source]

Bases: object

Defines resources for interacting with Compose objects.

Operations acting on the collection are served at /composes/ and operations acting on a single compose are served at /composes/<release_name>/<request>.

__acl__()[source]

Define ACLs for the Compose resource.

Returns:A list of ACLs for this Resource.
Return type:list
__init__(request, context=None)[source]

Initialize the Compose resource.

Parameters:
  • request (pyramid.request.Request) – The current web request.
  • context (None) – Unused.
__weakref__

list of weak references to the object (if defined)

collection_get()[source]

List composes.

This method responds to the /composes/ endpoint.

Returns:A dictionary mapping the key ‘composes’ to an iterable of all Compose objects.
Return type:dict
get()[source]

Retrieve and render a single compose.

This API responses to the /composes/<release_name>/<request> endpoint.

Returns:A dictionary mapping the key ‘compose’ to a single Compose object.
Return type:dict