Rest API Router Controller Services

Use Case

Integrates Boost Beast REST API HTTP Session with Router -> Controller -> Service. HTTP Session Class uses Router class to perform GET Operation to GET data from the MongoDB Server

Dataflow Diagram

Session 1

Topics

  • Gentle introduction to the REST API Server
  • Demo CRUD operations using ThunderClient in VSCode
  • Router/Controller/Service classes and how they integrate into the existing code base
  • HTTP Session uses background thread to process the request
  • GET Operation

Video explanation of the code

C++ MongodDB Client

Source Code

Session 2

Topics

  • Rest of the CRUD operations (Create, Update, Delete)
  • Bearer token usage in the HTTP headers
  • In-depth discussion of the Router/MongoDB Controller and MongoDB Service

Video explanation of the code

C++-Boost-Beast-Websocket-Server

Source Code

comments powered by Disqus