Building RESTful APIs with Go

Building RESTful APIs with Go

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 02m | 518 MB

Create and troubleshoot robust and secure RESTful APIs with Go, Echo, and JWE

REST is an architectural style that tackles the challenges of building scalable web services. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs. The depth, breadth, and ease of use of Go, make it a breeze for developers to work with it to build robust Web APIs. This course will teach you to build a RESTful web server. You will learn to add routing and handle requests, thus making your APIs more RESTful. Later, by testing and profiling your code you will ensure it runs correctly and behaves well at scale. Moving on with security, you will learn to log requests and outcomes of API calls and speed up performance using the Echo framework. By the end of this course, you will have the knowledge you need to start building your own enterprise-grade RESTful web services that are production-ready, secure, scalable, and reliable.

This course guides developers along a path which provides a practical way of learning concepts, giving you the chance to explore more advanced programming techniques that will help you build feature-rich applications. You will go more deeply into concepts such as HTTP services, reactive Forms, unit testing, and animations and finally deploy your application with Firebase.

What You Will Learn

  • Build and test robust RESTful APIs using Go.
  • Integrate modern databases with your web services
  • Secure access to your API with auth and traffic with JSON web encryption.
  • Test and profile your code.
  • Track the proper execution of your code with logs.
  • Creating a client library for your API that other developers can consume.
  • Select and use modern API frameworks such as Echo.
Table of Contents

RESTFUL API IN GO – WHY?
The Course Overview
Useful Tools
Why Go?

YOUR FIRST API SERVER
Building an API Web Server
Creating the Default Route
Creating the Default Handler
Custom Error Message
Using Postman to Test API

MAKING YOUR API RESTFUL
Outlining the API
Setting Up a Data Store
Record Manipulation
Creating a Custom Handler
Retrieving a List (GET)
Creating an Item (POST)
Retrieving an Item (GET)
Replacing an Item (PUT)
Updating an Item (PATCH)
Removing an Item (DELETE)
Retrieving Headers (HEAD)
Retrieving Options (OPTIONS)

TESTING AND PROFILING
Why Are Tests Important?
An Ideal Unit Test
A Minimum Viable Unit Test
Benchmarking
Caching
Creating a Custom Writer
Mocking for Unit Tests
Benchmarking Cached Code

FRAMEWORKS AND MIDDLEWARE
Echo Framework
First Steps in Echo
Recreating Our API in Echo
Middleware
Summary