- OK
- Created
- Accepted
- No Content
- OK
- Created
- Accepted
- No Content
- 200
- 201
- 404
- 500
- GET
- POST
- PUT
- HEAD
- An API that uses HTTP methods.
- An API that uses HTTP methods and follows the REST architectural style.
- An API that uses HTTP methods and follows the REST architectural style and uses JSON as the data format.
- An API that uses HTTP methods and follows the REST architectural style and uses JSON as the data format and uses hypermedia links.
- PUT is used to create a resource. POST is used to update a resource.
- PUT is used to update a resource. POST is used to create a resource.
- PUT is used to update a resource. POST is used to create a resource or update a resource.
- No difference.
- Cache-Control: no-cache
- Cache-Control: no-store
- Cache-Control: must-revalidate
- All of the above
- They are the same.
- 301 is a temporary redirect. 302 is a permanent redirect.
- 301 is a permanent redirect. 302 is a temporary redirect.
- None of the above.
- GET
- POST
- PUT
- GET or POST
- GET
- POST
- PUT
- GET or POST
- True
- False
- None of the above
- When you want to create a resource.
- When you want to update a resource.
- When you want to get information about a resource.
- When you want to delete a resource.
- To tell the server what type of response the client is expecting.
- To tell the server what type of request the client is sending.
- To tell the server the size of the request body.
- To tell the server the size of the response body.
- To tell the server what type of response the client is expecting.
- To tell the server the nature of the request body.
- To tell the client the nature of the response body.
- To reduce the size of the request body.
- To reduce the size of the response body.
- To reduce the size of the request body and the response body.
- None of the above.
- The server should only send the resource if the resource has been modified since the specified date.
- The resource should only be modified if the resource has been modified since the specified date.
- The server should only send the resource date
- The server should update the resource date and send the resource.
- The request header that uniquely identifies the version of the resource.
- The response header that names the resource.
- The date the resource was last modified.
- The response header that uniquely identifies the version of the resource.
-
HTTP
is used for static websites.HTTPS
is used for dynamic websites. -
HTTP
is used for dynamic websites.HTTPS
is used for static websites. -
HTTPS
isHTTP
over TLS/SSL. -
HTTP
is used for websites.HTTPS
is used for APIs.
- To tell the server what type of response the client is expecting.
- To tell the client which origins are allowed to access the resource.
- To tell the server the nature of the request body.
- To tell the client the nature of the response body.
- A request that is sent by the server to the client to check if the client is allowed to access the resource.
- A request that is sent by the client to the server to check if the client is allowed to access the resource.
- A request that is sent by the server to the client to check if the server is allowed to access the resource.
-
CORS
does not require a preflight request.
- When resource is not found in the cache.
- When resource is found in the cache.
- When resource can not be found.
- When the resource is stale.
- When resource is not found in the cache.
- When resource is found in the cache.
- When resource can not be found.
- When the resource is stale.
- To tell the server what type of response the client is expecting.
- To tell the client how to cache the response.
- To tell the client the nature of the response body.
- To tell the server the nature of the request body.