Pobierz zdjęcia wielu obiektów
POST
/api/GetMany/{entityName}
const url = 'https://twoja-instancja-image-gallery-api.enterprise.sellrocket.pl/api/GetMany/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ids":["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/GetMany/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ "example" ] }'Zwraca zdjęcia dla listy identyfikatorów obiektów danego typu – operacja odczytu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”entityName
wymagane
string
Treść żądania
Dział zatytułowany „Treść żądania”object
ids
Array<string>
Examplegenerated
{ "ids": [ "example" ]}object
ids
Array<string>
Examplegenerated
{ "ids": [ "example" ]}object
ids
Array<string>
Examplegenerated
{ "ids": [ "example" ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
entityId
string
pictures
Array<object>
object
slot
integer format: int32
url
string
type
string
extension
string
Array<object>
object
entityId
string
pictures
Array<object>
object
slot
integer format: int32
url
string
type
string
extension
string
Examplegenerated
[ { "entityId": "example", "pictures": [ { "slot": 1, "url": "example", "type": "example", "extension": "example" } ] }]Array<object>
object
entityId
string
pictures
Array<object>
object
slot
integer format: int32
url
string
type
string
extension
string
Examplegenerated
[ { "entityId": "example", "pictures": [ { "slot": 1, "url": "example", "type": "example", "extension": "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

