11 Breaking barriers with custom APIs and webhooks

This chapter covers

  • Creating custom API endpoints and hosting them as cloud functions
  • Creating and calling APIs to extend Hugo’s core functionality
  • Adding compile-time LaTeX
  • Hooking up webhooks with APIs to automate manual tasks

APIs are marvelous. We can encapsulate the most complicated functionality behind an easy-to-use API, and its users don’t need to know the logic or the details of how an API works. Chapter 9 went over some APIs provided by third parties, which worked for us. But it is not always possible to get APIs for everything we need. Some functionality might be particular to our website or be our secret sauce. We need to write this ourselves. The Jamstack identifies that as a valid ...

Get Hugo in Action 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.