Skip to content

Commit 86bc238

Browse files
authored
[create-pull-request] automated change (#143)
1 parent 301eb85 commit 86bc238

File tree

1 file changed

+199
-4
lines changed

1 file changed

+199
-4
lines changed

api.yaml

Lines changed: 199 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ components:
206206
private:
207207
description: 仅自己可见
208208
type: boolean
209+
progress:
210+
description: |-
211+
是否自动完成条目进度,仅在 `type` 为 `看过` 时有效,并且不会产生对应的时间线记录:
212+
- 书籍条目会检查总的话数和卷数,并更新收藏进度到最新;
213+
- 动画和三次元会标记所有正片章节为已完成,并同时更新收藏进度
214+
type: boolean
209215
rate:
210216
description: 评分,0 表示删除评分
211217
maximum: 10
@@ -378,6 +384,7 @@ components:
378384
$ref: '#/components/schemas/EpisodeType'
379385
required:
380386
- id
387+
- subjectID
381388
- sort
382389
- type
383390
- disc
@@ -386,7 +393,7 @@ components:
386393
- duration
387394
- airdate
388395
- comment
389-
- subjectID
396+
- desc
390397
title: Episode
391398
type: object
392399
EpisodeCollectionStatus:
@@ -619,6 +626,8 @@ components:
619626
type: integer
620627
members:
621628
type: integer
629+
membership:
630+
$ref: '#/components/schemas/GroupMember'
622631
name:
623632
type: string
624633
nsfw:
@@ -765,6 +774,8 @@ components:
765774
type: object
766775
Index:
767776
properties:
777+
award:
778+
type: integer
768779
collectedAt:
769780
type: integer
770781
collects:
@@ -784,27 +795,112 @@ components:
784795
total:
785796
type: integer
786797
type:
798+
$ref: '#/components/schemas/IndexType'
799+
uid:
787800
type: integer
788801
updatedAt:
789802
type: integer
803+
user:
804+
$ref: '#/components/schemas/SlimUser'
790805
required:
791806
- id
807+
- uid
792808
- type
793809
- title
794810
- desc
795811
- replies
796812
- total
797813
- collects
798814
- stats
815+
- award
799816
- createdAt
800817
- updatedAt
801818
title: Index
802819
type: object
820+
IndexRelated:
821+
properties:
822+
award:
823+
type: string
824+
cat:
825+
$ref: '#/components/schemas/IndexRelatedCategory'
826+
character:
827+
$ref: '#/components/schemas/SlimCharacter'
828+
comment:
829+
type: string
830+
createdAt:
831+
type: integer
832+
episode:
833+
$ref: '#/components/schemas/Episode'
834+
id:
835+
type: integer
836+
order:
837+
type: integer
838+
person:
839+
$ref: '#/components/schemas/SlimPerson'
840+
rid:
841+
type: integer
842+
sid:
843+
type: integer
844+
subject:
845+
$ref: '#/components/schemas/SlimSubject'
846+
type:
847+
type: integer
848+
required:
849+
- id
850+
- cat
851+
- rid
852+
- type
853+
- sid
854+
- order
855+
- comment
856+
- award
857+
- createdAt
858+
title: IndexRelated
859+
type: object
860+
IndexRelatedCategory:
861+
description: |-
862+
目录关联类型
863+
- 0 = 条目
864+
- 1 = 角色
865+
- 2 = 人物
866+
- 3 = 剧集
867+
enum:
868+
- 0
869+
- 1
870+
- 2
871+
- 3
872+
type: integer
873+
x-enum-varnames:
874+
- Subject
875+
- Character
876+
- Person
877+
- Episode
878+
x-ms-enum:
879+
modelAsString: false
880+
name: IndexRelatedCategory
803881
IndexStats:
804882
additionalProperties:
805883
type: integer
806884
title: IndexStats
807885
type: object
886+
IndexType:
887+
description: |-
888+
目录类型
889+
- 0 = 用户
890+
- 1 = 公共
891+
- 2 = TBA
892+
enum:
893+
- 0
894+
- 1
895+
- 2
896+
type: integer
897+
x-enum-varnames:
898+
- User
899+
- Public
900+
- Award
901+
x-ms-enum:
902+
modelAsString: false
903+
name: IndexType
808904
Infobox:
809905
items:
810906
properties:
@@ -1406,9 +1502,12 @@ components:
14061502
total:
14071503
type: integer
14081504
type:
1505+
$ref: '#/components/schemas/IndexType'
1506+
uid:
14091507
type: integer
14101508
required:
14111509
- id
1510+
- uid
14121511
- type
14131512
- title
14141513
- total
@@ -4823,6 +4922,102 @@ paths:
48234922
summary: 创建小组话题
48244923
tags:
48254924
- group
4925+
/p1/indexes/{indexID}:
4926+
get:
4927+
operationId: getIndex
4928+
parameters:
4929+
- in: path
4930+
name: indexID
4931+
required: true
4932+
schema:
4933+
type: integer
4934+
responses:
4935+
'200':
4936+
content:
4937+
application/json:
4938+
schema:
4939+
$ref: '#/components/schemas/Index'
4940+
description: Default Response
4941+
'500':
4942+
content:
4943+
application/json:
4944+
schema:
4945+
$ref: '#/components/schemas/ErrorResponse'
4946+
description: 意料之外的服务器错误
4947+
description: 意料之外的服务器错误
4948+
security:
4949+
- CookiesSession: []
4950+
HTTPBearer: []
4951+
summary: 获取目录详情
4952+
tags:
4953+
- index
4954+
/p1/indexes/{indexID}/related:
4955+
get:
4956+
operationId: getIndexRelated
4957+
parameters:
4958+
- in: query
4959+
name: cat
4960+
required: false
4961+
schema:
4962+
$ref: '#/components/schemas/IndexRelatedCategory'
4963+
- in: query
4964+
name: type
4965+
required: false
4966+
schema:
4967+
$ref: '#/components/schemas/SubjectType'
4968+
- description: max 100
4969+
in: query
4970+
name: limit
4971+
required: false
4972+
schema:
4973+
default: 20
4974+
maximum: 100
4975+
minimum: 1
4976+
type: integer
4977+
- description: min 0
4978+
in: query
4979+
name: offset
4980+
required: false
4981+
schema:
4982+
default: 0
4983+
minimum: 0
4984+
type: integer
4985+
- in: path
4986+
name: indexID
4987+
required: true
4988+
schema:
4989+
type: integer
4990+
responses:
4991+
'200':
4992+
content:
4993+
application/json:
4994+
schema:
4995+
properties:
4996+
data:
4997+
items:
4998+
$ref: '#/components/schemas/IndexRelated'
4999+
type: array
5000+
total:
5001+
description: limit+offset 为参数的请求表示总条数,page 为参数的请求表示总页数
5002+
type: integer
5003+
required:
5004+
- data
5005+
- total
5006+
type: object
5007+
description: Default Response
5008+
'500':
5009+
content:
5010+
application/json:
5011+
schema:
5012+
$ref: '#/components/schemas/ErrorResponse'
5013+
description: 意料之外的服务器错误
5014+
description: 意料之外的服务器错误
5015+
security:
5016+
- CookiesSession: []
5017+
HTTPBearer: []
5018+
summary: 获取目录的关联内容
5019+
tags:
5020+
- index
48265021
/p1/login:
48275022
post:
48285023
description: >-
@@ -8548,16 +8743,16 @@ paths:
85488743
schema:
85498744
$ref: '#/components/schemas/ErrorResponse'
85508745
description: default error response type
8551-
'401':
8746+
'403':
85528747
content:
85538748
application/json:
85548749
examples:
85558750
NOT_ALLOWED:
85568751
value:
85578752
code: NOT_ALLOWED
8558-
error: Unauthorized
8753+
error: Forbidden
85598754
message: you don't have permission to non sandbox subject
8560-
statusCode: 401
8755+
statusCode: 403
85618756
schema:
85628757
$ref: '#/components/schemas/ErrorResponse'
85638758
description: default error response type

0 commit comments

Comments
 (0)