O'Reilly logo

FuelPHP Application Development Blueprints by Sébastien Drouyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Building Your Own Restful API

In this chapter, we will create our own microblogging application similar to Twitter. The social component will be fairly simple: users will post on their walls messages containing up to 140 characters. The real input of this chapter will reside in setting up a JSON API that can be accessed by external applications and adding automated tests that will allow you to track regressions. In order to limit the amount of data exchanged, we will make our application use this API as often as possible.

By the end of the chapter, you should know:

  • How to create a signup form
  • How to implement a JSON API without duplicating any code
  • What is the Parser package
  • What are language-agnostic template systems and why use such systems ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required