Loading repository data…
Loading repository data…
leo-aa88 / repository
A simple CRUD REST API template written in C++ using Boost library
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This project is a simple HTTP server application written in C++ that demonstrates handling HTTP requests for managing Person entities using the Boost ASIO and Beast libraries. It showcases RESTful API design principles, implementing endpoints to retrieve and create person entities.
Before you begin, ensure you have met the following requirements:
git clone https://github.com/araujo88/MiniBoostRestAPI.git
cd MiniBoostRestAPI
mkdir build && cd build
cmake ..
cmake --build .
This will generate an executable file in the build directory.
After building the project, you can run the server with the following command from the build directory:
./MiniBoostRestAPI # or MiniBoostRestAPI.exe on Windows
By default, the server listens on port 6969. You can interact with the server using any HTTP client, such as curl or Postman, targeting the available endpoints.
GET /person: Retrieves a list of all person entities.POST /person: Creates a new person entity.GET /person/{id}: Retrieve a person entity by id.DELETE /person/{id}: Delete a person entity by id.This project is licensed under the MIT License - see the LICENSE file in the repository for details.