Barebones meeting scheduling API. Schedule Meetings with participants
Postman Link: https://documenter.getpostman.com/view/8269592/TVRrX5q4
Method: GET
http://localhost:8080/meetings?start=2006-01-02T15:04:05Z&end=2006-02-02T15:04:05Z
Param | value |
---|---|
start | 2006-01-02T15:04:05Z |
end | 2006-02-02T15:04:05Z |
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Method: POST
http://localhost:8080/meetings
{
"title": "Sample Meeting",
"participants": [
{
"name": "abc",
"email": "[email protected]",
"rsvp": "Yes"
}
],
"start_time": "2019-10-18T10:44:56Z",
"end_time": "2019-10-18T12:51:56Z"
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Method: GET
http://localhost:8080/meeting/3142D8E8-01A6-14E7-D3F8-0CE0AF0247EK
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Method: GET
http://localhost:8080/[email protected]
Param | value |
---|---|
participant | [email protected] |
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Note: This setup uses go1.15.x, older versions may not use .mod files so be careful
Installing the dependencies in vendor
go mod vendor
Now, you can use the bash script to run all these at once
./runner.sh
OR, run the commands individually,
Build the project to get the executable
go build -o build/ .
Run Tests for the project
go test ./controllers
Run the project directly without build
go run main.go
MIT