repository.controllers module

Request controllers for the repository service.

These are used to handle requests originating from routes.api.

repository.controllers.get_eprint_events(identifier, version)[source]

Retrieve events for a specific e-print version.

Parameters
  • identifier (str) – A valid arXiv identifier.

  • version (int) – Numeric version of the e-print.

Raises

NotFound – Raised when the requested identifier + version does not exist.

Return type

Tuple[Dict[str, Any], HTTPStatus, Dict[str, str]]

repository.controllers.get_eprint_pdf(identifier, version)[source]

Retrieve pdf for a specific e-print version.

Parameters
  • identifier (str) – A valid arXiv identifier.

  • version (int) – Numeric version of the e-print.

Raises

NotFound – Raised when the requested identifier + version does not exist.

Return type

Tuple[Dict[str, Any], HTTPStatus, Dict[str, str]]

repository.controllers.service_status(_)[source]

Handle requests for the service status endpoint.

Returns 200 OK if the service is up and ready to handle requests.

Return type

Tuple[Dict[str, Any], HTTPStatus, Dict[str, str]]