Based on the example https://carlos.mendible.com/2017/09/01/toggle-raspberry-pi-gpio-pins-with-asp-net-core-20/
dotnet publish src -c Release -r linux-arm
scp -r src/bin/Release/netcoreapp2.0/linux-arm/publish [email protected]:projects/rpi.gpio
scp -r src/bin/Release/netcoreapp2.0/linux-arm/publish/rpi.gpio* [email protected]:projects/rpi.gpio/publish scp -r src/bin/Release/netcoreapp2.0/linux-arm/publish/wwwroot/* [email protected]:projects/rpi.gpio/publish/wwwroot
sudo -i cd /home/pi/projects/rpi.gpio/publish/ chmod +x rpi.gpio export ASPNETCORE_URLS="http://*:5000" ./rpi.gpio
curl http://192.168.0.32:5000/api/status
curl http://192.168.0.32:5000/api/gpio
curl -X PUT -H "Content-Type: application/json" -d 'false' http://192.168.0.32:5000/api/motor
curl -X PUT -H "Content-Type: application/json" -d 'true' http://192.168.0.32:5000/api/motor/0
curl -X PUT -H "Content-Type: application/json" -d 'false' http://192.168.0.32:5000/api/motor/1
curl -X PUT -H "Content-Type: application/json" -d 'true' http://192.168.0.32:5000/api/motor/2
curl -X PUT -H "Content-Type: application/json" -d 'false' http://192.168.0.32:5000/api/motor/2