Using hapi to build APIs is kind of straight forward. By default, hapi allows to reply different types of content. If you’re sending a JavaScript object as a response, hapi will create a valid JSON string out of it.
Additionally, hapi will only return actual values and functions won’t be serialized to JSON.
Find the tutorial for an easy read here: reply JSON in hapi
► https://futurestud.io/tutorials/hapi-...
Watch the video on renderering views in hapi
► • hapi Tutorial — How to Render and Rep...
Watch the video on setting a custom response status code in hapi
► • hapi Tutotrial — How to Set Response ...
Watch the playlist with all hapi videos here:
► • hapi Tutorial — Getting Started and Y...
----------------------------------------
Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week.
Checkout 330+ technical in-depth tutorials:
► https://futurestud.io
Subscribe for two new videos every week:
► https://www.youtube.com/c/FutureStudi...
----------------------------------------
Follow us on social media to get updates on new content:
► / futurestud_io
► / futurestudiouniversity
► https://plus.google.com/+FutureStudio...
----------------------------------------
Watch video hapi Tutorial — How to Reply a JSON Response online without registration, duration hours minute second in high quality. This video was added by user Future Studio 04 August 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,929 once and liked it 25 people.