© Kanika Sud 2020
K. SudPractical hapihttps://doi.org/10.1007/978-1-4842-5805-7_1

1. Understanding REST APIs

Kanika Sud1 
(1)
Kanika, Chandigarh, India
 

This chapter throws light on building representational state transfer (REST)-based services. Since we’ll be learning RESTful Web Services through our chosen language, Node.js, and using an awesome framework like hapi, it’s first necessary to introduce ourselves to REST APIs and then understand how hapi makes the process easy. Along the ride, we’ll learn about HTTP verbs, resource handling, stateless constraints, and tying it all into representational state transfer.

First Steps

If you really need to know why we’re all talking about APIs in the early twenty-first century, you need to understand that while ...

Get Practical hapi: Build Your Own hapi Apps and Learn from Industry Case Studies 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.