A trait that can be mixed into an class (probably a case class) so that the class can be converted automatically into JSON or XML
This trait is part of the ADT that allows the choice between
Do some magic to prefix path patterns with a single List
Mix this trait into a class to provide a list of REST helper methods
Mix this trait into your REST service provider to convert between different response types and a LiftResponse.
The Type for JSON
Provides a generic way of sending asynchronous response to HTTP clients.
Provides a generic way of sending asynchronous response to HTTP clients. If the underlying web container does not support continuations the asynchronous nature is achieved using locks.
The type for XML
Mix this trait into your REST service provider to convert between different response types and a LiftResponse. You need to define the createTag method to provide a root element for your API. You may optionally override the successAttrName, operationAttrName, and/or msgAttrName defs to control the attributes that will be applied to your root element based on the return from your API.
For example, the following code implements a simple API that takes a comma- separated string of integers and reduces them with various operations.
With this API, the URL
would returnhttp://foo.com/api/sum?args=1,2,3,4,5 return