ปลายทาง API:
https://chimera.market.pna.co.th/api/v1/spaces
ตัวอย่างคำขอ:
curl --location --request GET 'https://chimera.market.pna.co.th/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byname for ชื่อ. Defaults to: name.sort_byid for วันที่สร้าง, name for ชื่อ. Defaults to: id.sortdesc for จากมากไปน้อย, asc for จากน้อยไปมาก. Defaults to: desc.per_page10, 25, 50, 100. Defaults to: 10.ปลายทาง API:
https://chimera.market.pna.co.th/api/v1/spaces/{id}
ตัวอย่างคำขอ:
curl --location --request GET 'https://chimera.market.pna.co.th/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
ปลายทาง API:
https://chimera.market.pna.co.th/api/v1/spaces
ตัวอย่างคำขอ:
curl --location --request POST 'https://chimera.market.pna.co.th/api/v1/spaces' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
namecolor1, 2, 3, 4, 5, 6. Defaults to: 1.ปลายทาง API:
https://chimera.market.pna.co.th/api/v1/spaces/{id}
ตัวอย่างคำขอ:
curl --location --request PUT 'https://chimera.market.pna.co.th/api/v1/spaces/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
namecolor1, 2, 3, 4, 5, 6.ปลายทาง API:
https://chimera.market.pna.co.th/api/v1/spaces/{id}
ตัวอย่างคำขอ:
curl --location --request DELETE 'https://chimera.market.pna.co.th/api/v1/spaces/{id}' \ --header 'Authorization: Bearer {api_key}'