refactor(bruno): migrate API tests to Bruno DSL format
- 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
This commit is contained in:
@@ -7,29 +7,48 @@ meta {
|
||||
post {
|
||||
url: {{baseUrl}}/api/conflicts/dismiss-all
|
||||
body: none
|
||||
auth: bearer
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers: {
|
||||
headers {
|
||||
Authorization: Bearer {{token}}
|
||||
}
|
||||
|
||||
docs: {
|
||||
Deletes all resolved conflicts for the authenticated user.
|
||||
|
||||
Use this to:
|
||||
- Clean up your conflicts list after reviewing resolutions
|
||||
- Remove old resolved conflicts that are no longer needed
|
||||
- Maintain a clean conflict history
|
||||
|
||||
Response includes:
|
||||
- deleted: Number of conflict records that were deleted
|
||||
|
||||
Example response:
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
## Dismiss All Resolved Conflicts
|
||||
|
||||
Deletes all resolved conflicts for the authenticated user, cleaning up the conflict list.
|
||||
|
||||
**Method:** POST
|
||||
|
||||
**Endpoint:** /api/conflicts/dismiss-all
|
||||
|
||||
**Authentication:** Bearer token
|
||||
|
||||
**Response:**
|
||||
- `deleted` (number): Number of conflict records that were deleted
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success - conflicts deleted
|
||||
- 401: Unauthorized
|
||||
- 500: Internal server error
|
||||
|
||||
**Example Response:**
|
||||
```json
|
||||
{
|
||||
"deleted": 5
|
||||
}
|
||||
|
||||
Note: Only resolves conflicts with status "user_resolved"
|
||||
are deleted. Unresolved conflicts are preserved.
|
||||
```
|
||||
|
||||
**Use Cases:**
|
||||
- Clean up conflicts list after reviewing resolutions
|
||||
- Remove old resolved conflicts no longer needed
|
||||
- Maintain a clean conflict history
|
||||
|
||||
**Note:** Only conflicts with status "user_resolved" or "auto_resolved" are deleted. Unresolved conflicts are preserved.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user