Showing
1 changed file
with
39 additions
and
0 deletions
... | @@ -251,6 +251,45 @@ createServer({ | ... | @@ -251,6 +251,45 @@ createServer({ |
251 | }, | 251 | }, |
252 | }; | 252 | }; |
253 | }); | 253 | }); |
254 | + | ||
255 | + this.post("/users/renew", (schema, request) => { | ||
256 | + return { | ||
257 | + status: 200, | ||
258 | + data: { | ||
259 | + access_token: | ||
260 | + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", | ||
261 | + refresh_token: | ||
262 | + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", | ||
263 | + expiration: "2020-05-14T07:23:24Z", | ||
264 | + }, | ||
265 | + }; | ||
266 | + }); | ||
267 | + | ||
268 | + this.post("/users/signup", (schema, request) => { | ||
269 | + return { | ||
270 | + status: 200, | ||
271 | + message: "completed", | ||
272 | + data: { | ||
273 | + user_id: "test", | ||
274 | + name: "test", | ||
275 | + total_size: 1099511627776, | ||
276 | + current_size: 0, | ||
277 | + }, | ||
278 | + }; | ||
279 | + }); | ||
280 | + | ||
281 | + this.post("/users/:user_id", (schema, request) => { | ||
282 | + return { | ||
283 | + status: 200, | ||
284 | + data: { | ||
285 | + id: "123", | ||
286 | + user_id: "test", | ||
287 | + name: "test", | ||
288 | + total_size: 1099511627776, | ||
289 | + current_size: 0, | ||
290 | + }, | ||
291 | + }; | ||
292 | + }); | ||
254 | }, | 293 | }, |
255 | 294 | ||
256 | seeds(server) { | 295 | seeds(server) { | ... | ... |
-
Please register or login to post a comment