Restful API Web Services Interview Questions and Answers for freshers and experienced | Code Decode

Restful API Web Services Interview Questions and Answers for freshers and experienced | Code Decode

189.570 Lượt nghe
Restful API Web Services Interview Questions and Answers for freshers and experienced | Code Decode
In this video of code decode we have covered Rest API Web Services Interview Questions and Answers for freshers and experienced Udemy Course of Code Decode on Microservice k8s AWS CICD link: https://openinapp.co/udemycourse Course Description Video : https://yt.openinapp.co/dmjvd Rest Api part 2 : https://youtu.be/77_Zx-7ybRo REST represents Representational State Transfer RESTFUL web services are web services that follows REST architectural concept (stateless client-server architecture). Its is an architectural style for developing applications that can be accessed over the network Every content in the REST architecture is considered a resource. The resource == object in the object-oriented programming world. Can be represented as text files, HTML pages, images, or any other dynamic data. The REST Server provides access to these resources whereas the REST client consumes (accesses and modifies) these resources. Every resource is identified globally by means of a URI Uniform Resource Identifier is the full form of URI which is used for identifying each resource of the REST architecture. URI is of the format: They are of2 types: URN URL HTTP Methods are also known as HTTP Verbs. They form a major portion of uniform interface restriction followed by the REST that specifies what action has to be followed to get the requested resource. Below are some examples of HTTP Methods: GET: This is used for fetching details from the server and is basically a read-only operation. POST: This method is used for the creation of new resources on the server. PUT: This method is used to update the old/existing resource on the server or to replace the resource. DELETE: This method is used to delete the resource on the server. PATCH: This is used for modifying the resource on the server. OPTIONS: This fetches the list of supported options of resources present on the server. The POST, GET, PUT, DELETE corresponds to the create, read, update, delete operations which are most commonly called CRUD Operations. GET, HEAD, OPTIONS are safe and idempotent methods whereas PUT and DELETE methods are only idempotent. POST and PATCH methods are neither safe nor idempotent. The service is based on the Client-Server model. The service uses HTTP Protocol for fetching data/resources, query execution, or any other functions. The medium of communication between the client and server is called “Messaging”. Resources are accessible to the service by means of URIs. It follows the statelessness concept where the client request and response are not dependent on others and thereby provides total assurance of getting the required data. These services also use the concept of caching to minimize the server calls for the same type of repeated requests. Supports multiple technologies for data transfer such as text, xml, json, image etc. No contract defined between server and client, so loosely coupled implementation. REST is a lightweight protocol REST methods can be tested easily over browser. The HTTP protocol and REST web service, both shares the feature of statelessness. Any previous communication with the client and server is not maintained and thus the whole process is very much simplified. Every method required for communication is identified as an independent method i.e. there are no dependencies to other methods. As per REST architecture, a RESTful web service should not keep a client state on server. This restriction is called statelessness. It is responsibility of the client to pass its context to server and then server can store this context to process client's further request. For example, session maintained by server is identified by session identifier passed by the client. Promotional Links Registration link: https://relvl.co/ixl Most Asked Core Java Interview Questions and Answers : https://youtube.com/playlist?list=PLyHJZXNdCXscoyL5XEZoHHZ86_6h3GWE1 Advance Java Interview Questions and Answers : https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd Java 8 Interview Questions and Answers : https://youtube.com/playlist?list=PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy Hibernate Interview Questions and Answers : https://youtube.com/playlist?list=PLyHJZXNdCXsdC-p2186C6NO4FpadnCC_q Spring Boot Interview Questions and Answers : https://youtube.com/playlist?list=PLyHJZXNdCXsexOO1VQ4vs-BM2-8CKrixd Angular Playlist : https://www.youtube.com/watch?v=CAl7RQSdq2Q&list=PLyHJZXNdCXsfxRtDwtGkDD_lLfTWc1g0i GIT : https://youtube.com/playlist?list=PLyHJZXNdCXscpl6pxOnL2lRWJlzvzjyZE Subscriber and Follow Code Decode Subscriber Code Decode : https://www.youtube.com/c/CodeDecode?sub_confirmation=1 Linkedin : https://www.linkedin.com/in/codedecodeyoutube/ Instagram : https://www.instagram.com/codedecode25/ #codedecode #restful #restinterviewquestions