Cogine LLM Gateway

兑换码

获取所有兑换码

GET
/api/redemption/

Query Parameters

p?integer
page_size?integer

Response Body

curl -X GET "https://loading/api/redemption/"
Empty

创建兑换码

POST
/api/redemption/

Request Body

application/json

id?integer
name?string
key?string
status?integer
quota?integer
created_time?integer
redeemed_time?integer

Response Body

curl -X POST "https://loading/api/redemption/" \  -H "Content-Type: application/json" \  -d '{}'
Empty

更新兑换码

PUT
/api/redemption/

Request Body

application/json

id?integer
name?string
key?string
status?integer
quota?integer
created_time?integer
redeemed_time?integer

Response Body

curl -X PUT "https://loading/api/redemption/" \  -H "Content-Type: application/json" \  -d '{}'
Empty

搜索兑换码

GET
/api/redemption/search

Query Parameters

keyword?string

Response Body

curl -X GET "https://loading/api/redemption/search"
Empty

获取指定兑换码

GET
/api/redemption/{id}

Path Parameters

id*integer

Response Body

curl -X GET "https://loading/api/redemption/0"
Empty

删除兑换码

DELETE
/api/redemption/{id}

Path Parameters

id*integer

Response Body

curl -X DELETE "https://loading/api/redemption/0"
Empty

删除无效兑换码

DELETE
/api/redemption/invalid

Response Body

curl -X DELETE "https://loading/api/redemption/invalid"
Empty