Is RESTful Important?

I am working on a web application that uses JSON through an HTTP interface for communication between server and client. The goal is to allow multiple clients to be developed for different purposes (online client, standalone desktop, or created by a third-party developer) using the same online data that will be available through this web service.

Currently, the connection between the client and server is sent through POST only through a system that works well. I read quite a lot of information about REST and RESTful with HTTP using PUT, GET, POST and DELETE. I could divide my API into these different categories, but that means more code and some API changes.

My question is: how important is the RESTful HTTP API? Is this a recommendation, an option, or almost a necessity?

Thanks in advance.

+3
source share
6 answers

As a die-hard RESTafarian I would say that I am using HTTP (the appropriate REST protocol) to the fullest. What for? Well, I will show you two fragments from the email exchange that I had yesterday, with my good friend, who is seriously able (he used to be an IT professor, still lectured, still kicks his ass, wherever he goes);

mappodrhom
:

. , POST REST. , .

, RESTful - . , : -)

, , ( REST , , URI, ), . - , , , , . , , , , , ...

, ;

, ( ) f *** ! REST, , , , -. , , , , ?

, REST - . , API , , , (, , , ), URI .

, , , . . REST , , - , FUD ( RPC, GET POST , , JSON, SOAP ..) , . , !

+13

, REST. Hypermedia - , , .

, REST , , , RESTful, " ".

+4

- - API. :

  • API. .
  • SOAP - XML API
  • JSON - , API ( REST, )
  • .

REST , , API REST . , .

+1

. , , RESTful -, Hi-Rest Lo-REST. googling. , , , html, http .

0

, , . , , . , , , .

0

One of the many tasks that you must consider when using the service APIs is the ease with which they can be used by your end user. REST gets very powerful equipment.

Today, the largest development group is the .NET development group, and with ADO.NET for services (Astoria), consuming REST using Linq is very simple and very elegant.

-1
source

Source: https://habr.com/ru/post/1709346/


All Articles