Develop

Merge request reports

Loading
+25
Changes for EtsiServerGen/.openapi-generator-ignore: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

CMakeLists.txt
+38
Changes for EtsiServerGen/CMakeLists.txt: 38 added lines, 0 removed lines.
Original line number Diff line number Diff line
cmake_minimum_required (VERSION 3.2)

project(PistacheGen)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pg -g3" )

include(ExternalProject)

set(EXTERNAL_INSTALL_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/external)

find_package(PkgConfig)
pkg_check_modules(PISTACHE REQUIRED libpistache)

include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)

include_directories(model)
include_directories(api)
include_directories(impl)

file(GLOB SRCS
    ${CMAKE_CURRENT_SOURCE_DIR}/api/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/impl/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/model/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/model/nlohamnn/*.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
)

file(GLOB HDRS
    ${CMAKE_CURRENT_SOURCE_DIR}/api/*.h
    ${CMAKE_CURRENT_SOURCE_DIR}/model/*.h
)

add_library(${PROJECT_NAME} ${SRCS} )
target_link_libraries(${PROJECT_NAME} pistache pthread)

install(TARGETS ${PROJECT_NAME} DESTINATION /usr/lib)
install(FILES ${HDRS} DESTINATION include)
+18
Changes for EtsiServerImpl/.vscode/c_cpp_properties.json: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "${workspaceFolder}/src"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "linux-gcc-x64",
            "configurationProvider": "ms-vscode.cmake-tools"
        }
    ],
    "version": 4
}
 No newline at end of file
+26750

File added.

Preview size limit exceeded, changes collapsed.

+19
Changes for EtsiServerImpl/src/DefaultApiEtsi.cpp: 19 added lines, 0 removed lines.
Original line number Diff line number Diff line
#include "DefaultApiEtsi.h"


namespace etsi {

DefaultApiEtsi::DefaultApiEtsi(const std::shared_ptr<Pistache::Rest::Router>& rtr)
    : DefaultApi(rtr)
{
}

void DefaultApiEtsi::get_version(Pistache::Http::ResponseWriter &response) {
    response.send(Pistache::Http::Code::Ok, "Version 0.0.1\n");
}
void DefaultApiEtsi::get_ping(Pistache::Http::ResponseWriter &response) {
    response.send(Pistache::Http::Code::Ok, "Server online !\n Have fun\n");
}

}
Loading
Loading