Chapter 4. Defining the application’s HTTP interface

This chapter covers

  • Defining the URLs that the web application responds to
  • Mapping HTTP requests to Scala methods for defined URLs
  • Mapping HTTP request data to type-safe Scala objects
  • Validating HTTP form data
  • Returning a response to the HTTP client

This chapter is all about controllers, at least from an architectural perspective. From a more practical point of view, this chapter is about your application’s URLs and the data that the application receives and sends over HTTP.

In this chapter, we’re going to talk about designing and building a web-based product catalog for various kinds of paperclips that allows you to view and edit information about the many different kinds of paperclips ...

Get Play for Scala now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.