Minimal API with C# .NET 7 and Data Persistence in MongoDB.
This API was built to be consumed by the App "continhas" (https://github.com/assis402/continhas). Its function is to perform inclusion, update, deletion and queries of financial inputs and outputs executed in the App.
└── Solution
├── API // Presentation and business layer (Minimal API)
│ ├── Builders // Logic for building complex objects step by step
│ ├── Convertes // Mapping entities to Dto
│ ├── Data // MongoDB database configurations
│ ├── DTOs // Data transfer objects to API response
│ ├── Entities // Entities related to Transactions with their respective business logic
│ ├── Helpers // Utility classes with specific goals
│ ├── appsettings.json // Contains environment variables, database connection string, log configuration...
│ └── Program.cs // Application startup and configuration, dependency injections and end-point mapping
│
└── IntegrationTests // Integration Tests layer
├── Helpers // Utility classes to build Dtos for testing
├── TransactionsApplication.cs // In-memory API initialization
└── TransactionTests.cs // Testing in the context of Transactions
POST
: Create a new transactionPUT
: Update a transaction
GET
: Get transactions by period
DELETE
: Delete a transaction by id
DELETE
: Delete transactions by period
Link: https://c4devs.cloud/matheus/transactions-api/swagger
- Transactions CRUD.
- Basic Swagger.
- Support Authentication with user for securing the APIs.
- Write integration tests for Dashboard endpoints.
- Deploy at jenkins