Commit b32b495f authored by Alex's avatar Alex
Browse files

Add documentation of API

parent b6773320
......@@ -13,6 +13,8 @@ imperial_doc_materials.init_app(app)
imperial_doc_materials.set_redirect_url('auth.login')
```
The ```set_redirect_url()``` method should take the route name of your login page.
## Using the Materials API in a Flask route
Again, there are examples of this in the template. You must use the ```@using_materials``` decorator before the route function definition. This will give you access to a ```Materials``` client object which you can use to make requests.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment