REST API 面试题与答案
相关差异对比
问题 26. List the resources or APIs available for creating or testing web APIs.
There are various web service testing tools for REST APIs.
- MVC Jersey API
- Spring REST web service
- CXF Axis
- Restlet
问题 27. What is URI?
Unified resource identifier is referred to as a URI. A URI in REST is a string which designates a web server's resource. Each resource has a distinct URI that, when used in a Http response, enables clients to target it and do actions on it. Addressing is the process of directing traffic to a resource using its URI.
问题 28. What is Payload?
In the HTTP requests, the term "payload" refers to data in the content of the HTTP request and/or response messages.
问题 29. What are a few REST's flaws?
Statelessness is an advantage of REST, but it can also be a drawback.
State is not preserved through REST. In those other words, the server doesn't save a history of previous communications. If maintaining state is required, the client is responsible for doing so.
Developers must exercise caution and only use APIs from reliable, authentic providers as REST has less stringent security controls than SOAP. REST is therefore a bad choice for transmitting private data among servers and clients.
问题 30. How are APIs tested?
RESTful APIs can be tested using a variety of software tools, including JMeter, Katalon and PostmanStudio. Sending numerous calls from the testing tool and watching how your API reacts are often steps in the testing process. You can quickly run numerous different scenarios thanks to the capability for automated testing provided by various testing solutions.
用户评价最有帮助的内容:
- 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?
- What does messaging mean in the context of RESTful internet services?