- 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
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
meta {
|
|
name: Dismiss All Resolved Conflicts
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/api/conflicts/dismiss-all
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{token}}
|
|
}
|
|
|
|
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
|
|
}
|
|
```
|
|
|
|
**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.
|
|
}
|