Fix string format error while we're in here.
This commit is contained in:
parent
51e4a58a85
commit
e345a3afb5
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ registration code::
|
|||
app.add_url_rule(url, defaults={pk: None},
|
||||
view_func=view_func, methods=['GET',])
|
||||
app.add_url_rule(url, view_func=view_func, methods=['POST',])
|
||||
app.add_url_rule('%s<%s:%s>' % (url, pk), view_func=view_func,
|
||||
app.add_url_rule('%s<%s:%s>' % (url, pk, pk_type), view_func=view_func,
|
||||
methods=['GET', 'PUT', 'DELETE'])
|
||||
|
||||
register_api(UserAPI, 'user_api', '/users/', pk='user_id')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue