How to create a Restful web service in .Net Using MySQL?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.