api: Return 'user_id' in 'POST /users' response.

This adds 'user_id' to the simple success response for 'POST /users'
api endpoint, to make it convenient for API clients to get details
about users they just created.  Appropriate changes have been made in
the docs and test_users.py.

Fixes #16072.
This commit is contained in:
Kartik Srivastava
2020-08-12 02:31:01 +05:30
committed by Tim Abbott
parent 8393f64120
commit 63173d5554
7 changed files with 23 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ DESKTOP_WARNING_VERSION = "5.2.0"
#
# Changes should be accompanied by documentation explaining what the
# new level means in templates/zerver/api/changelog.md.
API_FEATURE_LEVEL = 27
API_FEATURE_LEVEL = 30
# Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump