Skip to content

Commit

Permalink
feat: PUT /session/account with id (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
barretodaniel authored and gr2m committed Oct 2, 2016
1 parent 3e0709a commit 0406f1b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,24 @@ or set account properties or destroy their accounts.

Accept: application/vnd.api+json

+ Attributes (object)
+ data (object, required)
+ type (string, required)
+ attributes (object, required) - may contain the properties below as well as any others that should be included
+ username (string)
+ password (string)
+ id (string) - the server may accept a client-generated id along with the request

+ Body

{
"data": {
"type": "account",
"id": "abc4567"
"attributes": {
"username": "john-doe",
"password": "secret"
"password": "secret",
"createdAt": "2016-10-02T04:07:20.243Z"
}
}
}
Expand Down

0 comments on commit 0406f1b

Please sign in to comment.