Skip to content

[REQ] Implement generator for cpp-httplib client/server #21466

Open
@vasireddyrajesh

Description

@vasireddyrajesh

Describe the solution you'd like

I would like to have a new generator in OpenAPI Generator that produces C++ client/server code using the cpp-httplib library. This generator should create code that leverages httplib for HTTP client and server functionality, making it easier to integrate OpenAPI-defined APIs with modern, lightweight C++ projects.
Also I would like to use nlohmann json for serialize and deserialize the models generated instead of boot property tree.

Describe alternatives you've considered

Using the existing C++ generators (such as C++ REST SDK or Pistache), but they do not support httplib and may have heavier dependencies or different design philosophies.
Manually writing the integration code for httplib based on the OpenAPI spec, which is time-consuming and error-prone.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions