Skip to content

novokrest/CashExchangeMachine

Repository files navigation

Cash Exchange Machine

REST API

GET /api/cashmachine/money

Retrieve information about available money in machine

POST /api/cashmachine/money

Set money in machine

PUT /api/cashmachine/insert/coin/nominal

Insert coin with specified nominal

PUT /api/cashmachine/insert/note/nominal

Insert note with specified nominal

POST /api/cashmachine/exchange

Make exchange of inserted money

Build and Run

  1. Initialize SQL Server database with InitCashDB.sql script located in sql folder
  2. Open CashExchangeMachine.sln solution
  3. Find app.config in CashExchangeMachine.WebApi.SelfHost project and set:
  • SQL Server connection string (xpath: /configuration/connectionStrings/add/@name='sql')
  • base URL for REST server (xpath: /configuration/appSettings/add/@name='server')
  1. Build solution (Ctrl+Shift+B)
  2. Run CashExchangeMachine.WebApi.SelfHost.exe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published