Which HTTP method is commonly used to retrieve data from an API endpoint?
- DELETE (HTTP DELETE method)
- GET (HTTP GET method)
- POST (HTTP POST method)
- PUT (HTTP PUT method)
The HTTP GET method is commonly used to retrieve data from an API endpoint. When a client sends a GET request, it asks the server to retrieve a resource, such as information or data, from the specified URL or endpoint. This method is safe and idempotent, meaning it should not change the server's state and can be called repeatedly with the same result.
Loading...
Related Quiz
- One of the advantages of gRPC is that it uses _____ for serialization, which is more efficient compared to JSON.
- What does CSRF stand for in the context of API vulnerabilities?
- OpenID Connect is built on top of _____ and is used for user authentication.
- Tools like Swagger are used to create ________ for APIs, making it easier for developers to understand and use them.
- In Express, implementing ________ can help in securing APIs from common vulnerabilities such as Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF).