hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FEAT] Support Ticket Acknowledgment (resolved) #70

Closed emarc99 closed 1 month ago

emarc99 commented 1 month ago

Description

When a support ticket that is already opened and acknowledged on the website is resolved, the user should be informed.

Acceptance Criteria

Support Ticket Acknowledgment:

Ticket Resolution:

Notifications:

Purpose

The purpose of the support ticket resolution notification feature is to:

Requirements

Ticket Model:

Database:

Expected Outcome

Endpoint: GET API/v1/resolve-ticket

Description: Marks the user's support ticket as resolved using the ticket ID provided.

Response:

Status code: 200 OK

{
  "message": "Support ticket resolved successfully."
}

Status code: 400 Bad Request

{
  "error": "Invalid or unresolved ticket."
}

Status Code: 409 Conflict

{
  "error": "Ticket already resolved."
}
markessien commented 1 month ago

We are not building a ticketing system