modify api.md
This commit is contained in:
parent
e3eae07f33
commit
6ec2ad2720
19
API.md
19
API.md
@ -48,7 +48,7 @@ Output
|
|||||||
{"ok":true}
|
{"ok":true}
|
||||||
```
|
```
|
||||||
|
|
||||||
### - Post the complaint request
|
### - Post a ticket
|
||||||
|
|
||||||
POST http://localhost:3000/api/ticket
|
POST http://localhost:3000/api/ticket
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ Output :
|
|||||||
"message": "Ticket No:2 created successfully"
|
"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
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user