Is there any open source library available that implements RESTful Client(library for interpreting HTTP requests as REST service calls) in C++ ?
My requirement is to connect to Amazon Web Services and get the list of EC2 instances(and their details) available for given user account in C++.
I know Amazon provides API's for this in Java, C#. But I want in C++. If Amazon provides in C++ too, that would be fine, Please guide me.
Your help is much appreciated.
Regards
Bharatha Selvan.
A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.
Applications call C API functions defined in C language header files, and a dynamic link library (DLL). Each function call returns an integer result code, defined in the ctgstdat. h header file. A function that completes normally returns the code CTG_STAT_OK .
A RESTful web service request contains: An Endpoint URL. An application implementing a RESTful API will define one or more URL endpoints with a domain, port, path, and/or query string — for example, https://mydomain/user/123?format=json .
The C++ REST SDK is designed and written from the ground up using modern C++. Features include: Support for accessing REST-based services from native code on Windows Vista, Windows 7, Windows 8, Windows Store apps, and Linux by providing asynchronous bindings to HTTP, JSON, XML, URIs, and so on.
You need to parse XML. I suggest you try Qt C++ Toolkit it will give you a QHttp instance to make HTTP calls and QtXml module to parse the xml. This way you can create a C++ Rest Client.
You should try the ffead-cpp web framework. It has a host of other features like Dependency Injection, Serialization, Limited Reflection, JSON etc to name a few. Do check it out...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With