Adding a REST API with Pistache
Channel: Utah Cpp Programmers
Date: 2022-07-21

Many times you need to integrate your C++ infrastructure with services written in other languages on other machines from other teams. In the past, this might have been accomplished with custom RPC (remote procedure call) networking services that exposed resource data in your application to authorized clients.

HTTP REST (representational state transfer) APIs have become a common architectural pattern for exposing resource data across the network. With SSL/TLS (secure socket layer/transport layer security) connections and the HTTPS protocol, the client/server exchange can be secured. Authentication can be implemented with a session mechanism or the built-in authentication mechanisms in HTTP itself.

This month, Richard Thomson will give us an introduction to pistache, a high-performance REST toolkit written in C++. After an overview of the library, we'll look at what it takes to implement an HTTP server that responds to resource requests.

Pistache: https://github.com/pistacheio/pistache
Meetup: https://www.meetup.com/utah-cpp-programmers/
Future topics: https://utahcpp.wordpress.com/future-meeting-topics/
Past topics: https://utahcpp.wordpress.com/past-meeting-topics/