Giter Club home page Giter Club logo

calendar's Introduction

Calendar

Test

make test

Usage

make build
make run

# create users
curl -X POST http://127.0.0.1:8080/api/users -d '{"login": "bob"}' -H "Content-Type: application/json"
curl -X POST http://127.0.0.1:8080/api/users -d '{"login": "alice"}' -H "Content-Type: application/json"

# create meetings
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T16:20:00.000Z","endTime": "2023-03-07T16:40:00.000Z","reoccurance": 1,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T17:00:00.000Z","endTime": "2023-03-07T17:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-07T20:00:00.000Z","endTime": "2023-03-07T20:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"
data='{"owner": "bob", "invited": [{"invitee": "alice"}], "startTime": "2023-03-09T17:00:00.000Z","endTime": "2023-03-09T17:30:00.000Z","reoccurance": 0,"description": "blabla"}'
curl -X POST http://127.0.0.1:8080/api/meetings -d $data -H "Content-Type: application/json"

# list meetings
curl 'http://127.0.0.1:8080/api/users/alice/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T19:00:00.000Z'
curl 'http://127.0.0.1:8080/api/users/bob/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T19:00:00.000Z'
curl 'http://127.0.0.1:8080/api/users/bob/meetings?startTime=2023-03-07T16:00:00.000Z&endTime=2023-03-07T20:10:00.000Z'
curl 'http://127.0.0.1:8080/api/users/alice/meetings?startTime=2023-03-08T16:00:00.000Z&endTime=2023-03-11T19:00:00.000Z'

# find slot
curl 'http://127.0.0.1:8080/api/findSlot?startTime=2023-03-07T15:50:00.000Z&durationMinutes=30&logins=bob,alice'
curl 'http://127.0.0.1:8080/api/findSlot?startTime=2023-03-07T15:51:00.000Z&durationMinutes=30&logins=bob,alice'


# accept/decline invitation
curl -X POST http://127.0.0.1:8080/api/acceptMeeting -d '{"meetingId": "640a4862377457548608f50a", "decline": true, "login": "alice"}' -H "Content-Type: application/json"

make clean

calendar's People

Contributors

vladem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.