Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

assis402/TransactionsAPI

Repository files navigation

TransactionsAPI status

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.

Structure

└── 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

API

/transaction

  • POST : Create a new transaction
  • PUT : Update a transaction

/transaction/{period}

  • GET : Get transactions by period

/transaction/{id}

  • DELETE : Delete a transaction by id

/transaction/byperiod/{period}

  • DELETE : Delete transactions by period

Swagger

Link: https://c4devs.cloud/matheus/transactions-api/swagger

To Do

  • Transactions CRUD.
  • Basic Swagger.
  • Support Authentication with user for securing the APIs.
  • Write integration tests for Dashboard endpoints.
  • Deploy at jenkins

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /