REST API using Gorilla-mux in GO
-
Clone the git repo -
git clone git@github.com:golang-mitrah/Gorilla-mux-RestAPI-postgres.git
-
Use
database/db_script.sql
file to crete a SQL table needed in your PostGres server for this demo project -
Change database connection details in
database/database.go
file's line #27
var dbname, username, password, host, port = "DB_XX", "USER_XX", "PWD_XX", "localhost", "5432"
-
Run below in your project path
go get . go run .
-
Use the
Gorilla_mux_RestAPI_postgres.postman_collection.json
to import the API request into your PostMan tool to try out the API endpoints available
REST API using Gorilla MUX Router is authored by GoLang Mitrah and everyone is welcome to contribute.
If you experience any problems with REST API using Gorilla MUX please:
- submit a ticket to our issue tracker
- fix the error yourself and send us a pull request