Exercise 3: Working with REST APIs
Let’s test our understanding by attempting this challenge.
We'll cover the following
Let’s practice what we’ve learned so far. The solution to this exercise will be provided in the next lesson.
Problem
Change the restdb
package (restdb.go
) to support MySQL instead of PostgreSQL. Additionally, ensure that the create_db.sql
and useRestdb.go
files are adjusted accordingly. Subsequently, run the provided useRestdb.go
code within the playground environment.
Following are the commands required to execute the useRestdb.go
code once updated to support MySQL:
To start the MySQL service:
Get hands-on with 1400+ tech skills courses.