48 lines
785 B
Markdown
48 lines
785 B
Markdown
# backend-pull-notifications
|
|
|
|
Base URL: `https://notifier.gansejunge.com/internal/backend-pull-notifications`
|
|
|
|
### `POST /notifications/pull`
|
|
|
|
**Pull Notifications**
|
|
|
|
| Name | In | Type | Required |
|
|
|---|---|---|---|
|
|
| `X-User-Id` | header | integer | yes |
|
|
|
|
**Example:**
|
|
|
|
```bash
|
|
curl -X POST 'https://notifier.gansejunge.com/internal/backend-pull-notifications/notifications/pull' \
|
|
-H 'X-API-Key: <api_key>'
|
|
```
|
|
|
|
**Responses:**
|
|
|
|
- `200`: Successful Response
|
|
```json
|
|
{
|
|
"messages": [
|
|
{}
|
|
],
|
|
"count": 0,
|
|
"has_more": true
|
|
}
|
|
```
|
|
- `422`: Validation Error
|
|
```json
|
|
{
|
|
"detail": [
|
|
{
|
|
"loc": [
|
|
"string"
|
|
],
|
|
"msg": "string",
|
|
"type": "string",
|
|
"input": null,
|
|
"ctx": {}
|
|
}
|
|
]
|
|
}
|
|
```
|