Image status
This endpoint can be used to retrieve the current image processing status for the specified ad
Reference
GET /imagestatus/<userId>/[<adId>]
or
POST /imagestatus/<userId>/[<adId>]
Retrieve the image-status of one or more advertisements from the specified user.
Fields result
| field | type | description/constraints | Req | W | U |
|---|---|---|---|---|---|
| images | array | List of imagestatus-objects | Yes | No | No |
Fields imagestatus
| field | type | description/constraints | Req | W | U |
|---|---|---|---|---|---|
| adId | int | Yes | No | No | |
| imagesource | array | List of URLs to be processed by the image-queue | Yes | No | No |
| created | datetime | Date/time of job creation | Yes | No | No |
| processing | boolean | Yes | No | No | |
| done | boolean | Yes | No | No | |
| result | boolean | Yes | No | No |
Example
Request
GET /rest/v1/imagestatus/13571/659593 HTTP/2
or
POST /rest/v1/imagestatus/ HTTP/2
{
"userId": 13571,
"adId": [
659593
]
}
Response
{
"result": true,
"errors": [],
"data": [
{
"adId": 3142697,
"images": [
{
"URL": "https://dev-mijn.goedgeplaatst.nl/files/demo/hap...01.png",
"path": ""
},
{
"URL": "https://dev-mijn.goedgeplaatst.nl/files/demo/hap...02.jpeg",
"path": ""
}
],
"created": "2024-02-28 13:02:05",
"processing": false,
"done": false,
"result": false
},
{
"adId": 3142697,
"images": [
{
"URL": "",
"path": "/var/www/goedgeplaatst…/64e62a03c5cee818056248.jpg"
}
],
"created": "2024-02-28 11:54:12",
"processing": false,
"done": true,
"result": true
},
{
"adId": 3142697,
"images": [
{
"URL": "https://dev-mijn.goedgeplaatst.nl/media/…056248.jpg",
"path": ""
}
],
"created": "2024-02-28 14:28:04",
"processing": false,
"done": true,
"result": true
}
]
}