[{"data":1,"prerenderedAt":118},["ShallowReactive",2],{"content:\u002Fposts\u002F2023\u002Frest-client-plugin-use":3,"surround:\u002Fposts\u002F2023\u002Frest-client-plugin-use":107},{"id":4,"title":5,"body":6,"canonical":84,"categories":85,"date":87,"description":88,"draft":89,"extension":90,"image":91,"meta":92,"navigation":93,"path":94,"permalink":84,"readingTime":95,"recommend":84,"references":84,"seo":100,"sitemap":101,"stem":102,"tags":103,"type":84,"updated":87,"__hash__":106},"content\u002Fposts\u002F2023\u002Frest-client-plugin-use.md","rest client插件使用",{"type":7,"value":8,"toc":79},"minimark",[9,15,20,36,39,68],[10,11],"link-card",{"description":12,"link":13,"title":14},"插件下载","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=humao.rest-client","rest client",[16,17,19],"h2",{"id":18},"创建-http-文件","创建 http 文件",[21,22,23],"blockquote",{},[24,25,26,27,31,32,35],"p",{},"使用 ",[28,29,30],"code",{"code":30},".http"," 结尾的文件可以被 ",[28,33,34],{"code":34},"rest-client"," 插件识别",[24,37,38],{},"注意：",[40,41,42,50,59],"ol",{},[43,44,45,46,49],"li",{},"以 ",[28,47,48],{"code":48},"###"," 分割接口",[43,51,52,55,56],{},[28,53,54],{"code":54},"@uri"," 可以定义请求前缀，且不能加 ",[28,57,58],{"code":58},"\"\"",[43,60,61,62],{},"示例里的接口服务器地址在国外，测试时可能会发生错误，发生错误时多试几次即可 ",[63,64,65],"a",{"href":65,"rel":66},"http:\u002F\u002Fjsonplaceholder.typicode.com\u002F",[67],"nofollow",[69,70,77],"pre",{"className":71,"code":73,"filename":74,"language":75,"meta":76},[72],"language-http","@uri=https:\u002F\u002Fjsonplaceholder.typicode.com\n\n###\nGET {{uri}}\u002Fposts\u002F1\n\n###\nGET {{uri}}\u002Fposts\n\n###\nPOST {{uri}}\u002Fposts\nContent-Type: application\u002Fjson;charset=UTF-8\n\n{\n  \"title\": \"foo\",\n  \"body\": \"bar\",\n  \"userId\": 1\n}\n\n###\nPUT {{uri}}\u002Fposts\u002F1\nContent-Type: application\u002Fjson;charset=UTF-8\n\n{\n  \"id\": 1,\n  \"title\": \"foo\",\n  \"body\": \"bar\",\n  \"userId\": 1\n}\n\n###\nPATCH {{uri}}\u002Fposts\u002F1\nContent-Type: application\u002Fjson;charset=UTF-8\n\n{\n  \"title\": \"foo\",\n}\n\n###\nDELETE {{uri}}\u002Fposts\u002F1\n\n### form表单传值\nPOST  {{uri}}\u002Ffile\nContent-Type: application\u002Fx-www-form-urlencoded\n\nfileName=helloHono&fileSize=1024\n","api.http","http","",[28,78,73],{"__ignoreMap":76},{"title":76,"searchDepth":80,"depth":80,"links":81},4,[82],{"id":18,"depth":83,"text":19},2,null,[86],"代码","2023-01-03 20:13:52","rest client 是 vscode 中类似 Postman 的 api 接口请求利器。",false,"md","https:\u002F\u002Fbitmc.uno\u002Fpicgo\u002F67a223f36ca29-78.webp",{},true,"\u002Fposts\u002F2023\u002Frest-client-plugin-use",{"text":96,"minutes":97,"time":98,"words":99},"1 min read",0.655,39300,131,{"title":5,"description":88},{"loc":94},"posts\u002F2023\u002Frest-client-plugin-use",[104,105],"vscode","插件","jdayDFV4Sfev5ckXRnhJBfrrY1G3cMolkcSg-zgf-oo",[108,113],{"title":109,"path":110,"stem":111,"date":112,"type":84,"children":-1},"prisma 快速上手","\u002Fposts\u002F2023\u002Fprisma-setup","posts\u002F2023\u002Fprisma-setup","2023-01-02 23:08:07",{"title":114,"path":115,"stem":116,"date":117,"type":84,"children":-1},"Vue项目权限控制","\u002Fposts\u002F2023\u002Fvue-project-permission-control","posts\u002F2023\u002Fvue-project-permission-control","2023-01-03 22:25:15",1789642595433]