Package

org.coursera.naptime

actions

Permalink

package actions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. actions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ActionRestActionCategory = ActionRestActionCategory.type

    Permalink

    Allows arbitrary context-specific actions.

  2. sealed trait BasicRestActionCategory extends RestActionCategory

    Permalink

    Marker type for the framework-defined APIs.

  3. type CreateRestActionCategory = CreateRestActionCategory.type

    Permalink
  4. type DeleteRestActionCategory = DeleteRestActionCategory.type

    Permalink
  5. type FinderRestActionCategory = FinderRestActionCategory.type

    Permalink

    Allows search and other finder-type methods.

  6. type GetAllRestActionCategory = GetAllRestActionCategory.type

    Permalink
  7. type GetRestActionCategory = GetRestActionCategory.type

    Permalink
  8. type MultiGetRestActionCategory = MultiGetRestActionCategory.type

    Permalink
  9. trait NaptimeActionSerializer[T] extends AnyRef

    Permalink

    Actions have far fewer restrictions on the response type than other actions.

    Actions have far fewer restrictions on the response type than other actions. We thus define a looser serializer API (as compared to NaptimeSerializer.

  10. trait NaptimeSerializer[T] extends AnyRef

    Permalink

    Abstracts over the Play-JSON API and the Courier underlying record template support for serialization, allowing us to convert Play-JSON into Pegasus DataMaps.

  11. type PatchRestActionCategory = PatchRestActionCategory.type

    Permalink
  12. trait PlayJsonRestActionCategoryEngine extends AnyRef

    Permalink

    Define the mappings between category engines.

    Define the mappings between category engines.

    TODO: consider moving these to be defined in the same trait that defines the resource. (e.g. the org.coursera.naptime.resources.CollectionResource.) By moving the engines to the trait, this would allow for different resources to have different engines available. That said, this must all be sealed to disallow further 'customization'.

  13. trait RestAction[RACType, AuthType, BodyType, KeyType, ResourceType, ResponseType] extends EssentialAction with RequestTaggingHandler

    Permalink

    A RestAction is a layer on top of Play! with additional type information

    A RestAction is a layer on top of Play! with additional type information

    This type information is used to help enforce conventions, DRY things out, and support some additional features.

    Type parameters: RACType - The rest action type. This is typically a subclass of RestActionCategory AuthType - The authentication return type. BodyType - The HTTP request body is parsed to this type for use in the handler. KeyType - The key type of the model being processed. ResourceType - This is the resource type this action is supposed to handle. ResponseType - This is the response type this action is supposed to return (e.g. Seq of ResourceType)

    TODO(saeta): Enforce RACType extends from RestActionCategory.

  14. class RestActionBodyBuilder[RACType, AuthType, BodyType, ResourceKeyType, ResourceType, ResponseType] extends AnyRef

    Permalink

    Helper class to control the creation of the rest action using either an asynchronous or a synchronous function.

    Helper class to control the creation of the rest action using either an asynchronous or a synchronous function. Use either the apply function or the async function to create a RestAction which can then handle requests.

  15. class RestActionBuilder[RACType, AuthType, BodyType, ResourceKeyType, ResourceType, ResponseType] extends AnyRef

    Permalink

    A builder that helps build Rest Actions.

  16. sealed trait RestActionCategory extends AnyRef

    Permalink

    Defines the allowed types of API endpoints.

    Defines the allowed types of API endpoints.

    This should not be extended outside the framework, and is thus sealed.

  17. trait RestActionCategoryEngine[Category, Key, Resource, Response] extends AnyRef

    Permalink

    Maps a high-level REST response to a low-level HTTP response.

    Maps a high-level REST response to a low-level HTTP response.

    Annotations
    @implicitNotFound( ... )
  18. trait RestActionCategoryEngine2[Category, Key, Resource, Response] extends RestActionCategoryEngine[Category, Key, Resource, Response]

    Permalink
  19. trait RestActionCategoryEngine2Impls extends AnyRef

    Permalink

    2nd generation engines with Pegasus DataMaps at the core.

    2nd generation engines with Pegasus DataMaps at the core. To use, import them at the top of your file.

  20. type UpdateRestActionCategory = UpdateRestActionCategory.type

    Permalink

Value Members

  1. object ActionRestActionCategory extends RestActionCategory with Product with Serializable

    Permalink
  2. object CreateRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  3. object DeleteRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  4. object FinderRestActionCategory extends RestActionCategory with Product with Serializable

    Permalink
  5. object GetAllRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  6. object GetRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  7. object MultiGetRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  8. object NaptimeActionSerializer

    Permalink
  9. object NaptimeSerializer

    Permalink
  10. object PatchRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  11. object PlayJsonRestActionCategoryEngine extends PlayJsonRestActionCategoryEngine

    Permalink
  12. object RestActionCategoryEngine extends RestActionCategoryEngine2Impls

    Permalink
  13. object RestActionCategoryEngine2 extends RestActionCategoryEngine2Impls

    Permalink
  14. object UpdateRestActionCategory extends BasicRestActionCategory with Product with Serializable

    Permalink
  15. package util

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped