Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delak101/widebot-atm
Simple ATM API For Deposit and Withdrawal
https://github.com/delak101/widebot-atm
Last synced: 13 days ago
JSON representation
Simple ATM API For Deposit and Withdrawal
- Host: GitHub
- URL: https://github.com/delak101/widebot-atm
- Owner: delak101
- Created: 2024-02-06T21:35:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-13T14:50:41.000Z (12 months ago)
- Last Synced: 2024-11-16T21:27:32.220Z (2 months ago)
- Language: C#
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WideBot-ATM
Simple ATM API For Deposit and WithdrawalGetting Started
$ git clone https://github.com/delak101/WideBot-ATM
```
cd WideBot/api
dotnet watch --no-hot-reload
```
Postman cURLs
register:
```
curl --location 'https://localhost:5001/api/account/register' \
--header 'Content-Type: application/json' \
--data '{
"CardNum": 987654321,
"PIN": 4321
}'
```
login:
```
curl --location 'https://localhost:5001/api/account/login' \
--header 'Authorization: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiI5ODc2NTQzMjEiLCJuYmYiOjE3MDcyOTg3MjQsImV4cCI6MTcwNzkwMzUyNCwiaWF0IjoxNzA3Mjk4NzI0fQ.Tm049mGxXZgz0bUSP0vpTIr1lGgMSds_Fy0AOz1zct1nXyI1yJ_xxV0w54dJOcExGl5oh1NOE-WHNgXj_UC3DA' \
--header 'Content-Type: application/json' \
--data '{
"CardNum": 987654321,
"PIN": 4321
}'
```
deposit:
```
curl --location 'https://localhost:5001/api/dw/deposit' \
--header 'Content-Type: application/json' \
--data '{
"CardNum": 987654321,
"Amount": 100.50
}
'
```
withdraw:
```
curl --location 'https://localhost:5001/api/dw/withdraw' \
--header 'Content-Type: application/json' \
--data '{
"CardNum": 987654321,
"Amount": 50.25
}
'
```
balance:
```
curl --location 'https://localhost:5001/api/dw/Balance/987654321'
```