Skip to content

Use-case: retrieve PDF for specific version of an e-print #13

Open
@erickpeirson

Description

@erickpeirson

As a developer, I should be able to write a client that can retrieve the canonical PDF for a specific version of an e-print via a RESTful API.

We need to implement the view described at https://github.com/arXiv/arxiv-canonical/tree/develop/repository#e-printidentifiervversionpdf.

The core of the implementation should be a controller function that takes a valid arXiv identifier. This should be implemented in https://github.com/arXiv/arxiv-canonical/blob/a7ef358c49fe68cae353919f489f636763879ec0/repository/repository/controllers.py

A route will also be required at https://github.com/arXiv/arxiv-canonical/blob/a7ef358c49fe68cae353919f489f636763879ec0/repository/repository/routes/api.py -- this can use the arxiv: converter (see also https://github.com/arXiv/arxiv-base/blob/3c516f4c3e83d9c242afe10efdad06de3d87b5d4/arxiv/base/converter.py#L9) that is registered by the arXiv Base package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    repository serviceWork related to the canonical repository service

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions