Attributes proxy handler

Handler for a certain attributes.

class luna_api.app.handlers.attributes_proxy_handler.AttributeHandler(request)[source]

Handler for work with attributes by id. See spec_attributes.

Resource: “/{api_version}/attributes/{attributeId}”

class luna_api.app.handlers.attributes_proxy_handler.AttributeSamplesHandler(request)[source]

Handler for work with attributes samples. See spec_attributes.

Resource: “/{api_version}/attributes/{attributeId}/samples”

class luna_api.app.handlers.attributes_proxy_handler.AttributesHandler(request)[source]

Handler for getting attributes ids. See spec_attributes.

Resource: “/{api_version}/attributes”

async postProcessingPost(response)[source]

Post processing new attribute. :param response: response from faces

Returns:

response with new attribute

Return type:

HTTPResponse

async prepareRequestPost()[source]

Prepare new attribute.

Returns:

Proxy request wit new attribute

Raises:

VLException(Error.BadMultipartInput) – if request has incorrect Content Type

Return type:

ProxyRequest