A RESTful API built with ASP.NET Core for managing contacts.
- .NET 9.0
- Entity Framework Core (In-Memory Database)
- AutoMapper 14.0
- Scalar API Explorer
- .NET 9.0 SDK or later
- Visual Studio 2022 or Visual Studio Code
- Clone the repository:
git clone https://github.com/Joshuapavan/ContactlyAPI.git
cd ContactlyAPI
- Build the project:
dotnet build
- Run the application:
dotnet run
- Access the API:
- API Base URL:
http://localhost:5053
- API Documentation:
http://localhost:5053/scalar
The API documentation is available through Scalar API Explorer when running the application.
Visit http://localhost:5053/scalar
to:
- View API endpoints
- Test API operations
- View request/response schemas
- Execute API calls directly from the browser
Program.cs
- Application entry point and configurationData/
- Database context and entity configurationsControllers/
- API endpoints and request handlingModels/
- Data models and DTOs
AutoMapper (14.0.0)
- Object-to-object mappingMicrosoft.AspNetCore.OpenApi (9.0.6)
- OpenAPI supportMicrosoft.EntityFrameworkCore.InMemory (9.0.8)
- In-memory databaseScalar.AspNetCore (2.6.9)
- API documentation and testingScalar.AspNetCore.Microsoft (2.6.9)
- Microsoft integration for ScalarScalar.AspNetCore.Swashbuckle (2.6.9)
- Swagger/OpenAPI implementation
The project uses an in-memory database for development purposes. The database is initialized on startup and data persists only during runtime.
This project is currently not licensed.