{"openapi":"3.0.1","info":{"title":"MS SAT Calendar - Aura","description":"Administrative calendar module.Manage events, reminders, participants and visibility.","version":"1.0.0"},"servers":[{"url":"https://securemscalendard.mrdev.mx","description":"Public"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/visibility/{id}":{"put":{"tags":["visibility-controller"],"operationId":"update","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventVisibilityModel"}}}}}},"delete":{"tags":["visibility-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}}},"/api/v1/reminders/{id}":{"put":{"tags":["reminders-controller"],"operationId":"update_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemindersRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventReminderModel"}}}}}},"delete":{"tags":["reminders-controller"],"operationId":"delete_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}}},"/api/v1/participants/{id}":{"put":{"tags":["participants-controller"],"operationId":"update_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventParticipantsModel"}}}}}},"delete":{"tags":["participants-controller"],"operationId":"delete_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}}},"/api/v1/examples/{id}":{"get":{"tags":["example-controller"],"operationId":"findById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseExampleModel"}}}}}},"put":{"tags":["example-controller"],"operationId":"update_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExampleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseExampleModel"}}}}}},"delete":{"tags":["example-controller"],"operationId":"delete_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}}},"/api/v1/events/{id}":{"get":{"tags":["cal-event-controller"],"operationId":"findById_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventResponse"}}}}}},"put":{"tags":["cal-event-controller"],"operationId":"replace","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceCalEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventResponse"}}}}}},"delete":{"tags":["cal-event-controller"],"operationId":"delete_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}},"patch":{"tags":["cal-event-controller"],"operationId":"update_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventResponse"}}}}}}},"/api/v1/event-types/{id}":{"get":{"tags":["cal-event-type-controller"],"operationId":"findById_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventTypeResponse"}}}}}},"put":{"tags":["cal-event-type-controller"],"operationId":"replace_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceCalEventTypeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventTypeResponse"}}}}}},"delete":{"tags":["cal-event-type-controller"],"operationId":"delete_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseVoid"}}}}}},"patch":{"tags":["cal-event-type-controller"],"operationId":"update_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalEventTypeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventTypeResponse"}}}}}}},"/api/v1/visibility":{"get":{"tags":["visibility-controller"],"operationId":"findAll","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventVisibilityModel"}}}}}},"post":{"tags":["visibility-controller"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventVisibilityModel"}}}}}}},"/api/v1/reminders":{"get":{"tags":["reminders-controller"],"operationId":"findAll_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventReminderModel"}}}}}},"post":{"tags":["reminders-controller"],"operationId":"create_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemindersRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventReminderModel"}}}}}}},"/api/v1/participants":{"get":{"tags":["participants-controller"],"operationId":"findAll_2","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventParticipantsModel"}}}}}},"post":{"tags":["participants-controller"],"operationId":"create_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventParticipantsModel"}}}}}}},"/api/v1/examples":{"get":{"tags":["example-controller"],"operationId":"findAll_3","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListExampleModel"}}}}}},"post":{"tags":["example-controller"],"operationId":"create_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExampleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseExampleModel"}}}}}}},"/api/v1/events":{"get":{"tags":["cal-event-controller"],"operationId":"findAll_4","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventResponse"}}}}}},"post":{"tags":["cal-event-controller"],"operationId":"create_4","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCalEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventResponse"}}}}}}},"/api/v1/event-types":{"get":{"tags":["cal-event-type-controller"],"operationId":"findAll_5","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventTypeResponse"}}}}}},"post":{"tags":["cal-event-type-controller"],"operationId":"create_5","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCalEventTypeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCalEventTypeResponse"}}}}}}},"/api/v1/visibility/{event_id}":{"get":{"tags":["visibility-controller"],"operationId":"findByEventId","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventVisibilityModel"}}}}}}},"/api/v1/reminders/{due}":{"get":{"tags":["reminders-controller"],"operationId":"findDue","parameters":[{"name":"due","in":"path","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventReminderModel"}}}}}}},"/api/v1/participants/{userId}":{"get":{"tags":["participants-controller"],"operationId":"findByUserId","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListCalEventParticipantsModel"}}}}}}}},"components":{"schemas":{"VisibilityRequest":{"required":["eventId","isVisible","userId"],"type":"object","properties":{"eventId":{"type":"integer","format":"int32"},"userId":{"type":"integer","format":"int32"},"isVisible":{"type":"boolean"}}},"ApiResponseCalEventVisibilityModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalEventVisibilityModel"}}},"CalEventVisibilityModel":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"eventId":{"type":"integer","format":"int32"},"userId":{"type":"integer","format":"int32"},"isVisible":{"type":"boolean"},"isDeleted":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"RemindersRequest":{"required":["eventId","remindAt"],"type":"object","properties":{"eventId":{"type":"integer","format":"int32"},"remindAt":{"type":"string","format":"date-time"},"sent":{"type":"boolean"}}},"ApiResponseCalEventReminderModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalEventReminderModel"}}},"CalEventReminderModel":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"eventId":{"type":"integer","format":"int32"},"remindAt":{"type":"string","format":"date-time"},"sent":{"type":"boolean"},"isDeleted":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ParticipantsRequest":{"required":["eventId"],"type":"object","properties":{"eventId":{"type":"integer","format":"int32"},"userId":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int32"}}},"ApiResponseCalEventParticipantsModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalEventParticipantsModel"}}},"CalEventParticipantsModel":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"eventId":{"type":"integer","format":"int32"},"userId":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int32"},"isDeleted":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"CreateExampleRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string"}}},"ApiResponseExampleModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ExampleModel"}}},"ExampleModel":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"active":{"type":"boolean"}}},"ReplaceCalEventRequest":{"required":["endDatetime","eventTypeId","isActive","isPublic","isVirtual","startDatetime","statusId","title"],"type":"object","properties":{"eventTypeId":{"type":"integer","format":"int32"},"title":{"maxLength":255,"minLength":0,"type":"string"},"startDatetime":{"type":"string","format":"date-time"},"endDatetime":{"type":"string","format":"date-time"},"statusId":{"type":"integer","format":"int32"},"isVirtual":{"type":"boolean"},"isPublic":{"type":"boolean"},"isActive":{"type":"boolean"},"description":{"type":"string"},"location":{"maxLength":255,"minLength":0,"type":"string"},"customerId":{"type":"integer","format":"int32"}}},"ApiResponseCalEventResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalEventResponse"}}},"CalEventResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"eventTypeId":{"type":"integer","format":"int32"},"title":{"type":"string"},"description":{"type":"string"},"startDatetime":{"type":"string","format":"date-time"},"endDatetime":{"type":"string","format":"date-time"},"location":{"type":"string"},"isVirtual":{"type":"boolean"},"isPublic":{"type":"boolean"},"statusId":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int32"},"createdByUserId":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isActive":{"type":"boolean"}}},"ReplaceCalEventTypeRequest":{"required":["code","isActive","name"],"type":"object","properties":{"code":{"maxLength":50,"minLength":0,"type":"string"},"name":{"maxLength":100,"minLength":0,"type":"string"},"isActive":{"type":"boolean"}}},"ApiResponseCalEventTypeResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CalEventTypeResponse"}}},"CalEventTypeResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"code":{"type":"string"},"name":{"type":"string"},"isActive":{"type":"boolean"}}},"CreateCalEventRequest":{"required":["endDatetime","eventTypeId","startDatetime","statusId","title"],"type":"object","properties":{"eventTypeId":{"type":"integer","format":"int32"},"title":{"maxLength":255,"minLength":0,"type":"string"},"startDatetime":{"type":"string","format":"date-time"},"endDatetime":{"type":"string","format":"date-time"},"statusId":{"type":"integer","format":"int32"},"description":{"type":"string"},"location":{"maxLength":255,"minLength":0,"type":"string"},"isVirtual":{"type":"boolean"},"isPublic":{"type":"boolean"},"customerId":{"type":"integer","format":"int32"}}},"CreateCalEventTypeRequest":{"required":["code","name"],"type":"object","properties":{"code":{"maxLength":50,"minLength":0,"type":"string"},"name":{"maxLength":100,"minLength":0,"type":"string"}}},"UpdateCalEventRequest":{"type":"object","properties":{"eventTypeId":{"type":"integer","format":"int32"},"title":{"maxLength":255,"minLength":0,"type":"string"},"description":{"type":"string"},"startDatetime":{"type":"string","format":"date-time"},"endDatetime":{"type":"string","format":"date-time"},"location":{"maxLength":255,"minLength":0,"type":"string"},"isVirtual":{"type":"boolean"},"isPublic":{"type":"boolean"},"statusId":{"type":"integer","format":"int32"},"customerId":{"type":"integer","format":"int32"},"isActive":{"type":"boolean"}}},"UpdateCalEventTypeRequest":{"type":"object","properties":{"code":{"maxLength":50,"minLength":0,"type":"string"},"name":{"maxLength":100,"minLength":0,"type":"string"},"isActive":{"type":"boolean"}}},"ApiResponseListCalEventVisibilityModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalEventVisibilityModel"}}}},"ApiResponseListCalEventReminderModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalEventReminderModel"}}}},"ApiResponseListCalEventParticipantsModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalEventParticipantsModel"}}}},"ApiResponseListExampleModel":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExampleModel"}}}},"ApiResponseListCalEventResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalEventResponse"}}}},"ApiResponseListCalEventTypeResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CalEventTypeResponse"}}}},"ApiResponseVoid":{"type":"object","properties":{"status":{"type":"integer","format":"int32"},"message":{"type":"string"},"data":{"type":"object"}}}},"securitySchemes":{"bearerAuth":{"type":"http","name":"bearerAuth","scheme":"bearer","bearerFormat":"JWT"}}}}