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}”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

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”

checkTokenPermissions()[source]

Check token permissions for request

Return type:

None

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

Handler for getting attributes ids. See spec_attributes.

Resource: “/{api_version}/attributes”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

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