How do I create a RESTful API using Python?
-
I need to create an API for the web app of our startup. The backend is in PHP/MySQL. I wanted to first make a python api before i make apis in other languages. i know there is the Django REST framework that can be used to create API. i wanted to know: 1) Is it ok to make an API in python first for the PHP-backend web app or is that independent 2) Do i need to create a separate database to store API requests or do i use existing to GET/POST API calls 3) How do I implement the Authentication keys and secret for API authentication?
-
Answer:
1)The python API can retrieve data directly from your database, PHP is not really required here. Here is an example https://github.com/Leo-g/Flask-FullTextSearch/blob/master/app/sites/views.py 2)You can use an existing database 3)You can use JSON web tokens http://techarena51.com/index.php/json-web-token-authentication-with-flask-and-angularjs/
Leonard Gonsalves at Quora Visit the source
Related Q & A:
- How do I create a Cocoa Touch Framework?Best solution by stackoverflow.com
- How can i create a mobile application server?Best solution by Stack Overflow
- How do I create a digital signature and how do I use it?Best solution by support.office.com
- How do I create a new Yahoo screen name if I already have one?Best solution by Yahoo! Answers
- How do I open a .doc file using yahoo mail?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.