- Clone the repository into a local folder.
- Inside quiz-api open a terminal and run main.go to start the API
go run main.go
- After starting the api head to cli folder and start the test with the following command
./cli quiz start
-
GET '/quiz':
Retrieves the quiz questions and choices -
POST '/quiz':
Posts the user answers creating a record for every user.