Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

REST API Interview Questions and Answers

Related differences

GraphQL vs RESTful Web Services (REST API)RESTful Web Services (REST API) vs gRPC

Ques 51. Should we make the resources thread safe explicitly if they are made to share across multiple clients?

There is no need to explicitly making the resources thread-safe because, upon every request, new resource instances are created which makes them thread-safe by default.

Is it helpful? Add Comment View Comments
 

Ques 52. How does HTTP Basic Authentication work?

While implementing Basic Authentication as part of APIs, the user must provide the username and password which is then concatenated by the browser in the form of “username: password” and then perform base64 encoding on it.

The encoded value is then sent as the value for the “Authorization” header on every HTTP request from the browser. Since the credentials are only encoded, it is advised to use this form when requests are sent over HTTPS as they are not secure and can be intercepted by anyone if secure protocols are not used.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook