This is a simple REST API built with Go, following the tutorial at https://dev.to/aurelievache/learning-go-by-examples-part-2-create-an-http-rest-api-server-in-go-1cdm.
- Go 1.16 or later
- Clone the repository:
-
Change into the directory:
-
Run the application:
go run internal/main.go
- Test the API by sending requests to the following endpoints:
GET /healthz
: Returns a 200 OK status if the server is running.GET /hello/{name}
: Returns a personalized greeting for the specified name.GET /gopher/{name}
: Returns an image of a gopher with the specified name.