From c4676510fd8504d0a448016dc6a7e27c7933d5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Fri, 20 Apr 2018 15:33:59 +0200 Subject: [PATCH] Adjusted client JWT example (#5944) --- docs/topics/api-clients.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/api-clients.md b/docs/topics/api-clients.md index 1de669b42..3dbcaf3d8 100644 --- a/docs/topics/api-clients.md +++ b/docs/topics/api-clients.md @@ -269,8 +269,8 @@ For example, using the "Django REST framework JWT" package client = coreapi.Client() schema = client.get('https://api.example.org/') - action = ['api-token-auth', 'obtain-token'] - params = {username: "example", email: "example@example.com"} + action = ['api-token-auth', 'create'] + params = {"username": "example", "password": "secret"} result = client.action(schema, action, params) auth = coreapi.auth.TokenAuthentication(