virelay.server

Represents the server of ViRelAy, which contains the backend REST API and serves the frontend web app.

Functions

format_exception(exception, ...)

Formats the specified exception as a string so that it can be logged.

http_bad_request(error, add_debug_information)

Generates an HTTP 400 Bad request response.

http_not_found(error, add_debug_information)

Generates an HTTP 404 Not Found response.

http_ok(content)

Generates an HTTP 200 OK response.

send_image_file(image)

Converts the image to a JPEG image and generates a response which sends the image to the client.

Classes

AnalysisJson

Represents an analysis in the JSON response of the backend REST API.

AnalysisMethodJson

Represents an analysis method in the JSON response of the backend REST API.

AttributionJson

Represents an attribution in the JSON response of the backend REST API.

CategoryJson

Represents a category in the JSON response of the backend REST API.

LabelJson

Represents a label in the JSON response of the backend REST API.

ProjectJson

Represents a project in the JSON response of the backend REST API.

SampleJson

Represents a sample in the JSON response of the backend REST API.

Server

Represents the server of ViRelAy, which encapsulates the backend REST API and the frontend web app.