links property

  1. @override
List<Link> get links
inherited

Links which will be added to Publication.links. It can be used to expose a web API for the service, through Publication.get.

To disambiguate the href with a publication's local resources, you should use the prefix /~readium/. A custom media type or rel should be used to identify the service.

You can use a templated URI to accept query parameters, e.g.:

Link(
    href = "/~readium/search{?text}",
    type = "application/vnd.readium.search+json",
    templated = true
)

Implementation

@override
List<Link> get links => RouteHandler.links;