Adding a REST API with Pistache

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • 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: github.com/pis...
    Meetup: www.meetup.com...
    Future topics: utahcpp.wordpr...
    Past topics: utahcpp.wordpr...

ความคิดเห็น • 3

  • @UtahCppProgrammers
    @UtahCppProgrammers  2 ปีที่แล้ว

    Source code: github.com/LegalizeAdulthood/comicsdb-pistache

  • @JeroenDeMaeijer
    @JeroenDeMaeijer ปีที่แล้ว +4

    Nice introduction! Note: A successful POST (create) should be responded with http code 201 (created) instead of 200 (OK).