API端点:
https://dwz.mk/api/v1/spaces
请求示例:
curl --location --request GET 'https://dwz.mk/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byname 为 名称. 默认为: name.sort_byid 为 创建时间, name 为 名称. 默认为: id.sortdesc 为 降序, asc 为 升序. 默认为: desc.per_page10, 25, 50, 100. 默认为: 10.API端点:
https://dwz.mk/api/v1/spaces/{id}
请求示例:
curl --location --request GET 'https://dwz.mk/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://dwz.mk/api/v1/spaces
请求示例:
curl --location --request POST 'https://dwz.mk/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. 默认为: 1.API端点:
https://dwz.mk/api/v1/spaces/{id}
请求示例:
curl --location --request PUT 'https://dwz.mk/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://dwz.mk/api/v1/spaces/{id}
请求示例:
curl --location --request DELETE 'https://dwz.mk/api/v1/spaces/{id}' \ --header 'Authorization: Bearer {api_key}'