简体   繁体   中英

REST API in Python over SSL

I am creating a REST API. Basic idea is to send data to a server and the server gives me some other corresponding data in return. I want to implement this with SSL. I need to have an encrypted connection between client and server. Which is the best REST framework in python to achieve this?

You can choose any framework to develop your API, if you want SSL on your API endpoints you need to setup SSL with the Web server that is hosting your application

You can obtain a free SSL cert using Let's encrypt . You will however need a domain in order to be able to get a valid SSL certificate.

SSL connection between client and server does not depend on the framework you choose. Web Servers like Apache HTTPD and Nginx act as the public facing reverse proxy to your python web application. Configuring SSL with your webserver will give you encrypted communication between client and server

On assumption that you are talking about communication between REST Apis and some other stack like flask(A different server).

Rest apis can be used to communicate data with any type of platform as long as they agree on a common protocol to share data.

Data can be shared using xml, yaml or json. Your rest apis can be on any stack you like. Architecture will be something like:-

Your main site(microservice or monolithic) <=> REST Apis(microservices) 

You can use djangorestframework or any other you prefer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM