Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jun 22, 2017
1 parent 88d5d56 commit 1032376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ For example, if the key `user_id` was found, it would be mapped to `/users/:id`

Tensō will bend the rules of REST when using authentication strategies provided by passport.js, or CSRF if is enabled, because they rely on a session. Session storage is in memory, or Redis. You have the option of a stateless or stateful API.

## Browsable API / Renderers
## Browsable API / Renderers / Serializers
Tensō 1.4.0 added a few common format renderers, such as CSV, HTML, YAML, & XML. The HTML interface is a browsable API! You can use it to verify requests & responses, or simply poke around your API to see how it behaves.

Custom renderers can be registered with `server.renderer('mimetype', fn);`.
Custom renderers can be registered with `server.renderer('mimetype', fn);`, and custom serializes can be registered with `server.serializer('mimetype', fn);`.

## Cache
ETags are built in! Caching can be disabled by setting the `cache-control` header to a "private" or "no cache" directive (see the above `/uuid` example).
Expand Down

0 comments on commit 1032376

Please sign in to comment.