This project provides basic REST API functions on Python3
Default Flask libraries has been used for the application.
Ersin Akyüz ersinakyuz.de@gmail.com
POST /auth| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. initially (admin) |
password |
string |
Required. initially (admin) |
PUT /customer/${id}| Parameter | Type | Description |
|---|---|---|
name |
string |
Required. Customer Name and Surname |
is_active |
string |
Optional. Is it an active account? Default 1 |
bills |
string |
Optional. Bills of the customer |
| Header Key | Type | Description |
|---|---|---|
Authorization |
string |
Required. JWT Authorization Header |
PUT /customer/${id}| Parameter | Type | Description |
|---|---|---|
name |
string |
Required. Customer Name and Surname |
is_active |
string |
Optional. Is it an active account? Default 1 |
bills |
string |
Optional. Bills of the customer |
| Header Key | Type | Description |
|---|---|---|
Authorization |
string |
Required. JWT Authorization Header |
GET /customers/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
| Header Key | Type | Description |
|---|---|---|
Authorization |
string |
Required. JWT Authorization Header |
To run tests, run the following command
test_with_curl.shClone the project
git clone git@github.com:ersinakyuz/flask_rest_api_project.gitGo to the project directory
cd my-projectInstall dependencies
./install.shStart the server
python main