DATABASE_URL
- PostgreSQL URLAPI_URL
- API URL for GET request to /info routeSERVER_IP
- ListenAndServe server IPPORT
- ListenAndServe server port
Test are in database_test.go, services_test.go and handlers_test.go.
80%+ coverage.
Documentation in docs.go, swagger.json and swagger.yaml.
- /getdata - get data with filtered by all fields and pagination (pagination with 1-indexing, filtering by exact match of fields)
- /getsongtext - get the lyrics of the song with pagination by verses (pagination with 1-indexing, verses are divided by \n\n)
- /deletesong - delete song
- /editsong - edit song lyrics
- /addsong - add new song
You can build server using a Dockerfile and run server and PostgreSQL database using а docker-compose docker-compose.yml.