Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: missing route for controller method #641

Open
3 tasks
MuthoniMN opened this issue Feb 28, 2025 · 0 comments
Open
3 tasks

Fix: missing route for controller method #641

MuthoniMN opened this issue Feb 28, 2025 · 0 comments

Comments

@MuthoniMN
Copy link
Contributor

Description

The "destroy" method in BillingPlanController doesn't have a route, documentation or related tests

Acceptance Criteria

  • DELETE endpoint (/api/v1/billing-plans/{id})
  • Documentation for the endpoint
  • Test cases

Request

DELETE - /api/v1/billing-plans/{{plan_id}}

{
     Authorization: "Bearer {auth-token}"
}

Responses

204 - Successful deletion

{
  status: "error",
  status_code: 204
  message: "This billing plan was successfully deleted",
  data: {}
}

404 - Billing plan not found

{
  status: "error",
  status_code: 404
  message: "This billing plan not found",
  data: {}
}

500 - Internal Server Error

{
  status: "error",
  status_code: 500,
  message: "Internal server error",
  data: {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants