Images proxy handler

Images proxy handler adds account id as query parameter or json to request and makes request to luna-image-store.

Handler for a certain images.

class luna_api.app.handlers.images_proxy_handler.ImageHandler(request)[source]

Handler for work with an image. See spec_images.

Resource: “/{api_version}/images/{imageId}”

prepareUrl()[source]

Prepare url to the LIS service.

Returns:

same url with correct api version

Return type:

str

class luna_api.app.handlers.images_proxy_handler.ImagesHandler(request)[source]

Handler for create new images. See spec_images.

Resource: “/{api_version}/images”

async postProcessingPost(response)[source]

Default post processing response from the service :param response: response

Returns:

response in api format

Return type:

HTTPResponse

async prepareRequestPost()[source]

Prepare proxy request for method post :returns: proxy request

Return type:

ProxyRequest

prepareUrl()[source]

Prepare url to the LIS service.

Returns:

A str, url

Return type:

str