Summary
DELETE /tenants/{tenant_id} returns { "success": true } (SuccessResponse), but DELETE /tenants/{tenant_id}/destinations/{destination_id} returns the full Destination object.
The OpenAPI spec documents both as returning SuccessResponse, but the destination delete handler actually returns the deleted destination.
Current behavior
DELETE /tenants/{tid} — tenant_handlers.go
c.JSON(http.StatusOK, gin.H{"success": true})
DELETE /tenants/{tid}/destinations/{did} — destination_handlers.go
c.JSON(http.StatusOK, display) // returns full DestinationDisplay
Options
- Fix code — Change destination delete to return
{ "success": true } to match the tenant pattern and the current OpenAPI spec
- Fix spec — Update the OpenAPI spec to document that destination delete returns the full Destination object (useful if callers want to confirm what was deleted)
Context
Found during a full OpenAPI spec audit against the implementation.
Summary
DELETE /tenants/{tenant_id}returns{ "success": true }(SuccessResponse), butDELETE /tenants/{tenant_id}/destinations/{destination_id}returns the full Destination object.The OpenAPI spec documents both as returning
SuccessResponse, but the destination delete handler actually returns the deleted destination.Current behavior
DELETE /tenants/{tid} —
tenant_handlers.goDELETE /tenants/{tid}/destinations/{did} —
destination_handlers.goOptions
{ "success": true }to match the tenant pattern and the current OpenAPI specContext
Found during a full OpenAPI spec audit against the implementation.