r/pythontips • • Jun 22 '20

Python3_Specific How to Create python API

How can i create a Rest API along with layout containing following features:

  1. Token based authentication for accessing the API

  2. Create New Router Details with unique loopback and hostname values.

  3. Maintain a database for the router details based on IP

  4. Get List all the routers based on type(AG1/CSS) using Sap ID

  5. Get the list of routers as per the given IP range values

  6. Delete record from database based on IP

25 Upvotes

11 comments sorted by

View all comments

4

u/sebastiancz Jun 23 '20

I recommend you to use FastAPI with OAuth in order to achieve what you are looking at.

1

u/kanwal_94 Jun 23 '20

I was trying to use flask for this... I'll try with fastAPI now. Can you provide me with some references for it ?

2

u/sebastiancz Jun 23 '20

Take a look at this course: https://www.udemy.com/course/python-api-development/ IMO its worth the bucks.

0

u/kanwal_94 Jun 23 '20

Okay... Thankyou... Do you have any other references ?

2

u/fedeb95 Jun 23 '20

I started something with flask once, but quickly realized that for complex stuff you have to include a lot of libraries that come with fastapi