-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSteps.txt
More file actions
45 lines (39 loc) · 1.56 KB
/
Steps.txt
File metadata and controls
45 lines (39 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
taskkill /F /IM PMS.Web.exe; dotnet build; dotnet run
dotnet run
cd D:\PMS_Coditium
powershell -ExecutionPolicy Bypass -File "deploy-to-iis.ps1"
powershell -ExecutionPolicy Bypass -File "deploy.ps1"
APIs
====
1) Fetch all queries
- Endpoint: https://hrm.btkdeals.com/queries.php
- Method: GET
- Response: JSON { status, count, data[] }
2) Update a query
- Endpoint: https://hrm.btkdeals.com/updatequery.php
- Method: POST
- Params:
id (required, querystring or body)
query_type, title, description, created_by, email, mobile_no, address,
status, responder_remarks, comments, updated_by (optional; send what you want to update)
- Response: JSON { status, message }
Notes
-----
- Content-Type: application/x-www-form-urlencoded or multipart/form-data for POST.
- For enums, use one of:
query_type: Sales | Complain | Transfer | General | Other
status: Pending | Replied | Ongoing | Resolved | Discarded
API Instructions (short)
1) List all queries
- Endpoint: GET /queries.php
- Returns: JSON { status, count, data: [ ...rows... ] }
2) Update a query
- Endpoint: POST /updatequery.php?id={queryId}
(or put id in body as "id")
- Body (send only fields you want to change):
query_type, title, description, created_by, email,
mobile_no, address, status, responder_remarks, comments, updated_by
- Response: JSON { status, message }
Notes
- Content-Type not required for simple form posts; for JSON, send as application/json and parse server-side before POSTing.
- All timestamps are handled server-side (updated_at).