-
Notifications
You must be signed in to change notification settings - Fork 16
Users API
Euen edited this page Sep 22, 2014
·
2 revisions
Create a new User by providing a username
.
A 409
status code will be returned in the following cases:
-
username
already exist.
POST /users
Input
Name | Type | Description |
---|---|---|
username | string | Required Unique. Name of the player. |
Headers:
content-type: application/json
Body:
{ "username":"Juan" }
Response
Status:
200
Body:
{ "id":1 "username":"Juan" "pass":"0d7d0c0c422f6df6" "created_at":"2014-09-22 16:13:54" "updated_at":"2014-09-22 16:13:54" }