learn hapi — Customize Your Swagger API Documentation URL

Your initial API documentation for Futureflix uses hapi-swagger to generate an endpoint overview from your project configuration.

By default, hapi-swagger registers the /documentation route. If you want another path, like /docs, you can customize it. You’ll do that in a minute 😉

Besides the API documentation URL, you can tell hapi-swagger to use a specific base URL. This is useful to send requests from the docs against your API. You probably want different URLs in production and development.

hapi Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.