Skip to content

api2spec/api2spec-fixture-drogon

Repository files navigation

api2spec-fixture-drogon

A Drogon (C++) API fixture for testing api2spec.

Endpoints

Health

  • GET /health - Health check
  • GET /health/ready - Readiness check

Users

  • GET /users - List all users
  • GET /users/{id} - Get user by ID
  • POST /users - Create a new user
  • PUT /users/{id} - Update a user
  • DELETE /users/{id} - Delete a user
  • GET /users/{userId}/posts - Get posts by user

Posts

  • GET /posts - List all posts
  • GET /posts/{id} - Get post by ID
  • POST /posts - Create a new post

Running with Docker

docker compose up --build

The server will be available at http://localhost:8080

Building Locally

Requires Drogon framework installed.

cmake -B build
cmake --build build
./build/server

About

Drogon fixture for api2spec testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published