A simple REST API implemented across multiple technology stacks for comparison and learning.
The aspnet-core-minimal/UserManagement project is a minimalist REST API for user management, built with ASP.NET Core 9.0. It provides basic endpoints for creating, retrieving, updating, and deleting users (CRUD). The API uses an in-memory repository and serves as a quick-start template or reference implementation.
Features:
- Minimal API approach with modern .NET features
- OpenAPI/Swagger integration (development only)
- Example user endpoints:
GET /api/users– Retrieve all usersPOST /api/users– Create a new userPUT /api/users– Update a userDELETE /api/users/{userId}– Delete a user
- Dockerfile included for containerized deployment
How to run locally:
cd aspnet-core-minimal/src/UserManagement.Api
dotnet runThe API will be available at http://localhost:5100 by default.
Note:
User data is stored in memory and will be lost when the application restarts.
The spring-boot project provides a REST API for user management, implemented with Java and Spring Boot. It offers endpoints for creating, retrieving, updating, and deleting users (CRUD operations). The application uses a simple in-memory HashMap to store user data for demonstration and development purposes.
Features:
- RESTful API using Spring Boot
- In-memory storage with Java
HashMapfor easy setup - Example user endpoints:
GET /api/users– Retrieve all usersPOST /api/users– Create a new userPUT /api/users/{id}– Update a userDELETE /api/users/{id}– Delete a user
- Dockerfile included for containerized deployment
How to run locally:
cd spring-boot
./mvnw spring-boot:runThe API will be available at http://localhost:8080 by default.
Note:
User data is stored in an in-memory HashMap and will be lost when the application restarts.
The delphi-horse project implements a REST API for user management using Delphi and the Horse web framework. Horse was installed via the boss package manager for Delphi. The API provides endpoints for creating, retrieving, updating, and deleting users (CRUD), with user data stored in memory.
Features:
- RESTful API using Delphi and Horse
- Horse framework installed via
boss install horse - In-memory storage for user data
Available endpoints:
GET /api/users– Retrieve all usersGET /api/users/:id– Retrieve a user by IDPOST /api/users– Create a new userPUT /api/users/:id– Update a userDELETE /api/users/:id– Delete a userGET /api/info– Get API infoGET /api/health– Health check endpoint
How to run locally:
- Open the Delphi project in the
delphi-horsefolder. - Build and run the application.
The API will be available at http://localhost:9000 by default.
Example:
curl http://localhost:9000/api/usersNote:
User data is stored in memory and will be lost when the application restarts.
This README was generated with the help of AI based on the project's source code and structure.