Coder Social home page Coder Social logo

c-restsdk_microservice's Introduction

c-restsdk_MicroService

Build process :

  1. Clone the repository
  2. Install VS and load PSMicroService.sln
  3. Download boost, jsoncpp, openssl using Nuget.
  4. Download cpprestsdk and build it statically with given solution
  5. Build PSMicroService.sln and generate PSMicroService.exe
  6. 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.

c-restsdk_microservice's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.