All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skinny.controller.SkinnyApiResource.scala Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package skinny.controller

import skinny.micro.implicits.{ TypeConverter, TypeConverters }

/**
 * Skinny resource is a DRY module to implement ROA(Resource-oriented architecture) apps.
 * SkinnyApiResource is surely inspired by Rails ActiveSupport.
 */
trait SkinnyApiResource extends SkinnyApiResourceWithId[Long] {

  implicit override val skinnyMicroParamsIdTypeConverter: TypeConverter[String, Long] = TypeConverters.stringToLong
}

trait SkinnyApiResourceWithId[Id]
  extends SkinnyApiController
  with SkinnyApiResourceActions[Id]
  with SkinnyApiResourceRoutes[Id]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy