Chapter 12. Exposing your app to other programs

This chapter covers

  • Implementing RESTful services in Grails
  • Applying authentication to API calls
  • Exporting services to remote clients

Now that you’ve added access control to Hubbub, your application is ready for the big, bad world. Your users can start conversations and kick off a big hubbub. Does that mean there’s nothing more to add? No. An important feature of web applications these days is an API.

Do you ever wonder why Twitter and Facebook became so popular? Sure, people like socializing, and people gravitate to where everyone else is. But how did they gain critical mass in the first place? By being first to market? Well, Facebook came after MySpace and still managed to supplant it. ...

Get Grails in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.