Skip to content

ersinakyuz/flask_rest_api_project

Repository files navigation

Project flask_rest_api_project

This project provides basic REST API functions on Python3

Default Flask libraries has been used for the application.

🔗 Link to Repository

[Flask Rest API Project]

Ersin Akyüz [email protected]

API Reference

To GET JWT Authentication Header

POST /auth
Parameter Type Description
username string Required. initially (admin)
password string Required. initially (admin)

Add Customer

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

Changing Customer Information

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

GET /customers/${id}
Parameter Type Description
id string Required. Id of item to fetch
Header Key Type Description
Authorization string Required. JWT Authorization Header

Running Tests

To run tests, run the following command

test_with_curl.sh

Deployment & Run Locally

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

About

Sample Flask Application for Customer actions

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published