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,27 +7,44 @@ meta {
|
||||
delete {
|
||||
url: {{baseUrl}}/api/conflicts/{{conflict_id}}
|
||||
body: none
|
||||
auth: bearer
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers: {
|
||||
headers {
|
||||
Authorization: Bearer {{token}}
|
||||
}
|
||||
|
||||
docs: {
|
||||
Deletes a specific conflict record.
|
||||
|
||||
Path Parameters:
|
||||
- conflict_id: UUID of the conflict to delete
|
||||
|
||||
Use this when:
|
||||
- A conflict was created in error
|
||||
- You want to dismiss a conflict without resolving it
|
||||
- The conflict is no longer relevant
|
||||
|
||||
Response: 204 No Content on success
|
||||
|
||||
Note: This permanently removes the conflict record.
|
||||
Consider resolving the conflict instead if you want to
|
||||
maintain an audit trail of what happened.
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
## Delete Conflict
|
||||
|
||||
Permanently deletes a specific conflict record from the system.
|
||||
|
||||
**Method:** DELETE
|
||||
|
||||
**Endpoint:** /api/conflicts/{conflict_id}
|
||||
|
||||
**Authentication:** Bearer token
|
||||
|
||||
**Path Parameters:**
|
||||
- `conflict_id` (string): Conflict UUID to delete
|
||||
|
||||
**Response:** 204 No Content on success
|
||||
|
||||
**Status Codes:**
|
||||
- 204: Success - conflict deleted
|
||||
- 401: Unauthorized
|
||||
- 404: Conflict not found
|
||||
- 500: Internal server error
|
||||
|
||||
**Use Cases:**
|
||||
- Conflict was created in error
|
||||
- Dismissing a conflict without resolving it
|
||||
- Conflict is no longer relevant (e.g., book deleted)
|
||||
|
||||
**Note:** This permanently removes the conflict record with no undo option. Consider resolving the conflict instead if you want to maintain an audit trail of what happened.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user