List a comic's pages
GET
/api/v1/publications/{publicationId}/pages
const url = 'http://localhost:8080/api/v1/publications/1/pages';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/publications/1/pages \ --header 'Authorization: Bearer <token>'The page index in reading order. Empty for formats without pages, such as EPUB. An extension chapter’s pages are asked of its extension the first time and stored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”publicationId
required
integer format: int64
Responses
Section titled “Responses”Every page.
Media typeapplication/json
object
items
required
Array<object>
object
index
required
integer
mediaType
required
string
size
required
The image’s size in bytes. Null for an extension chapter’s pages, whose size isn’t known until they’re fetched; their mediaType is guessed from the page’s URL.
integer | null format: int64
Example
{ "items": [ { "mediaType": "image/jpeg" } ]}The request has no valid session token.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The resource does not exist.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The server failed; details are in its log.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The publication is from a source library, and its source couldn’t be
read (source_unavailable) or its extension failed (source_failed);
the message says why.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}