Skip to content

Commit

Permalink
chore: regenerate mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
tosaken1116 committed Apr 13, 2024
1 parent 4f68527 commit b26aab4
Show file tree
Hide file tree
Showing 7 changed files with 3,400 additions and 860 deletions.
2 changes: 1 addition & 1 deletion msw/handlers/AssetsService/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { http, HttpResponse } from 'msw'
const ApiV1AssetsPostHandler = http.post('/api/v1/assets',() => {
return HttpResponse.json({
id:'081b6849-880d-4d41-a616-703771ba0153',
id:'fc4754ba-7998-440c-bf25-cf9edac81cb8',
})
})
const ApiV1AssetsIdDeleteHandler = http.delete('/api/v1/assets/{id}',() => {
Expand Down
18 changes: 9 additions & 9 deletions msw/handlers/AuthService/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const ApiV1AuthDiscordCallbackGetHandler = http.get('/api/v1/auth/discord/callba
const ApiV1AuthTokenPostHandler = http.post('/api/v1/auth/token',() => {
return HttpResponse.json({
expired_at:'',
refresh_token:'~kisrg}{a|gfh',
access_token:'~kisrg}{a|gfh',
refresh_token:'mzxm}e~}}ua',
access_token:'mzxm}e~}}ua',
})
})
const ApiV1AuthDiscordGetHandler = http.get('/api/v1/auth/discord',() => {
Expand All @@ -21,13 +21,13 @@ const ApiV1AuthDiscordGetHandler = http.get('/api/v1/auth/discord',() => {
})
const ApiV1AuthSignUpPostHandler = http.post('/api/v1/auth/sign_up',() => {
return HttpResponse.json({
id:'74517e6a-4ee0-43aa-b82c-f6e8ccf73c1b',
name:'Mr. Augustus Kihn V',
display_name:'Mr. Augustus Kihn V',
avatar_url:'http://www.fyu.net/oam-h',
profile:'id sed adipisci accusamus et ut illo impedit eaque doloremque a deleniti illum officiis commodi ipsum magnam dolor possimus voluptas perferendis ab voluptas dolorem aut ut magni repellat magni est accusantium quia dignissimos sit ea mollitia inventore vitae velit et.',
twitter_id:'10798924-01ba-4baf-b217-ae4bf047a1a9',
github_id:'384a44a4-3955-4fa1-aedd-15be60032519',
id:'f5221cab-c35c-4fa0-9b7b-9e4bd1f0d4b8',
name:'Xander Hessel Jr.',
display_name:'Xander Hessel Jr.',
avatar_url:'https://placehold.jp/150x150.png',
profile:'odio atque quaerat aut fugit odit suscipit et sint nulla optio ab dolores saepe rem aliquid aut id veniam ut temporibus corporis vero sint ea in quidem harum qui excepturi quae aut itaque animi aliquam amet explicabo voluptate deleniti sapiente.',
twitter_id:'47e7f71c-3f1b-4306-93c3-c7d4265e1d42',
github_id:'01d65eb7-3089-40a2-8951-832bbc49bbf8',
created_at:'2021-09-01T00:00:00Z',
updated_at:'2021-09-01T00:00:00Z',
})
Expand Down
41 changes: 23 additions & 18 deletions msw/handlers/TagsService/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,47 @@ const ApiV1TagsGetHandler = http.get('/api/v1/tags',() => {
return HttpResponse.json({
tags:[
{
id:'c143d2a2-1522-4936-b511-c84f892d6222',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'aae272e1-737a-467e-8eb0-981d21fedbeb',
name:'Xander Hessel Jr.',
color:'#343B04',
},
{
id:'8eb89ccc-db27-47d3-b4a6-dafaec94b96d',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'a689468e-c291-4e2c-935c-6ce43b14fa32',
name:'Xander Hessel Jr.',
color:'#343B04',
},
{
id:'70cc0f48-fda7-49b2-889d-599cb8f1c4ed',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'9fcca1f4-f37a-493a-94d2-1ab81a0ba3ab',
name:'Xander Hessel Jr.',
color:'#343B04',
},
{
id:'b7aeaeba-42ac-4647-a8ea-23b9b4ac4ce7',
name:'Xander Hessel Jr.',
color:'#343B04',
},
],
})
})
const ApiV1TagsPostHandler = http.post('/api/v1/tags',() => {
return HttpResponse.json({
id:'f30b55d9-7bcd-494a-baf6-79aa40207924',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'15dcf5ee-480d-4973-bca9-bbf6797ca51c',
name:'Xander Hessel Jr.',
color:'#343B04',
})
})
const ApiV1TagsTagIdGetHandler = http.get('/api/v1/tags/{tag_id}',() => {
return HttpResponse.json({
id:'0063b8fa-d798-47c2-931e-aebcf455009b',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'14006ffc-4e04-4519-a0fa-d1ed546f9b4e',
name:'Xander Hessel Jr.',
color:'#343B04',
})
})
const ApiV1TagsTagIdPutHandler = http.put('/api/v1/tags/{tag_id}',() => {
return HttpResponse.json({
id:'4d700716-f3ae-44f5-a326-52b1d85fb5d5',
name:'Mr. Augustus Kihn V',
color:'#AD0A61',
id:'267706cd-b5f1-45e4-a050-18e4a125cd93',
name:'Xander Hessel Jr.',
color:'#343B04',
})
})
const ApiV1TagsTagIdDeleteHandler = http.delete('/api/v1/tags/{tag_id}',() => {
Expand Down
Loading

0 comments on commit b26aab4

Please sign in to comment.