Build process :
- Clone the repository
- Install VS and load PSMicroService.sln
- Download boost, jsoncpp, openssl using Nuget.
- Download cpprestsdk and build it statically with given solution
- Build PSMicroService.sln and generate PSMicroService.exe
- Run PSMicroService.exe to start listener : Server started at http://localhost:3999/restsdkserver/v1/
7.It provides follwing endpoints :
GET /test -- testing endoint to check connection
POST /register -- resgister users, returns JWT
I/P - hostname details {"hostname" : "temp_hostman"}
O/P - {"access_token": "eyJhbGciOiJIUzI1NiIsInR5cGUiOiJKV1QifQ==.eyJob3N0aWQiOiJ0ZW1wX2hvc3RtYW4ifQ==.TVnjoKm1rw5W2T9NyEu8uxkPNrtrulBbAE+WlCuQx7I=", "response": "Registered User", "status": 200}
POST /updateStatus -- send status to server.
Authorization Header : Bearer : Bearer{{JWT}}
I/P - 'status JSON' {"{"hostname":"temp_hostman","message":"data delivered","status" : 100}
GET /collectStatus -- retrives list of collected status.