add
This commit is contained in:
64
docs/projects.sh
Normal file
64
docs/projects.sh
Normal file
@@ -0,0 +1,64 @@
|
||||
#get status list
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.project.get_project_status_list' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \
|
||||
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"limit_start": 0,
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
|
||||
#response
|
||||
{
|
||||
"message": [
|
||||
{
|
||||
"status": "Pending approval",
|
||||
"label": "Chờ phê duyệt",
|
||||
"color": "Warning",
|
||||
"index": 1
|
||||
},
|
||||
{
|
||||
"status": "Approved",
|
||||
"label": "Đã được phê duyệt",
|
||||
"color": "Success",
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
"status": "Rejected",
|
||||
"label": "Từ chối",
|
||||
"color": "Danger",
|
||||
"index": 3
|
||||
},
|
||||
{
|
||||
"status": "Cancelled",
|
||||
"label": "HỦY BỎ",
|
||||
"color": "Danger",
|
||||
"index": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
#get project list
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.project.get_list' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \
|
||||
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"limit_start": 0,
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
#response
|
||||
{
|
||||
"message": [
|
||||
{
|
||||
"name": "p9ti8veq2g",
|
||||
"designed_area": "Sunrise Villa Phase 355",
|
||||
"design_area": 350.5,
|
||||
"request_date": "2025-11-26 09:30:00",
|
||||
"status": "Đã được phê duyệt",
|
||||
"reason_for_rejection": null,
|
||||
"status_color": "Success"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user