play.api.rest.ResourceHandler.scala Maven / Gradle / Ivy
package play.api.rest
/**
* @author Karel Cemus
*/
trait ResourceHandler[Resource, Result] {
def handleList: Result
def handleGet: Res[Resource] => Result
def handlePost: Result
def handlePut: Res[Resource] => Result
def handlePatch: Res[Resource] => Result
def handleDelete: Res[Resource] => Result
def handleHead: Res[Resource] => Result
def handleOptions: Res[Resource] => Result
def load(id: Long)(implicit context: Context): Either[Error, Resource]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy