Building RESTful Interfaces in C++ With nlohmann and cpp-httplib - Kevin Carpenter - C++ on Sea 2023
Ғылым және технология
cpponsea.uk/
---
Building RESTful Interfaces in C++ With nlohmann and cpp-httplib - Kevin Carpenter - C++ on Sea 2023
I have been building restful interfaces in C++ using nlohmann::json and cpp-httplib for the past three years. Learn the basics of these two libraries with the pros and cons we have found from implementing our platform with them. Get the basics of how Restful APIs like Stripe are created. Understand how using and converting to strong types and using proper design patterns will make your life easier in the future. Further, share in the experience gained from implementing them in credit card transaction systems with Mastercard/Visa. See how you can use JSON and/or HTTP to interface with almost anything.
---
Slides: github.com/philsquared/cppons...
Sponsored by think-cell: www.think-cell.com/en/
---
Kevin Carpenter
I have in technology for over 30 years, 17 of those developing applications for in C++. The last fourteen years have been working in finance. First on the modeling and simulation side and now more recently in the transaction processing. Taking over a legacy application has been an adventure in not only managing the code but finding ways to bring it into the current century while still maintaining business ROI for all the changes that are made.
---
C++ on Sea is an annual C++ and coding conference, in Folkestone, in the UK.
- Annual C++ on Sea, C++ conference: cpponsea.uk/
- 2023 Program: cpponsea.uk/2023/schedule/
- Twitter: / cpponsea
---
KZread Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk
#cpp #cpponsea #cppprogramming
Пікірлер: 8
👍 nice
This is good stuff. Thank you.
Anyone know this guy on LinkedIn? Thanks!
13:53, but why not use binary protocols like protobuf, if we are talking about the footprint of a message?
@cppevents
2 ай бұрын
It would make the message smaller. However the difficulty here is credit card terminals. The come from multiple vendors, the harder problem would be getting every client updated. That plus the reasonable readability of json makes for easier support/troubleshooting in some situations.
Можешь оставить ссылку на код // Can you give github repository
Why C++ doesn't have built-in support of JSON in 2024?
@cppevents
27 күн бұрын
Why build it in when you have many great libraries to choose from? If it’s built in then you’re locked in. Want ease use this library, want speed use RapidJSON or others. Either way what would be the benefit of it being native to the standard or even the stl?