- Convert all existing .bru files from JSON to Bruno DSL format - Remove obsolete files (conflicts/api.bru, kobo/Kobo Initialization.bru) - Update auth configuration to use 'inherit' instead of explicit bearer tokens - Add comprehensive documentation to all test files - Improve test scripts with proper assertions and error handling
44 lines
709 B
Plaintext
44 lines
709 B
Plaintext
meta {
|
|
name: List Pending Device Registrations
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/devices/pending
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
docs {
|
|
## List Pending Device Registrations
|
|
|
|
Retrieves all pending device registration requests awaiting approval.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/devices/pending
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Response:**
|
|
- Array of pending device registrations
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
|
|
**Example Response:**
|
|
```json
|
|
[
|
|
{
|
|
"id": "uuid",
|
|
"device_name": "My Kobo",
|
|
"device_type": "kobo",
|
|
"user_id": "uuid",
|
|
"created_at": "2024-01-01T00:00:00Z"
|
|
}
|
|
]
|
|
```
|
|
}
|