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.
REST API Interview Questions and Answers
Related differences
Ques 51. Should we make the resources thread safe explicitly if they are made to share across multiple clients?
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:
- What is the REST stands for?
- What is REST API (RESTful Web Services)?
- RESTful web services, what exactly do you mean?
- What characteristics distinguish RESTful web services?