forked from syntaxbullet/aurorabot
feat: implement lootdrop management endpoints and fix class api types
This commit is contained in:
30
docs/api.md
30
docs/api.md
@@ -350,6 +350,36 @@ List economy transactions.
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## Lootdrops
|
||||
|
||||
### `GET /api/lootdrops`
|
||||
List lootdrops (default limit 50, sorted by newest).
|
||||
|
||||
| Query Param | Type | Description |
|
||||
|-------------|------|-------------|
|
||||
| `limit` | number | Max results (default: 50) |
|
||||
|
||||
**Response:** `{ "lootdrops": [...] }`
|
||||
|
||||
### `POST /api/lootdrops`
|
||||
Spawn a lootdrop in a channel.
|
||||
|
||||
**Body:**
|
||||
```json
|
||||
{
|
||||
"channelId": "1234567890",
|
||||
"amount": 100,
|
||||
"currency": "Gold"
|
||||
}
|
||||
```
|
||||
|
||||
### `DELETE /api/lootdrops/:messageId`
|
||||
Cancel and delete a lootdrop.
|
||||
|
||||
---
|
||||
|
||||
## Quests
|
||||
|
||||
### `GET /api/quests`
|
||||
|
||||
Reference in New Issue
Block a user