Code Monkey home page Code Monkey logo

radapi's Introduction

RadAPI

Run Tests

In source directory, you can run tests executing:

dotnet test .\tests\UnitTests\

Run API using Docker Compose

In source directory, you can run the application using docker compose:

cd src

docker compose up

The swagger page should be available (a) https://localhost:443/swagger/index.html (b) http://localhost:80/swagger/index.html

Example Case

  1. We must first create a user in order to create accounts for them.

Use POST api/User/ in order to generate a user id.

  1. Now that we have the user id, we can create accounts!

Use POST api/Account to create an account. If you call POST api/Account multiple times, multiple accounts will be generated. The default balance for the account is 100.

  1. Now the we have an account, we can deposit or withdraw.

Use PUT api/Account in order to deposit or withdraw. AccountAction = 0 will carry out a deposit. AccountAction = 1 will carry out a withdrawal.

  1. If we wish to close an account for a user:

Use DELETE api/Account to delete a specific account for a user.

radapi's People

Contributors

raz2017 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.