Documentation

You are viewing the documentation for the 2.3.x release series. The latest stable release series is 3.0.x.

§Play for Scala developers

The Scala API for Play application developers is available in the play.api package.

The API available directly inside the play package (such as play.mvc) is reserved for Java developers. As a Scala developer, look at play.api.mvc.

§Main concepts

  1. HTTP programming
    1. Actions, Controllers and Results
    2. HTTP routing
    3. Manipulating results
    4. Session and Flash scopes
    5. Body parsers
    6. Actions composition
    7. Content negotiation
  2. Asynchronous HTTP programming
    1. Handling asynchronous results
    2. Streaming HTTP responses
    3. Comet sockets
    4. WebSockets
  3. The template engine
    1. Templates syntax
    2. Common use cases
    3. Custom format addition
  4. Form submission and validation
    1. Handling form submission
    2. Protecting against CSRF
    3. Custom Validations
    4. Custom Field Constructors
  5. Working with Json
    1. JSON basics
    2. JSON with HTTP
    3. JSON Reads/Writes/Format Combinators
    4. JSON Transformers
    5. JSON Macro Inception
  6. Working with XML
    1. Handling and serving XML requests
  7. Handling file upload
    1. Direct upload and multipart/form-data
  8. Accessing an SQL database
    1. Configuring and using JDBC
    2. Using Anorm to access your database
    3. Integrating with other database access libraries
  9. Using the Cache
    1. The Play cache API
  10. Calling WebServices
    1. The Play WS API
    2. Connecting to OpenID services
    3. Accessing resources protected by OAuth
  11. Integrating with Akka
    1. Setting up Actors and scheduling asynchronous tasks
  12. Internationalization
    1. Messages externalisation and i18n
  13. The application Global object
    1. Application global settings
    2. Intercepting requests
  14. Testing your application
    1. Testing with ScalaTest
    2. Writing functional tests with ScalaTest
    3. Testing with specs2
    4. Writing functional tests with specs2
  15. Logging
    1. The Logging API

§Advanced topics

  1. Handling data streams reactively
    1. Iteratees
    2. Enumerators
    3. Enumeratees
  2. HTTP Architecture
    1. HTTP API
    2. HTTP Filters
  3. Dependency Injection
    1. Controller Injection
    2. Example Projects
  4. Reverse routing
    1. Javascript Routing
  5. Extending Play
    1. Writing Plugins

Found an error in this documentation? The source code for this page can be found here. After reading the documentation guidelines, please feel free to contribute a pull request. Have questions or advice to share? Go to our community forums to start a conversation with the community.