This project provides basic REST API functions on Python3
Default Flask libraries has been used for the application.
Ersin Akyüz [email protected]
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.sh
Clone the project
git clone [email protected]:ersinakyuz/flask_rest_api_project.git
Go to the project directory
cd my-project
Install dependencies
./install.sh
Start the server
python main