- Convert all JSON tests to JavaScript functions for bruToJsonV2 compatibility
- Update authentication to use 'inherit' instead of manual headers
- Fix hardcoded URLs to use {{base_url}} variables
- Standardize variable syntax from {{ _.var }} to {{var}}
- Add comprehensive API documentation to all requests
- Update environment variables with missing required fields
- Apply consistent structure: meta, http method, headers, tests, vars, settings, docs
- Enhanced validation with proper error handling and field checks
47 lines
957 B
Plaintext
47 lines
957 B
Plaintext
meta {
|
|
name: Get Admin Profile
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/admin/profile
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Admin Profile
|
|
|
|
Retrieves the admin profile information for administrative access.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /admin/profile
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Response:**
|
|
- JSON object containing admin profile details
|
|
- `id` (string): Admin user ID
|
|
- `email` (string): Admin email
|
|
- `username` (string): Admin username
|
|
- `theme` (string): Theme preference
|
|
- `first_name` (string): First name
|
|
- `last_name` (string): Last name
|
|
- `is_admin` (boolean): Admin status
|
|
- `created_at` (string): Account creation timestamp
|
|
- `updated_at` (string): Last update timestamp
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 403: Forbidden (non-admin users)
|
|
- 404: Profile not found
|
|
}
|