Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Adding note about accept header for JSON requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert committed Oct 14, 2015
1 parent f2b4c58 commit 08fc34c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/registration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ If the user is created successfully you will get a 200 response and the body
will the the account object that was created. If there was an error you
will get an object that looks like ``{ error: 'error message here'}``

.. note::

You may have to explicitly tell your client library that you want a JSON
response from the server.Not all libraries do this automatically.If the
library does not set the ``Accept: application/json`` header on the request,
you'll get back the HTML registration form - not the JSON response that you
expect.

.. _Stormpath Admin Console: https://api.stormpath.com
.. _Account Password Strength Policy: https://docs.stormpath.com/rest/product-guide/#account-password-strength-policy

0 comments on commit 08fc34c

Please sign in to comment.