김재형

Implement dummy user api

......@@ -251,6 +251,45 @@ createServer({
},
};
});
this.post("/users/renew", (schema, request) => {
return {
status: 200,
data: {
access_token:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
refresh_token:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
expiration: "2020-05-14T07:23:24Z",
},
};
});
this.post("/users/signup", (schema, request) => {
return {
status: 200,
message: "completed",
data: {
user_id: "test",
name: "test",
total_size: 1099511627776,
current_size: 0,
},
};
});
this.post("/users/:user_id", (schema, request) => {
return {
status: 200,
data: {
id: "123",
user_id: "test",
name: "test",
total_size: 1099511627776,
current_size: 0,
},
};
});
},
seeds(server) {
......