hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX](PHP) Refactoring Billing Plan API Endpoint for  Deleting a Billing Plan #1136

Open Ndudi04 opened 2 months ago

Ndudi04 commented 2 months ago

Description:

Refactor our current API endpoint for deleting a billing plan to have the following route and response body.

Route:


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

Parameters:

id (string, path): The ID of the billing plan to delete.

Response Body:

Status Code: 200 OK


{

  "data": true,

  "message": "string",

  "status_code": 0

}

Status Code: 

404 Not Found


{

  "data": "string",

  "error": "string",

  "message": "string",

  "status_code": 0

}
bamo100 commented 2 months ago

hello @Ndudi04 abeg assign me to this ticket it seems the feature never existed also

bamo100 commented 2 months ago

@Ndudi04 i have implemented it

Ndudi04 commented 2 months ago

@bamo100