商品类目查询 Web UI 其他工具可通过 HTTP 调用本工具的查询功能。支持 JSON 和表单两种 POST 方式。
curl "http://127.0.0.1:9877/api/query?productId=xxx&profileId=1"
curl -X POST "http://127.0.0.1:9877/api/query" \
-H "Content-Type: application/json" \
-d '{"productId":"xxx","profileId":1}'
curl -X POST "http://127.0.0.1:9877/api/query" \ -d "productId=xxx&profileId=1"
curl -X POST "http://127.0.0.1:9877/api/profiles" \
-H "Content-Type: application/json" \
-d '{"name":"我的店铺","channelId":"xxx","cookie":"..."}'
curl -X PUT "http://127.0.0.1:9877/api/profiles/1" \
-H "Content-Type: application/json" \
-d '{"channelId":"xxx","cookie":"..."}'
curl -X DELETE "http://127.0.0.1:9877/api/profiles/1"