From 6ec2ad272015536a1fab592c20cefe56fccd3ce9 Mon Sep 17 00:00:00 2001 From: "tomosa.sarkar" Date: Thu, 13 Feb 2025 10:50:28 +0530 Subject: [PATCH] modify api.md --- API.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/API.md b/API.md index 1277a8e..1375f45 100644 --- a/API.md +++ b/API.md @@ -48,7 +48,7 @@ Output {"ok":true} ``` -### - Post the complaint request +### - Post a ticket POST http://localhost:3000/api/ticket @@ -66,7 +66,7 @@ Output : "message": "Ticket No:2 created successfully" ``` -### - Get the request By the user +### - Get the list of ticket raised by the user GET http://localhost:3000/api/ticket @@ -107,4 +107,19 @@ Output : ] ``` +### - Get the details ticket for particular ticket raised by the user +GET http://localhost:3000/api/ticket/[ticket_id] + +``` +{ + "id": 1, + "ticket_id": 1, + "category_of_request": "ATM Related", + "nature_of_request": "Transaction Issue", + "additional_info": "ATM ID: PNB23567WE456, Debit Card: 34567895434567, Transaction Amount: 15000, Transaction Reference Number : 345678987654323, Transaction Date: 2025-02-11", + "message": "Money got debited but money not receive. ", + "created_date": "12/2/2025, 12:31:13 pm" +} + +```