Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
main
.dockerignore
.gitignore
CMakeLists.txt
Dockerfile
LICENSE
README.md
azure-pipelines.yml

README.md

oatpp-swagger with Async APIs

Simple example how to document Async-Controller endpoints with Swagger-UI

More about oat++:

Overview

Project layout


- CMakeLists.txt               // project loader script. load and build dependencies 
- main/                        // main project directory
    |
    |- CMakeLists.txt          // projects CMakeLists.txt
    |- src/                    // source folder
    |- test/                   // test folder
    
- src/
    |
    |- controller/              // Folder containing controller where all endpoints are declared
    |- dto/                     // DTOs are declared here
    |- SwaggerComponent.hpp     // General info for Swagger
    |- AppComponent.hpp         // Service config
    |- Logger.hpp               // Application Logger
    |- App.cpp                  // main() is here
    

Build and Run

Using CMake

$ mkdir build && cd build
$ cmake ..
$ make run        ## Download, build, and install all dependencies. Run project

In Docker

$ docker build -t example-async-api .
$ docker run -p 8000:8000 -t example-async-api
You can’t perform that action at this time.