Commit 705e9f402ed4601e502e51b46a181e3701490321
1 parent
82508117
Exists in
master
and in
4 other branches
#1585 Api for user creation: create help
Showing
1 changed file
with
21 additions
and
0 deletions
Show diff stats
doc/api/users.md
| @@ -65,6 +65,27 @@ Parameters: | @@ -65,6 +65,27 @@ Parameters: | ||
| 65 | } | 65 | } |
| 66 | ``` | 66 | ``` |
| 67 | 67 | ||
| 68 | +## User creation | ||
| 69 | +Create user. Available only for admin | ||
| 70 | + | ||
| 71 | +``` | ||
| 72 | +POST /users | ||
| 73 | +``` | ||
| 74 | + | ||
| 75 | +Parameters: | ||
| 76 | ++ `email` (required) - Email | ||
| 77 | ++ `name` (required) - Name | ||
| 78 | ++ `password` (required) - Password | ||
| 79 | ++ `password_confirmation` (required) - Password confirmation | ||
| 80 | ++ `skype` - Skype ID | ||
| 81 | ++ `linkedin` (required) - Linkedin | ||
| 82 | ++ `twitter` - Twitter account | ||
| 83 | ++ `projects_limit` - Limit projects wich user can create | ||
| 84 | + | ||
| 85 | + | ||
| 86 | +Will return created user with status `201 Created` on success, or `404 Not | ||
| 87 | +found` on fail. | ||
| 88 | + | ||
| 68 | ## Current user | 89 | ## Current user |
| 69 | 90 | ||
| 70 | Get currently authenticated user. | 91 | Get currently authenticated user. |