Giter Club home page Giter Club logo

fakebankapi's Introduction

Fake Bank API

An internal API for a fake financial institution that enables transfers and account creation

Architecture Used

Clean Architecture (.Net core 5.0).

Code Structure

#Src
  - #API
     - FakeBank.BankAPI.Api (API Endpoint)
  - #Core
     - FakeBank.BankAPI.Application (Application Logic - implemented in the features folder) 
     - FakeBank.BankAPI.Domain (Database Model)
  - #Infrastructure
     - FakeBank.BankAPI.Identity (Auth0 Authentication Implementation)
     - FakeBank.BankAPI.Infrastructure (Logging, Mail e.t.c...)
     - FakeBank.BankAPI.Persitence (Database Repository, dbcontext and logic)
#test
     - FakeBank.BankAPI.IntegrationTests
     - FakeBank.BankAPI.UnitTests

Technologies Used

# FakeBank.BankAPI.API
- Swagger for API documentation
- Mediatr - sends a request to the application logic via Irequest Handler

# FakeBank.BankAPI.Application
- Automapper
- FluentValidation - Api requests validations
- Mediatr - Receives requests from the API and carries out appropriate implementation

# FakeBank.BankAPI.Domain
- Ef core

# FakeBank.BankAPI.Identity
- Auth0
- Jwt

# FakeBank.BankAPI.Infrastructure
- SendGrid
- Serilog for logging

# FakeBank.BankAPI.Persitence
- Ef Core

# FakeBank.BankAPI.IntegrationTests
- xunit
- Ef Core inmemory

# FakeBank.BankAPI.UnitTests
- Xunit
- Moq
- Shouldly

Auth0 Token Generation

# API URL 
https://dev-p-zm5f3q.us.auth0.com/oauth/token

# Payload
 { 
   "grant_type": "client_credentials", 
   "client_id": "tGgB4XhOVzTIESMteqrNCTXKAYpTkIhC" ,
   "client_secret": "81xJ2XgiM3YG1BQVR-_ZaFCk2Y4bAZ8uU0v73xJBgMIzAR3S4ASikAaY-TIQ5L9z",
   "audience": "https://dev-p-zm5f3q.us.auth0.com/api/v2/"
 }  

pass the access token returned from the API as bearer token

Notes

Ensure that the Swagger XML File is present in the specified bin folder the app is running (i.e).

# FakeBank.BankAPI.API should have a 
- FakeBank.BankAPI.API.XML file in the bin\Debug\net5.0 folder

# FakeBank.BankAPI.Application should have a 
- FakeBank.BankAPI.Application .XML file in the bin\Debug\net5.0 folder 

This XML files where generated to aid swagger documentation and better visualization of what the API does

fakebankapi's People

Contributors

aces32 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.