Consuming RESTful APIs in Golang

Consuming RESTful APIs in Golang

1h 40mIntermediate2024-05-31

Authors

Michael Okuboyejo

Michael Okuboyejo

Course details

RESTful APIs are widely used and consumed in the world of software engineering and the most popular means of communication between microservices. In this course, software engineer Michael Okuboyejo equips you with the essential skills to proficiently interact with RESTful APIs using Golang's native HTTP client. Explore how to create HTTP requests for the different request methods. Learn about authentication, response handling, and advanced topics like concurrency and proper unit testing. By the end of this course, you will not only enhance your Golang proficiency but also be able to build robust REST API integrations.

Skills covered

GoAPIsFull-Stack Web DevelopmentGoogleWeb DevelopmentProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Golang and consuming RESTful APIs

Understanding RESTful APIs

  • Introduction to RESTful APIs
  • Introduction to the Golang native HTTP client

Making HTTP Requests in Golang

  • Making GET requests
  • Making POST, PUT, and PATCH requests
  • Handling request bodies and headers

Handling API Responses

  • Parsing JSON responses
  • Error handling

Security, Authentication, and Authorization

  • Basic authentication
  • Token-based authentication
  • Handling sensitive data
  • SSL TLS considerations

Advanced Topics

  • Concurrency in API requests
  • Rate limiting and throttling
  • Optimizing API requests

Testing

  • Unit testing API calls
  • Mocking REST APIs for testing

Conclusion

  • Go HTTP client tips
  • Final thoughts and recommendations
40,000 Toman