Setting up Go Environment:
git clone https://github.com/Mjacks3/OS_Proj_1.git
cd OS_Proj_1
go get github.com/gorilla/mux
go get github.com/go-sql-driver/mysql
Setting up MySQL database:
sudo apt-get install mysql-server
sudo systemctl start mysql
sudo mysql -u root < init.sql
go run proj1.go
CREATE: curl --header "Content-Type: application/json" --request POST --data '[json data]' 127.0.0.1:8000/site/
READ: curl 127.0.0.1:8000/site/[site_name]/
DELETE: curl -X "DELETE" 127.0.0.1:8000/site/[site_name]/
UPDATE: curl -X "PUT" -H "Content-Type: application/json" -d '[json data]' 127.0.0.1:8000/site/[site_name]/
CREATE: curl --header "Content-Type: application/json" --request POST --data '[json data]' 127.0.0.1:8000/site/[site_name]/ap/
READ: curl 127.0.0.1:8000/ap/[ap_name]/
DELETE: curl -X "DELETE" 127.0.0.1:8000/ap/[ap_name]/
UPDATE: curl -X "PUT" -H "Content-Type: application/json" -d '[json data]' 127.0.0.1:8000/ap/[ap_name]/