Skip to content
Myr

Merge pull request #4175 from greyli/views-docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix typo in views docs

authored by Grey Li · committed by GitHub · parents 49cbb77, c224832 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/views.rst+2 added-2 removed
111 unmodified lines
112------------------------113114For RESTful APIs it's especially helpful to execute a different function115for each HTTP method. With the :class:`flask.views.MethodView` you can116easily do that. Each HTTP method maps to a function with the same name117(just in lowercase)::116easily do that. Each HTTP method maps to a method of the class with the117same name (just in lowercase)::118119 from flask.views import MethodView120121 class UserAPI(MethodView):
114 unmodified lines