Get all files related to expiration items
GET
https://api.expirationreminder.net/v1/attachments/expirationitemQuery Parameters
term
stringOptionalDefault:
page
integerOptionalDefault: -1
GET /v1/attachments/expirationitem
$ curl https://api.expirationreminder.net/v1/attachments/expirationitem \
-H "Authorization: Bearer <token>"
Responses
| Property | Type | Description |
|---|---|---|
attachments |
object[] |
- |
pages |
integer (int32) |
- |
page |
integer (int32) |
- |
total |
integer (int32) |
- |
Example Response
{
"attachments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"content": "string",
"name": "string",
"content_type": "string",
"created": "string",
"content_legth": 0,
"entity_type": "string",
"entity_id": "00000000-0000-0000-0000-000000000000"
}
],
"pages": 0,
"page": 0,
"total": 0
}Bad Request
| Property | Type | Description |
|---|---|---|
message |
string |
- |
ok |
boolean |
- |
Example Response
{
"message": "string",
"ok": false
}