-
Notifications
You must be signed in to change notification settings - Fork 24
/
api.http
94 lines (75 loc) · 2.5 KB
/
api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
### List the first page of resources
GET https://garden.breadio.wiki/api/resources
Content-Type: application/json
### List the first page of resources with its full magnet url with tracker
GET https://garden.breadio.wiki/api/resources?tracker=true
Content-Type: application/json
### Get the resource detail
GET https://garden.breadio.wiki/api/resource/dmhy/674983_LoliHouse_Oshi_no_Ko_-_15_WebRip_1080p_HEVC-10bit_AAC.html
Content-Type: application/json
### Get the resource detail by id
GET https://garden.breadio.wiki/api/resource/dmhy/674983
Content-Type: application/json
### List the second page of resources
GET https://garden.breadio.wiki/api/resources?page=2
Content-Type: application/json
### List resources from the 21st to 40th
GET https://garden.breadio.wiki/api/resources?page=2&pageSize=20
Content-Type: application/json
### List resources with more filter
GET https://garden.breadio.wiki/api/resources?type=動畫&fansubId=803&publisherId=727168&after=2023-04-16T13:00:00.000Z&before=1681653600000
Content-Type: application/json
### List resources from specific fansubs
GET https://garden.breadio.wiki/api/resources?fansubId=[833,619]&fansubName="爱恋字幕社"
Content-Type: application/json
### Search resources
GET https://garden.breadio.wiki/api/resources
Content-Type: application/json
{
"include": ["機動戰士鋼彈 水星的魔女"]
}
### Only search 動畫
GET https://garden.breadio.wiki/api/resources?type=動畫
Content-Type: application/json
{
"include": ["间谍过家家"]
}
### Search resources with exclude
GET https://garden.breadio.wiki/api/resources
Content-Type: application/json
{
"include": ["复仇者"],
"exclude": ["东京复仇者"]
}
### Search resources with complicated search
### Resource must has type "動畫"
### Resource title must contains one of ("机动战士高达" or "水星的魔女") and all the keywords ("第二季" and "ANi")
GET https://garden.breadio.wiki/api/resources?type=動畫
Cache-Control: no-store
Content-Type: application/json
{
"include": [
"机动战士高达",
"水星的魔女",
],
"keywords": [
"第二季",
"ANi"
]
}
### Search resources with full text index
GET https://garden.breadio.wiki/api/resources?type=動畫
Cache-Control: no-cache
Content-Type: application/json
{
"search": [
"我推的孩子",
"简体"
]
}
### List all the users
GET https://garden.breadio.wiki/api/users
Content-Type: application/json
### List all the teams
GET https://garden.breadio.wiki/api/teams
Content-Type: application/json