Commit e76ec2c2 authored by Yusril Rapsanjani's avatar Yusril Rapsanjani

Update README.md

parent c996c770
......@@ -68,6 +68,12 @@ hanya orang tertentu yang tau secret key nya saja yang bisa generate apikey
| -------- | -------- | --------- |
| POST | secret_key | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/keys/generate
```
__Code Backend__
```python
@app.route('/api/v1/keys/generate', methods=['POST'])
def generateToken():
......@@ -99,6 +105,12 @@ Perlu diingatkan bahwa kalian memerlukan APIKEY.
| POST | lastname | String |
| POST | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/create
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/create', methods=['POST'])
def createNasabah():
......@@ -134,6 +146,12 @@ kita tidak ingin validasi ini digunakan sembarangan orang.
| GET | password | String |
| GET | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/login?username=yusril&password=P@ssw0rd&keys=<yourapikey>
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/login', methods=['GET'])
def loginNasabah():
......@@ -161,6 +179,12 @@ dari akun nasabah. Pastikan bahwa nomor rekening benar.
| POST | amount | Integer |
| POST | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/withdraw
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/withdraw', methods=['POST'])
def withdraw():
......@@ -189,6 +213,12 @@ Nomor Rekening terdiri dari 15 Digit
| POST | amount | Integer |
| POST | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/deposit
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/deposit', methods=['POST'])
def deposit():
......@@ -218,6 +248,12 @@ Pastikan bahwa nomor rekening pengirim dan nomor rekening tujuan benar.
| POST | notes | String |
| POST | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/transfer
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/transfer', methods=['POST'])
def transfer():
......@@ -247,6 +283,12 @@ detail informasi nasabah seperti profile dan saldonya.
| GET | norek | String |
| GET | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/check?norek=658233202693885&keys=<yourapikeys>
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/check', methods=['GET'])
def checkRekening():
......@@ -272,6 +314,12 @@ detail informasi nasabah seperti profile dan saldonya.
| -------- | -------- | --------- |
| GET | keys | String |
__URL String__
```
http://127.0.0.1:5000/api/v1/nasabah/check?keys=<yourapikeys>
```
__Code Backend__
```python
@app.route('/api/v1/nasabah/checkall', methods=['GET'])
def checkRekeningAll():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment