-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.http
More file actions
227 lines (185 loc) · 3.94 KB
/
content.http
File metadata and controls
227 lines (185 loc) · 3.94 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# 内容 API 测试脚本
@baseUrl = https://physics-api-cn.turtlesim.com
@token = your_api_token_here
### 获取服务信息
GET {{baseUrl}}/Contents/
### 提交实验
POST {{baseUrl}}/Contents/SubmitExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"Summary": {
"Title": "测试实验",
"Description": "这是一个测试实验",
"Category": "Experiment",
"Tags": ["测试"]
},
"Experiment": {
"Components": 5
}
}
### 确认实验图像
POST {{baseUrl}}/Contents/ConfirmExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment",
"Image": 1,
"Extension": "jpg"
}
### 移除实验
POST {{baseUrl}}/Contents/RemoveExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment"
}
### 恢复实验
POST {{baseUrl}}/Contents/RestoreExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment"
}
### 精选实验
POST {{baseUrl}}/Contents/SelectExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment"
}
### 添加标签
POST {{baseUrl}}/Contents/AcknowledgeExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment",
"Tag": "精选"
}
### 移动类别
POST {{baseUrl}}/Contents/MoveCategory
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment",
"Target": "Model"
}
### 获取库
POST {{baseUrl}}/Contents/GetLibrary
Content-Type: application/json
x-API-Token: {{token}}
{
"Identifier": "Homepage",
"Language": "Chinese"
}
### 查询实验
POST {{baseUrl}}/Contents/QueryExperiments
Content-Type: application/json
x-API-Token: {{token}}
{
"Query": {
"Category": "Experiment",
"Skip": 0,
"Take": 20,
"Sort": "Popularity"
}
}
### 获取摘要
POST {{baseUrl}}/Contents/GetSummary
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123",
"Category": "Experiment"
}
### 获取衍生内容
POST {{baseUrl}}/Contents/GetDerivatives
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123",
"Category": "Experiment",
"WithSummary": true,
"Language": "Chinese"
}
### 获取支持者
POST {{baseUrl}}/Contents/GetSupporters
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123",
"Category": "Experiment",
"Skip": 0,
"Take": 10
}
### 获取用户资料
POST {{baseUrl}}/Contents/GetProfile
Content-Type: application/json
x-API-Token: {{token}}
{
"ID": "user_123"
}
### 访问实验
POST {{baseUrl}}/Contents/VisitExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"SummaryID": "summary_123",
"Category": "Experiment"
}
### 获取实验数据
POST {{baseUrl}}/Contents/GetExperiment
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123"
}
### 获取工作区数据
POST {{baseUrl}}/Contents/GetWorkspace
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123"
}
### 星标内容
POST {{baseUrl}}/Contents/StarContent
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123",
"Category": "Experiment",
"Status": true,
"Type": "Star"
}
### 邀请协作者
POST {{baseUrl}}/Contents/InviteCoauthor
Content-Type: application/json
x-API-Token: {{token}}
{
"Category": "Experiment",
"SummaryID": "summary_123",
"TargetID": "user_456"
}
### 移除协作者
POST {{baseUrl}}/Contents/RemoveCoauthor
Content-Type: application/json
x-API-Token: {{token}}
{
"Category": "Experiment",
"SummaryID": "summary_123",
"TargetID": "user_456"
}
### 检查内容是否已星标(已废弃)
POST {{baseUrl}}/Contents/IsStarred
Content-Type: application/json
x-API-Token: {{token}}
{
"ContentID": "content_123",
"Category": "Experiment"
}