@@ -206,6 +206,12 @@ components:
206
206
private :
207
207
description : 仅自己可见
208
208
type : boolean
209
+ progress :
210
+ description : |-
211
+ 是否自动完成条目进度,仅在 `type` 为 `看过` 时有效,并且不会产生对应的时间线记录:
212
+ - 书籍条目会检查总的话数和卷数,并更新收藏进度到最新;
213
+ - 动画和三次元会标记所有正片章节为已完成,并同时更新收藏进度
214
+ type : boolean
209
215
rate :
210
216
description : 评分,0 表示删除评分
211
217
maximum : 10
@@ -378,6 +384,7 @@ components:
378
384
$ref : ' #/components/schemas/EpisodeType'
379
385
required :
380
386
- id
387
+ - subjectID
381
388
- sort
382
389
- type
383
390
- disc
@@ -386,7 +393,7 @@ components:
386
393
- duration
387
394
- airdate
388
395
- comment
389
- - subjectID
396
+ - desc
390
397
title : Episode
391
398
type : object
392
399
EpisodeCollectionStatus :
@@ -619,6 +626,8 @@ components:
619
626
type : integer
620
627
members :
621
628
type : integer
629
+ membership :
630
+ $ref : ' #/components/schemas/GroupMember'
622
631
name :
623
632
type : string
624
633
nsfw :
@@ -765,6 +774,8 @@ components:
765
774
type : object
766
775
Index :
767
776
properties :
777
+ award :
778
+ type : integer
768
779
collectedAt :
769
780
type : integer
770
781
collects :
@@ -784,27 +795,112 @@ components:
784
795
total :
785
796
type : integer
786
797
type :
798
+ $ref : ' #/components/schemas/IndexType'
799
+ uid :
787
800
type : integer
788
801
updatedAt :
789
802
type : integer
803
+ user :
804
+ $ref : ' #/components/schemas/SlimUser'
790
805
required :
791
806
- id
807
+ - uid
792
808
- type
793
809
- title
794
810
- desc
795
811
- replies
796
812
- total
797
813
- collects
798
814
- stats
815
+ - award
799
816
- createdAt
800
817
- updatedAt
801
818
title : Index
802
819
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
803
881
IndexStats :
804
882
additionalProperties :
805
883
type : integer
806
884
title : IndexStats
807
885
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
808
904
Infobox :
809
905
items :
810
906
properties :
@@ -1406,9 +1502,12 @@ components:
1406
1502
total :
1407
1503
type : integer
1408
1504
type :
1505
+ $ref : ' #/components/schemas/IndexType'
1506
+ uid :
1409
1507
type : integer
1410
1508
required :
1411
1509
- id
1510
+ - uid
1412
1511
- type
1413
1512
- title
1414
1513
- total
@@ -4823,6 +4922,102 @@ paths:
4823
4922
summary : 创建小组话题
4824
4923
tags :
4825
4924
- 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
4826
5021
/p1/login :
4827
5022
post :
4828
5023
description : >-
@@ -8548,16 +8743,16 @@ paths:
8548
8743
schema :
8549
8744
$ref : ' #/components/schemas/ErrorResponse'
8550
8745
description : default error response type
8551
- ' 401 ' :
8746
+ ' 403 ' :
8552
8747
content :
8553
8748
application/json :
8554
8749
examples :
8555
8750
NOT_ALLOWED :
8556
8751
value :
8557
8752
code : NOT_ALLOWED
8558
- error : Unauthorized
8753
+ error : Forbidden
8559
8754
message : you don't have permission to non sandbox subject
8560
- statusCode : 401
8755
+ statusCode : 403
8561
8756
schema :
8562
8757
$ref : ' #/components/schemas/ErrorResponse'
8563
8758
description : default error response type
0 commit comments