Api
User
curl -X POST "http://prod-cn.your-api-server.com/user/apikey/new" \
-H "Authorization: " \
-H "Content-Type: application/json" \
-d '{
"name": "leo"
}'
{
"code": 0,
"msg": "string",
"data": {
"api_key": "string"
}
}
curl -X DELETE "http://prod-cn.your-api-server.com/user/apikey/delete/1" \
-H "Authorization: "
{
"code": 0,
"msg": "string",
"data": {}
}
API Key List
Query Parameters
page_num?integer
page_size?integer
Header Parameters
Authorization?string
Response Body
curl -X GET "http://prod-cn.your-api-server.com/user/apikey/lists?page_num=1&page_size=5" \
-H "Authorization: "
{
"code": 0,
"msg": "string",
"data": {
"page_num": 0,
"page_size": 0,
"total": 0,
"total_page": 0,
"data": [
{
"id": 0,
"name": "string",
"api_key": "string",
"created_at": "string",
"last_used_at": "string"
}
]
}
}
curl -X GET "http://prod-cn.your-api-server.com/user/call/filter_values" \
-H "Authorization: "
{
"code": 0,
"msg": "string",
"data": {
"api_key_names": [
"string"
],
"platforms": [
"string"
],
"states": "string"
}
}