- edit appsettings.json and appsettings.Development.json
- edit json config
"AWS": {
"Key": "[AWS KEY]",
"Secret": "[AWS SECRET]",
"Region": "[AWS REGION]",
"urlSocketAPI": "https://[SOCKET API GATEWAY ID].execute-api.[AWS REGION].amazonaws.com/[SOCKET API GATEWAY STAGE]/@connections/",
"urlAPIGw": "https://[SOCKET API GATEWAY ID].execute-api.[AWS REGION].amazonaws.com/dev/hello?name=iFew",
"Service": "execute-api"
}
GET http://localhost:5001/api/basic
POST http://localhost:5001/api/socket
Json Body
{
"connection_id": "XSPlWeCLSQ0AbFw=",
"message": "ทดสอบ"
}