![]() ![]() ![]() The browsable API is built with Twitter's Bootstrap (v 3.3.5), making it easy to customize the look-and-feel. There are helpful extensions for viewing JSON in Firefox and Chrome. The format can be specified using ?format= in the request, so you can look at the raw JSON response in a browser by adding ?format=json to the URL. Formatsīy default, the API will return the format specified by the headers, which in the case of the browser is HTML. The rest_framework package includes a reverse helper for this purpose. If you include fully-qualified URLs in your resource output, they will be 'urlized' and made clickable for easy browsing by humans. These pages allow for easy browsing of resources, as well as forms for submitting data to the resources using POST, PUT, and DELETE. Django REST Framework supports generating human-friendly HTML output for each resource when the HTML format is requested. Alfred North Whitehead, An Introduction to Mathematics (1911)ĪPI may stand for Application Programming Interface, but humans have to be able to read the APIs, too someone has to do the programming. Civilization advances by extending the number of important operations which we can perform without thinking about them. that we should cultivate the habit of thinking of what we are doing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |