Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


Retrofit 2 — Pagination Using Query Parameter

Requesting data from API endpoints that might respond with large datasets is obviously bad practice. Breaking down massive information packets into smaller chunks is the idea behind pagination. There’s no de facto standard on how to implement pagination on server-side and therefore, clients have to adapt to the solution …

Continue Reading

Retrofit — How to Refresh an Access Token

When working with OAuth 2 APIs, you have to manage access tokens and sometimes also refresh tokens. Generally, the access token is what you’ll use to authenticate your requests. However, the access tokens are short lived and the lifetime differs per API provider. Due to security reasons, the access …

Continue Reading

hapi — How to Set Response Status Code

Within previous tutorials throughout this hapi series, you’ve seen a lot functionality related to the server itself, requests and authentication. This guide is the first one geared towards responses and precisely shows you how to set the response status code that follows the RFC. Before diving into the details, …

Continue Reading

hapi — Request Payload Validation With Joi

Within last week’s tutorial you’ve learned how to access the request payload in hapi. Because you should never, ever trust provided data submitted by users, a common process is to validate the request payload against a given rule set. hapi streamlines this procedure and integrates a validation process …

Continue Reading

hapi — Multi-Segment/Wildcard Path Parameters

Last week’s tutorial on hapi walked you through optional path parameters and showed you how to specify routes leveraging optional parameters in their path. Within this week’s guide you’ll learn about route definitions using wildcard path parameters to match routes with multiple segments. Before diving into the …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.