J
J
Jekson2018-12-11 19:09:51
Flask
Jekson, 2018-12-11 19:09:51

Ways to build an API with Flask?

Help me figure it out, there is a restfull for building an API, I started to figure it out and came across marshmallow and got a little confused. Restfull serializes data out of the box, is it self-sufficient for full API writing? I just find examples of using Marshmallow in parallel with Restfull, and I don’t quite catch up with why it is needed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Gilfanov, 2018-12-11
@Lepilov

Read the documentation for Flask-Restfull, it says in English that they plan to remove all the functionality responsible for parsing REST requests and plan to replace the corresponding section of the documentation with a description of integration with other libraries (for example, with marshmallow).

Warning
The whole request parser part of Flask-RESTful is slated for removal and will be replaced by documentation on how to integrate with other packages that do the input/output stuff better (such as marshmallow). This means that it will be maintained until 2.0 but consider it deprecated. Don't worry, if you have code using that now and wish to continue doing so, it's not going to go away any time too soon.

I used Flask + Flask-Restfull + Webargs . Webargs is a marshmallow-based library that makes it easy to integrate marshmallow with various Python web frameworks, including Flask integration .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question