update news
This commit is contained in:
23
docs/blog.sh
23
docs/blog.sh
@@ -9,4 +9,27 @@ curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
|
||||
"filters": {"published":1},
|
||||
"order_by" : "creation desc",
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
|
||||
GET LIST BLOG
|
||||
curl --location 'https://land.dbiz.com//api/method/frappe.client.get_list' \
|
||||
--header 'Cookie: sid=3976ecf8b1f2708cb6ec569d56addec1dcfadb9321201e84648eb6a3; full_name=PublicAPI; sid=3976ecf8b1f2708cb6ec569d56addec1dcfadb9321201e84648eb6a3; system_user=no; user_id=public_api%40dbiz.com; user_image=' \
|
||||
--header 'X-Frappe-Csrf-Token: 79e51e95363a0c697f50c50b2ac8d6bb90d81ca6c4170da4296da292' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"doctype": "Blog Post",
|
||||
"fields": ["name","title","published_on","blogger","blog_intro","content","meta_image","meta_description","blog_category"],
|
||||
"filters": {"published":1},
|
||||
"order_by" : "published_on desc",
|
||||
"limit_page_length": 0
|
||||
}'
|
||||
|
||||
blog detail
|
||||
curl --location 'https://land.dbiz.com//api/method/frappe.client.get' \
|
||||
--header 'Cookie: sid=18b0b29f511c1a2f4ea33a110fd9839a0da833a051a6ca30d2b387f9; full_name=PublicAPI; sid=723d7a4c28209a1c5451d2dce1f7232c04addb2e040a273f3a56ea77; system_user=no; user_id=public_api%40dbiz.com; user_image=' \
|
||||
--header 'X-Frappe-Csrf-Token: 2b039c0e717027480d1faff125aeece598f65a2a822858e12e5c107a' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"doctype": "Blog Post",
|
||||
"name" : "thông-báo-chương-trình-mua-gạch-eurotile-tặng-keo-chà-ron-và-keo-dán-gạch"
|
||||
}'
|
||||
Reference in New Issue
Block a user