Categorygithub.com/TheCacophonyProject/go-api
repositorypackage
1.2.3
Repository: https://github.com/thecacophonyproject/go-api.git
Documentation: pkg.go.dev

# README

go-api

Client for the Cacophony API server.

Test Setup

To run the tests you need to setup a cacophony-api instance and add some entries to the SQL DB

  • Follow setup the instructions at Cacophony API server
  • Copy SQL file to API docker container sudo docker cp db-test-seed.sql cacophony-api:/db-seed.sql
  • Run SQL file sudo docker exec cacophony-api sh -c "sudo -i -u postgres psql cacophonytest -f/db-seed.sql"