Pobierz miniatury wielu obiektów
POST
/api/bulk-preview
const url = 'https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/bulk-preview';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"id":"example","selector":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/bulk-preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "id": "example", "selector": "example" } ]'Zwraca miniatury dla listy obiektów – operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Array<object>
object
id
string
selector
string
Examplegenerated
[ { "id": "example", "selector": "example" }]Array<object>
object
id
string
selector
string
Examplegenerated
[ { "id": "example", "selector": "example" }]Array<object>
object
id
string
selector
string
Examplegenerated
[ { "id": "example", "selector": "example" }]Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
string
selector
string
smallUrl
string
miniUrl
string
originalCompressedUrl
string
Array<object>
object
id
string
selector
string
smallUrl
string
miniUrl
string
originalCompressedUrl
string
Examplegenerated
[ { "id": "example", "selector": "example", "smallUrl": "example", "miniUrl": "example", "originalCompressedUrl": "example" }]Array<object>
object
id
string
selector
string
smallUrl
string
miniUrl
string
originalCompressedUrl
string
Examplegenerated
[ { "id": "example", "selector": "example", "smallUrl": "example", "miniUrl": "example", "originalCompressedUrl": "example" }]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

