Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl Rowland committed Sep 2, 2014
1 parent 0fe93cb commit 30348a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ Haypeaeye provides some utility methods for returning standard responses from yo
```
haypeaeye.unauthorisedResponse(res, message);
```

Note: you can also provide field level errors in your error response. To do this, ensure your err object is in the following format:

```
err = {message: "There was a pretty nasty error", fieldErrors: [field: "first_name", message: "You forgot your name"]}
```


### Accessing API Docs
haypeaeye will automatically generate API documentation for you in HTML (and JSON) format. To access the HTML docs go to the following URL on your server:
Expand Down

0 comments on commit 30348a4

Please sign in to comment.