Code Monkey home page Code Monkey logo

calendar-joom's Introduction

Calender-joom

Сервис календарь, позволяющий:

  • создавать пользователей
  • создавать встречи
  • Получать детали встречи
  • приглашать пользователей во встречи
  • принимать и отклонять приглашения
  • получать список встреч для пользователя
  • получать ближайшее окно для встречи определенной продолжительности учитывая календари заданных пользователей
  • все встречи поддерживают повторы по формату RRule iCalendar RFC
  • Из дополнительных требований реализован показ деталей встречи только владельцу, если встреча приватная

Запуск

Следующая команда поднимает базу данных(postgresql) в докер-контейнере и запускает приложение

Миграция запускается самим приложением

make

Запуск линтера:

make lint

Запуск тестов:

make test

Описание http api

##CreateUser

curl --location --request POST 'localhost:8080/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"login" : "login3",
"first_name": "name",
"last_name": "lastname"
}'

##GetUserEvents

curl --location --request GET 'localhost:8080/users/3/events/?from=2021-10-09T20:43:00Z&to=2023-10-09T20:43:00Z'

##CreateEvent

curl --location --request POST 'localhost:8080/events' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "event_name",
    "author": 3,
    "repeatable": true,
    "repeat_options": "DTSTART;TZID=Europe/Moscow:20221009T220000\nFREQ=HOURLY;INTERVAL=1;COUNT=10",
    "begin_time": "2022-10-09T20:43:00+00:00",
    "end_time":   "2022-10-09T20:44:00+00:00",
    "is_private": false,
    "details": "details of the meeting",
    "invited_users": [1]
}'

##GetEvent

curl --location --request GET 'localhost:8080/events/1?user_id=2'

##RespondOnEvent

curl --location --request GET 'localhost:8080/events/5/respond?user_id=3&accept=true'

##FindWindowForEvent

curl --location --request POST 'localhost:8080/events/window_by_users' \
--header 'Content-Type: application/json' \
--data-raw '{
    "users_ids": [1],
    "duration": 3
}'

calendar-joom's People

Watchers

Vladimir Buchenkov 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.