REST - Http x Json

4

I did some research and I have some questions about REST:

  • Http is Rest?
  • Is JSON and XML just the return format of a Rest operation?
  • REST x Web Services: are the same things?
  • SOAP would be the opposite of HTTP?

Thank you for helping me.

    
asked by anonymous 28.03.2016 / 14:34

1 answer

9

TL; DR :

  • No
  • No
  • No
  • No

Not so short version:

  •   

    Http is Rest?

HTTP is an application protocol that specifies behavior and hypertext traffic; REST is an architectural style whose focus is data elements. REST can be implemented over HTTP, but HTTP can be used to implement many other architectures - SOAP, for example.

  •   

    Is JSON and XML just the return format of a Rest operation?

While the vast majority of current REST implementations use JSON and XML as consumer data exchange formats, they are not only used in REST structures. Any process that requires data serialization (disk archiving or authentication, for example) can benefit from these two formats.

  •   

    REST x Web Services: are the same things?

A WebService can be implemented containing REST endpoints, but not exclusively. As mentioned earlier, SOAP endpoints (among others) are valid practices.

  •   

    SOAP would be the opposite of HTTP?

No. Since SOAP is an XML-based format, the vast majority of implementations occur over HTTP.

    
28.03.2016 / 15:18