Skip to content

Commit

Permalink
docs: fix issue 1700 (#1701)
Browse files Browse the repository at this point in the history
* Wrong property name. It was base_route but should have been route_base
  • Loading branch information
fedepad authored Sep 17, 2021
1 parent 3d351c9 commit 4b00aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rest_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ So we can make a request to our method using::

$ curl http://localhost:8080/api/v1/exampleapi/greeting

To override the base route class blueprint, override the ``base_route`` property,
To override the base route class blueprint, override the ``route_base`` property,
so on our previous example::

from flask_appbuilder.api import BaseApi, expose
Expand All @@ -52,7 +52,7 @@ so on our previous example::

class ExampleApi(BaseApi):

base_route = '/newapi/v2/nice'
route_base = '/newapi/v2/nice'

@expose('/greeting')
def greeting(self):
Expand Down

0 comments on commit 4b00aa4

Please sign in to comment.