S
S
sivabur2015-12-07 15:25:43
API
sivabur, 2015-12-07 15:25:43

Which method is better to work with api, get or post?

Which method is better to work with get or post api?
Perhaps some of them are smaller.
Or loads the server less and whether there are some other subtleties.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2015-12-07
@BuriK666

https://en.wikipedia.org/wiki/Representational_sta...

Z
Zakharov Alexander, 2015-12-07
@AlexZaharow

These methods do not load the server somehow differently. But there is a difference in the amount of data that can be transferred by these methods - GET - 4Kbytes, POST - actually unlimited. In addition, the POST method can be fully encrypted over https, while GET is not encrypted in any way, because all options are visible on the command line (this is from the main one). A good article about these methods: habrahabr.ru/company/yandex/blog/265569

D
Dmitry Belyaev, 2015-12-07
@bingo347

If api in rpc - then POST because GET does not allow you to transfer the request body, and you can’t stuff a lot of data into url
If rest - then all methods are used GET, POST, PUT, DELETE as the main ones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question