Pobierz miniaturę obiektu
GET
/api/{entityName}/{entityId}/preview
const url = 'https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/example/example/preview';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 https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/example/example/preview \ --header 'Authorization: Bearer <token>'Zwraca miniaturę głównego zdjęcia obiektu, np. do wyświetlania na listach.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”entityName
wymagane
string
entityId
wymagane
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
smallUrl
string
miniUrl
string
originalCompressedUrl
string
entityName
string
entityIdentifier
string
slot
integer format: int32
object
smallUrl
string
miniUrl
string
originalCompressedUrl
string
entityName
string
entityIdentifier
string
slot
integer format: int32
Examplegenerated
{ "smallUrl": "example", "miniUrl": "example", "originalCompressedUrl": "example", "entityName": "example", "entityIdentifier": "example", "slot": 1}object
smallUrl
string
miniUrl
string
originalCompressedUrl
string
entityName
string
entityIdentifier
string
slot
integer format: int32
Examplegenerated
{ "smallUrl": "example", "miniUrl": "example", "originalCompressedUrl": "example", "entityName": "example", "entityIdentifier": "example", "slot": 1}Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

