Skip to content

Commit

Permalink
Document category colors
Browse files Browse the repository at this point in the history
  • Loading branch information
packagethief committed Aug 20, 2012
1 parent e8f8be3 commit 0c46f2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sections/categories.md
Expand Up @@ -17,6 +17,7 @@ Get category
<#{type}-category> <#{type}-category>
<id type="integer"></id> <id type="integer"></id>
<name></name> <name></name>
<color></color>
<account-id type="integer"></account-id> <account-id type="integer"></account-id>
<created-at type="datetime"></created-at> <created-at type="datetime"></created-at>
<updated-at type="datetime"></updated-at> <updated-at type="datetime"></updated-at>
Expand Down Expand Up @@ -52,9 +53,12 @@ Create category
``` xml ``` xml
<#{type}-category> <#{type}-category>
<name>#{name}</name> <name>#{name}</name>
<color>#{hex-color}</color>
</#{type}-category> </#{type}-category>
``` ```


Color should be a [web color in hexadecimal format](http://en.wikipedia.org/wiki/Web_colors), e.g., ffcc33.

**Response:** **Response:**


Status: 201 Created Status: 201 Created
Expand Down

0 comments on commit 0c46f2b

Please sign in to comment.