A
A
Artem2016-08-31 02:17:53
Flask
Artem, 2016-08-31 02:17:53

Is it mandatory to use POST, GET methods in Python Flask?

In the route arguments, it is possible to specify which methods will be used to send requests.
In addition to GET and POST, there are many others.
But is it necessary to use them at all in such a context, if it’s more convenient for me personally to divide them into two different routes, especially since, apart from GET and POST, other methods in html are not used. Yes, and GET, POST are not used for their intended purpose: to issue, create.
This is my personal student opinion. If it is incorrect, then please point me in the right direction with reason.
I can understand the original manuals in a wrong way, but there are few Russian-speaking ones.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-08-31
@Cruper

in the rest, the request type carries a semantic load.
accordingly, if you do not implement rest, then you can use requests as you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question