Posts

Showing posts from January, 2022

Error Handling and HTTP status code

 Spring error Handling and HTTP status code  --------------------------- Learn HTTP Status code

REST API

Image
 REST API  API: Application program interface  API Example : If we have to search for something/calculate in google, we send a request through the HTTP to the Google server. The program resides in google server and in that place we can say that the program is API(Application Program Interface). The program (API) finds the searched value or calculate and sends it back to the requester through HTTP again. Local program -----------HTTP-------google server (Program) API History :  1999  --   SOAP -- W3C 2000 ---  REST  -- Modern way of doing APIs W3C --    SOAP SOAP   --   XML   --   RPC  This is the  SOAP  way of API call. Is REST different from This? For both, it's the same in architecture, but the difference is in Method. For SOAP, the method is always POST because it's never used whereas for REST the method contains the remote server address. Main methods used in HTTP start lin...