Add username to User and UserBasic entities in API and in examples in doc.

This commit is contained in:
Cyril 2012-12-10 23:46:31 +01:00
parent b48852e789
commit d3b8952f8f
8 changed files with 28 additions and 2 deletions

View file

@ -10,6 +10,7 @@ GET /users
[
{
"id": 1,
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@ -23,6 +24,7 @@ GET /users
},
{
"id": 2,
"username": "jack_smith",
"email": "jack@example.com",
"name": "Jack Smith",
"blocked": false,
@ -52,6 +54,7 @@ Parameters:
```json
{
"id": 1,
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@ -75,6 +78,7 @@ POST /users
Parameters:
+ `email` (required) - Email
+ `password` (required) - Password
+ `username` (required) - Username
+ `name` (required) - Name
+ `skype` - Skype ID
+ `linkedin` - Linkedin
@ -95,6 +99,7 @@ GET /user
```json
{
"id": 1,
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,