diff --git a/u2_api.yml b/u2_api.yml index acba178..4189209 100644 --- a/u2_api.yml +++ b/u2_api.yml @@ -106,7 +106,7 @@ paths: type: integer in: query description: | - 筛选对此用户生效的魔法(包含私有魔法) + 筛选对此用户生效的魔法(包含私有魔法) 默认为请求者的UID - name: skip_cache schema: @@ -114,7 +114,7 @@ paths: enum: [0, 1] in: query description: | - 0 正常请求[默认] + 0 正常请求[默认] 1 跳过缓存请求 responses: "200": @@ -123,3 +123,36 @@ paths: application/json: schema: type: object + /v1/promotion_specific: + get: + operationId: getPromotionSpecific + summary: 特定种子当前有效魔法 + externalDocs: + url: https://github.com/kysdm/u2_api#特定种子当前有效魔法 + parameters: + - name: uid + schema: + type: integer + in: query + description: u2账户id + required: true + - name: token + schema: + type: string + format: password + in: query + description: 鉴权中返回的值 + required: true + - name: torrent_id + schema: + type: integer + in: query + description: 种子ID + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + type: object