Skip to content

potomak/scotty-format

Repository files navigation

scotty-format

scotty-format is a helper for the Scotty web framework that helps you defining different response formats based on the request's Accept header value.

The functional inspiration for this helper comes from how Rails handles different response formats. In Rails you can implement any action to respond with different formats based on a request Accept header value.

Inspiration for the implementation of this helper comes from scotty-resource, another helper for Scotty that lets you define REST resources easily by following HTTP strictly.

Usage example

Checkout the examples directory.

About

Response format helper for the Scotty web framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •