Barebones meeting scheduling API. Schedule Meetings with participants
Documentation
Postman Link: https://documenter.getpostman.com/view/8269592/TVRrX5q4
End-point: Get all Meetings within a given timeframe
Method: GET
http://localhost:8080/meetings?start=2006-01-02T15:04:05Z&end=2006-02-02T15:04:05Z
Query Params
Param |
value |
start |
2006-01-02T15:04:05Z |
end |
2006-02-02T15:04:05Z |
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
End-point: Create a Meeting
Description:
Method: POST
http://localhost:8080/meetings
Body (raw)
{
"title": "Sample Meeting",
"participants": [
{
"name": "abc",
"email": "abc@def.com",
"rsvp": "Yes"
}
],
"start_time": "2019-10-18T10:44:56Z",
"end_time": "2019-10-18T12:51:56Z"
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
End-point: Get Single Meeting
Description:
Method: GET
http://localhost:8080/meeting/3142D8E8-01A6-14E7-D3F8-0CE0AF0247EK
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
End-point: Get all Meetings for a participant
Description:
Method: GET
http://localhost:8080/meetings?participant=abc@def.com
Query Params
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Development Setup
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
License
MIT