O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

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

Rest API endpoints

The Rest API endpoints on the server side are pretty handy. They are the means to provide the client-side web application with data, behind the scenes, and we apply this data to the respective template to display the page content without having the need to do a full page reload.

Now, we'll consider what goes in to creating these Rest API endpoints. We will first have to register routes for them on the server side. We will follow the same procedure that we did at the beginning of this chapter for the product listing page and the product detail page. The only difference is that our handler functions will be found in the endpoints package as opposed to being in the handlers package. The fundamental difference here is that ...

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