Skip to content

Commit

Permalink
chore(docs): update api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilome committed Oct 15, 2018
1 parent beab7ab commit 3b90008
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Sign up and place orders for tasty **fast food** and get it **fast**.
"name": "User's name",
"email": "User's valid email",
"password": "A password longer than 6 chars",
"confirmPassWord": "The above password, again"
"confirmPassWord": "The above password, again",
"adminSecret": "secret key for signing up admins [optional]"
}

+ Response 201 (application/json)
Expand All @@ -24,11 +25,10 @@ Sign up and place orders for tasty **fast food** and get it **fast**.

{
"status": "success",
"message": "user created successfully",
"message": "user logged in successfully",
"user": {
"id": <id>
"name": "<name>"
"email": "<email>"
"auth_token": "generated auth token"
}
}

Expand All @@ -48,7 +48,10 @@ Sign up and place orders for tasty **fast food** and get it **fast**.
{
"status": "success",
"message": "user logged in successfully",
"auth_token": "valid jwt generated"
"user": {
"id": <id>
"auth_token": "generated auth token"
}
}

## Orders [/orders]
Expand Down

0 comments on commit 3b90008

Please sign in to comment.