command
module
Version:
v0.0.0-...-b4b764b
Opens a new window with list of versions in this module.
Published: Nov 16, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gorest
gorest is a one stop center for all venues for all types events
Installation.
Should have Go and Postgres installed
Clone the repository.
git clone https://github.com/priawadi/gorest.git
Environment variables
Create a database and create a .env
from the .env-sample
and replace its values with the actual values.
Running application
Change directory into gorest then
$ go run main.go
API endpoint can be accessed. Via http://localhost:5000/
Endpoints
Request |
Endpoints |
Functionality |
POST |
/register |
User Signup ( firstname, lastname, email, password) |
POST |
/login |
User Login ( email, password) |
POST |
/api/venues |
Add Venue ( name, description, location, capacity, category) |
GET |
/api/venues |
View Venues |
GET |
/api/venues/id |
View Venue |
PUT |
/api/venues/id |
Update Venue ( name, description, location, capacity, category) |
DELETE |
/api/venues/id |
Delete Venue |
Running tests
$ go test ./...
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
api
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.