Test your knowledge
Let's see whether you can answer the following questions correctly:
- Which of the following classes is responsible for rendering the
text/html
content:- The
rest_framework.response.HtmlRenderer
class - The
rest_framework.response.TextHtmlAPIRenderer
class - The
rest_framework.response.BrowsableAPIRenderer
class
- The
- By default, the browsable API uses the following web component library:
Bootstrap
ReactJS
AngularJS
- When we enter the URL of an existing resource in a web browser, the browsable API:
- Returns a web page with just the JSON response for an HTTP GET request to the resource
- Returns a web page with a section that displays the JSON response for an HTTP GET request to the resource and diverse buttons to perform other requests to the resource
- Returns a web page with a section that displays the JSON response for an HTTP OPTIONS request to the resource and diverse buttons to perform other requests to the resource
- When we enter the URL of a non-existing resource in a web browser, the browsable...