Table of contents
HttpRepl
Setup
::install
dotnet tool install -g Microsoft.dotnet-httprepl;
::set path to tools
export PATH="$PATH:/Users/bp/.dotnet/tools";
::test web api
httprepl http://localhost:5001
Run
dotnet run --urls=https://localhost:5101
HttpRepl
dotnet tool install -g Microsoft.dotnet-httprepl;
Set text editor for POST
pref set editor.command.default "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"
set default args
pref set editor.command.default.arguments "--disable-extensions --new-window"
list and select controllers
ls
cd [controller]
POST
post -h Content-Type=application/json
GET
get Order
return
[
{
"date": "2024-05-14",
"summary": "order3"
},
{
"date": "2024-05-15",
"summary": "order5"
},
{
"date": "2024-05-16",
"summary": "order4"
},
{
"date": "2024-05-17",
"summary": "order4"
},
{
"date": "2024-05-18",
"summary": "order5"
}
]