Skip to content

Include 'id' in WebBrokerApi delete success response #1957

@coderabbitai

Description

@coderabbitai

Summary

The DeleteWebBrokerApiById handler in gateway/gateway-controller/pkg/api/handlers/webbroker_api_handler.go currently returns only status and message in the HTTP 200 delete response. The documented schema for this endpoint includes the id of the deleted resource.

Expected

The delete success response should include the id field to match the endpoint contract:

{
  "status": "success",
  "message": "WebBrokerApi deleted successfully",
  "id": "<deleted-resource-id>"
}

Context

Requested by: @senthuran16

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions