HTTP, REST API Flashcards
Which HTTP METHODS (verbs) can be used to “send data”?
POST, PUT, PATCH
Which HTTP METHOD removes a singleton resource?
DELETE
Who was the originator of the REST architecture?
Roy Fielding
Which HTTP METHOD is the most commonly used by REST API?
GET
Which group of HTTP status codes is used for Redirection messages?
3XX
Which group of HTTP status codes contains the Not Found message?
4XX
According to Roy Fielding, “The key abstractions of information in REST is a representation.”
False. Should be “a resource”, not representation.
Which of the 6 REST constraints ensures no client context/information is stored on the server between requests?
Statelessness
REST Clients, like Postman and Insomnia make responses from REST APIs more readable.
True
What does REST API stand for?
Representational State Transfer and Application Programming Interface
Which of the following strings must be added to the INSTALLED_APPS variable to add Django REST framework in the Django application?
‘rest_framework’
The “book_collection” view supports which HTTP requests?
GET, POST
The “book_instance” view supports which HTTP requests?
GET, PUT, DELETE
What new URL paths were added to the books/urls.py file to map requests to the new REST API views?
path(‘api/’, book_collection),
path(‘api//’, book_instance),
Data serialization is the process of converting complex data structures into a byte stream for storage, transfer and distribution.
True