O'Reilly logo

Dart: Scalable Application Development by Ivo Balbaert, Sergey Akopkokhyants, Davy Mitchell

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

Creating the web service

Now that the data collection and storage has been re-factored, it is time to build a web service. In some ways, this is similar to the blog server we created previously. However, we want to be ambitious, and so will plan for future development by starting to build a web API for our data.

The REST architecture style is very popular as it is well suited to JSON and being consumed by client web applications.

Note

REST is an architecture style for web services that has gained acceptance as a less complex alternative to WSDL and SOAP.

REST builds on HTTP and uses the verbs GET, POST, PUT, and DELETE. It can use any Internet format as a data type (XML, images, and so on), but usually uses JSON.

There is no agreed standard for RESTful ...

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