Skip to content

PapisKang/ExpensesAPI-.NET-Web-API

Repository files navigation

ExpensesAPI .NET Web API Application with a REST-API

Run In Postman

This project is a .NET Web API application. It allows users to create and list expenses, ensuring that some validation rules are applied. I am using SQL Server Database to persist datas.

Project Description

The ExpensesAPI project provides a REST API to:

  • Create expenses
  • List expenses

Resources

  • Expenses: An expense is characterized by a user, date, type (Restaurant, Hotel, Misc), amount, currency, and a comment.
  • Users: A user is characterized by a last name, first name, and a default currency for their expenses.

Main Features

  1. Creating an Expense:

    • An expense cannot have a date in the future.
    • An expense cannot be dated more than 3 months ago.
    • The comment is mandatory.
    • A user cannot declare the same expense twice (same date and amount).
    • The currency of the expense must match the user’s currency.
  2. Listing Expenses

  3. Creating Users

  4. Listing Users

Technologies Used

  • .NET Core
  • Entity Framework Core
  • SQL Server
  • Swagger for API documentation
  • Moq and xUnit for unit testing

About

Simple .NET Web API application with a REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages