Cpp restbed server improvements (#13030)

* Keep old implementation of cpp-restbed generator as cpp-restbed-server-deprecated

* Refactor operation path processing

* Restructure samples directory to better allow writing tests

* Improve templates for cpp-restbed-server

Improve templates

* Add integration tests

* Improvement in templates for cpp-restbed-server

* Fix tests

* Improve cpp-restbed generator

* Improve cpp-restbed-server

* Add more tests

* Add suppoert for arrays of enums in query params

* Generate CMakeLists.txt

* Small improvements and example in Readme

* Add integration tests to maven project

* Update doc
This commit is contained in:
Lukas Woodtli
2022-08-27 12:10:28 +02:00
committed by GitHub
parent 40044a3007
commit d2e60f59b3
303 changed files with 27001 additions and 564 deletions

View File

@@ -0,0 +1,25 @@
include(FetchContent)
## Restbed
FetchContent_Declare(
restbed
GIT_REPOSITORY https://github.com/Corvusoft/restbed
GIT_TAG 4.7
)
set(BUILD_TESTS OFF CACHE BOOL "Disable internal restbed tests")
set(BUILD_SSL OFF CACHE BOOL "Disable SSL")
FetchContent_MakeAvailable(restbed)
FetchContent_GetProperties(restbed)
if(NOT restbed_POPULATED)
FetchContent_Populate(restbed)
add_subdirectory(${restbed_SOURCE_DIR} ${restbed_BINARY_DIR})
endif()
## Boost
find_package(Boost 1.7.0 COMPONENTS system unit_test_framework REQUIRED)