Fix API example

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-27 11:31:16 -04:00
parent 620c23a92e
commit 2119683246
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
- Fix reverse inheritance permissions.
- Remove index create permission as an ACL permission
for indexes.
- Fix API example.
3.2.10 (2019-11-19)
===================

View File

@@ -57,7 +57,7 @@ Get a list of document types::
Upload a new document::
with open('test_document.pdf', mode='rb') as
with open('test_document.pdf', mode='rb') as file_object:
requests.post('http://127.0.0.1:8000/api/documents/', auth=('username', 'password'), files={'file': file_object}, data={'document_type': 1}).json()
{u'description': u'',