- Add device registration and management API tests - Add conflicts resolution API tests - Add queue management API tests - Add KOReader sync protocol tests - Add Kobo sync protocol tests
48 lines
836 B
Plaintext
48 lines
836 B
Plaintext
meta {
|
|
name: Reject Device Registration
|
|
type: http
|
|
seq: 7
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/api/devices/reject/{{registration_id}}
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
headers: {
|
|
Authorization: Bearer {{token}}
|
|
}
|
|
|
|
docs {
|
|
## Reject Device Registration
|
|
|
|
Rejects a pending device registration request.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /api/devices/reject/:registration_id
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Path Parameters:**
|
|
- `registration_id` (string): Registration request UUID
|
|
|
|
**Response:**
|
|
- Success message confirming rejection
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 404: Registration not found
|
|
- 400: Invalid registration status
|
|
|
|
**Example Response:**
|
|
```json
|
|
{
|
|
"message": "Device registration rejected",
|
|
"registration_id": "uuid"
|
|
}
|
|
```
|
|
}
|