{"id":10048,"date":"2024-01-22T03:19:40","date_gmt":"2024-01-21T19:19:40","guid":{"rendered":"https:\/\/bohu.net\/blog\/?p=10048"},"modified":"2024-01-22T03:19:40","modified_gmt":"2024-01-21T19:19:40","slug":"%e4%bd%bf%e7%94%a8-httprepl-%e6%b5%8f%e8%a7%88%e3%80%81%e6%b5%8b%e8%af%95-web-api","status":"publish","type":"post","link":"https:\/\/www.bohu.net\/blog\/10048\/","title":{"rendered":"\u4f7f\u7528 HttpRepl \u6d4f\u89c8\u3001\u6d4b\u8bd5 Web API"},"content":{"rendered":"\n<p>The HTTP Read-Eval-Print Loop (REPL)\u00a0<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e00\u79cd\u8f7b\u91cf\u7ea7\u8de8\u5e73\u53f0\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5728\u6240\u6709\u652f\u6301\u7684 .NET Core \u7684\u4f4d\u7f6e\u90fd\u53ef\u5f97\u5230\u652f\u6301\u3002<\/li>\n\n\n\n<li>\u7528\u4e8e\u53d1\u51fa HTTP \u8bf7\u6c42\u4ee5\u6d4b\u8bd5 ASP.NET Core Web API\uff08\u548c\u975e ASP.NET Core web API\uff09\u5e76\u67e5\u770b\u5176\u7ed3\u679c\u3002<\/li>\n\n\n\n<li>\u53ef\u4ee5\u5728\u4efb\u4f55\u73af\u5883\u4e0b\u6d4b\u8bd5\u6258\u7ba1\u7684 web API\uff0c\u5305\u62ec localhost \u548c Azure \u5e94\u7528\u670d\u52a1\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5b89\u88c5\uff1a<code>dotnet tool install -g Microsoft.dotnet-httprepl<\/code><\/p>\n\n\n\n<p>(\u89c6\u9891)<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-blue-color\"><strong>\u4f7f\u7528 HttpRepl \u6d4f\u89c8 Web API: <\/strong><\/mark><\/em><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/zh-cn\/shows\/beginners-series-to-web-apis\/exploring-web-apis-with-the-httprepl-16-of-18--beginners-series-to-web-apis\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/learn.microsoft.com\/zh-cn\/shows\/beginners-series-to-web-apis\/exploring-web-apis-with-the-httprepl-16-of-18&#8211;beginners-series-to-web-apis<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-blue-color\"><em>\u4f7f\u7528 HttpRepl \u6d4b\u8bd5 Web API<\/em><\/mark><\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/zh-cn\/aspnet\/core\/web-api\/http-repl\/?view=aspnetcore-8.0&amp;tabs=windows\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/learn.microsoft.com\/zh-cn\/aspnet\/core\/web-api\/http-repl\/?view=aspnetcore-8.0&amp;tabs=windows<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>HttpRepl\uff1a\u7528\u4e8e\u4e0e RESTful HTTP \u670d\u52a1\u4ea4\u4e92\u7684\u547d\u4ee4\u884c\u5de5\u5177<\/p>\n\n\n\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/httprepl-a-command-line-tool-for-interacting-with-restful-http-services\/#configure-visual-studio-for-windows-to-launch-httprepl-on-f5\">https:\/\/devblogs.microsoft.com\/dotnet\/httprepl-a-command-line-tool-for-interacting-with-restful-http-services\/#configure-visual-studio-for-windows-to-launch-httprepl-on-f5<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/dotnet\/HttpRepl\">HttpRepl GitHub \u5b58\u50a8\u5e93<\/a> \uff1a<a href=\"https:\/\/github.com\/dotnet\/HttpRepl\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/dotnet\/HttpRepl<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/httprepl-a-command-line-tool-for-interacting-with-restful-http-services\/#configure-visual-studio-for-windows-to-launch-httprepl-on-f5\" target=\"_blank\" rel=\"noreferrer noopener\">\u914d\u7f6e Visual Studio \u4ee5\u542f\u52a8 HttpRepl<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/httprepl-a-command-line-tool-for-interacting-with-restful-http-services\/#configure-visual-studio-code-to-launch-httprepl-on-debug\" target=\"_blank\" rel=\"noreferrer noopener\">\u914d\u7f6e Visual Studio Code \u4ee5\u542f\u52a8 HttpRepl<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/devblogs.microsoft.com\/aspnet\/httprepl-a-command-line-tool-for-interacting-with-restful-http-services\/#configure-visual-studio-for-mac-to-launch-httprepl-as-a-custom-tool\" target=\"_blank\" rel=\"noreferrer noopener\">\u914d\u7f6e Visual Studio for Mac \u4ee5\u542f\u52a8 HttpRepl<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The HTTP Read-Eval-Print Loop (REPL)\u00a0 \u5b89\u88c5\uff1adotnet tool in &hellip; <a href=\"https:\/\/www.bohu.net\/blog\/10048\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u4f7f\u7528 HttpRepl \u6d4f\u89c8\u3001\u6d4b\u8bd5 Web API\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4,6,10,12,26,29],"tags":[650,762,402,764,763],"class_list":["post-10048","post","type-post","status-publish","format-standard","hentry","category-net","category-c-net","category-linux","category-vps","category-windows","category-26","category-29","tag-dotnet","tag-httprepl","tag-visual-studio","tag-visual-studio-code","tag-web-api"],"_links":{"self":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/10048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/comments?post=10048"}],"version-history":[{"count":1,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/10048\/revisions"}],"predecessor-version":[{"id":10049,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/10048\/revisions\/10049"}],"wp:attachment":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/media?parent=10048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/categories?post=10048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/tags?post=10048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}