Consuming RESTful APIs in Golang
1h 40mIntermediate2024-05-31
Authors

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
0. Introduction
- 01 - Golang and consuming RESTful APIs
1. Understanding RESTful APIs
- 02 - Introduction to RESTful APIs
- 03 - Introduction to the Golang native HTTP client
2. Making HTTP Requests in Golang
- 04 - Making GET requests
- 05 - Making POST, PUT, and PATCH requests
- 06 - Handling request bodies and headers
3. Handling API Responses
- 07 - Parsing JSON responses
- 08 - Error handling
4. Security, Authentication, and Authorization
- 09 - Basic authentication
- 10 - Token-based authentication
- 11 - Handling sensitive data
- 12 - SSL TLS considerations
5. Advanced Topics
- 13 - Concurrency in API requests
- 14 - Rate limiting and throttling
- 15 - Optimizing API requests
6. Testing
- 16 - Unit testing API calls
- 17 - Mocking REST APIs for testing
Conclusion
- 18 - Go HTTP client tips
- 19 - Final thoughts and recommendations