Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years ago. Active 6 months ago. Viewed 6k times. I am trying to write a file sharing application that exposes a REST interface. Improve this question.
Ayrx Ayrx 1, 4 4 gold badges 23 23 silver badges 33 33 bronze badges. It is really broad question. Nothing stops you from building Response object from scratch. If data is static it is probably better to handle that using web-server.
Could you add some details. Add a comment. Active Oldest Votes. There's an xml example on github I know this question was asked 7 years ago so it probably doesn't matter any more to Ayrx.
Improve this answer. AlpacaMax AlpacaMax 2 2 silver badges 7 7 bronze badges. Your email address will not be published. Roy Tutorials Technical… Theoretical… Practical…. Prerequisites Python 3. Create a file called app. Create a file main. Testing the Application I will test our application using Postman tool. So after looking at this , this and this , I thought that I would be able to serve it easily by adding the following lines: app.
Improve this question. Community Bot 1 1 1 silver badge. Salvador Dali Salvador Dali k gold badges silver badges bronze badges. Flask can be configured to serve files on special "static" endpoint. Take a look at this document. And of corse, urls in index. That means, you need to used "static" endpoint example. Add a comment. Active Oldest Votes. You can serve static html pages with flask like this: app. Improve this answer. Sign up or log in Sign up using Google.
Sign up using Facebook.
0コメント