Get the cover thumbnail
GET
/api/v1/publications/{publicationId}/cover
const url = 'http://localhost:8080/api/v1/publications/1/cover';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/cover \ --header 'Authorization: Bearer <token>'A JPEG that fits within 400 by 600 pixels, made when the file is scanned.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”publicationId
required
integer format: int64
Responses
Section titled “Responses”The cover.
Media typeimage/jpeg
string format: binary
Headers
Section titled “Headers”ETag
string
Changes whenever the file’s content changes. Send it back in If-None-Match.
The client’s copy is current.
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"}