locked
why web api is called rest RRS feed

  • Question

  • User828542847 posted

    when i try to know what is rest then i found this explanation : 

    REST is an architectural style, while SOAP is a protocol. REST is not a standard in itself, 
    but RESTful implementations make use of standards, such as HTTP, URI, JSON, and XML.

    it is not very clear to me. how make a understand what is rest to layman?

    when action is mapped and called by http verb then that kind of service will be called REST?

    why web api is called rest ?

    explain in such a way as a result i can explain it to layman.

    Friday, July 7, 2017 10:39 PM

Answers

  • User-474980206 posted

    follow this thread:

       https://stackoverflow.com/questions/671118/what-exactly-is-restful-programming

    but basically SOAP was designed because COM+ became too complex. Now SOAP has gotten too complex (try to understand a typical wsdl file without tooling), so REST has replaced it. Originally REST was simple xml/in and xml/out, just almost REST services are now JSON based instead of xml.

    instead of a wsdl file, most REST services now use swagger if they want the API discoverable.

       https://swagger.io

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 8, 2017 5:51 AM
  • User1168443798 posted

    Hi tapan2017,

    Web service APIs that adhere to the REST architectural constraints are called RESTful APIs. HTTP-based RESTful APIs are defined with the following aspects: base URL, an internet media type and standard HTTP methods.

    Web Api follows REST architectural constraints.

    You could refer below link for more information.

    # Applied to Web services

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

    Best Regards,

    Edward

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 10, 2017 6:11 AM

All replies

  • User-474980206 posted

    follow this thread:

       https://stackoverflow.com/questions/671118/what-exactly-is-restful-programming

    but basically SOAP was designed because COM+ became too complex. Now SOAP has gotten too complex (try to understand a typical wsdl file without tooling), so REST has replaced it. Originally REST was simple xml/in and xml/out, just almost REST services are now JSON based instead of xml.

    instead of a wsdl file, most REST services now use swagger if they want the API discoverable.

       https://swagger.io

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 8, 2017 5:51 AM
  • User828542847 posted

    you did not mention why web api is called rest?

    Saturday, July 8, 2017 7:38 PM
  • User1168443798 posted

    Hi tapan2017,

    Web service APIs that adhere to the REST architectural constraints are called RESTful APIs. HTTP-based RESTful APIs are defined with the following aspects: base URL, an internet media type and standard HTTP methods.

    Web Api follows REST architectural constraints.

    You could refer below link for more information.

    # Applied to Web services

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

    Best Regards,

    Edward

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 10, 2017 6:11 AM