-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event service Api documentation (#24)
* chore : docusauras api setup * Rename notification.json to notification-service.json * Update docusaurus.config.ts * fix: resolved package errors * feat : added event service apis * chore : removed wrong file * chore : added updated file * chore : formatted code * chore : resolved comments --------- Co-authored-by: Manoj L <[email protected]>
- Loading branch information
1 parent
149df69
commit 309092b
Showing
6 changed files
with
1,389 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
id: event-controller-create | ||
title: "Create Events" | ||
description: "Create Events" | ||
sidebar_label: "Create Events" | ||
hide_title: true | ||
hide_table_of_contents: true | ||
api: eJztW/9P4zgW/1ci/3QrJTRJv1AqnU6zlF2hGwYOmB3dVOjkJk7xTGJ3badMr5f//WQ7SZ0vpSmwO8wKhBDU7z0/2+/zvpjnDaBLxKDAlJyHYALOVoiIU0oEo3GM2H8ChqBAwAZLyGCCBGIcTGYbQGCCwASkHLHzENiAod9TzFAIJoKlyAaYgAn4PUVsDWwQIh4wvJSTgAn4qHis64LDBjy4RwkEkw1A32CyjKVkz++jwXB07KDxydzx/LDvwMFw5Az80cgbeMcD13VBlt3pqREXP9NwLUXUNQkoEYgIOQSXyxgHarG9L1wqszHmFuulnJjOv6BAyBUzuTUCI65GsZB6lWRcMEwWjcVpMttYyI36xVIbCzIb8HvKxNRk2ifzRnJYJosp//YecwtzC1pcz4SKmcJDJtkl/j1lKLHwkqeJFdKYMotjYUlTsK2AEo4CgUTKLBjiJeYBJgsLxVgcSQWUJrdq2ub0iKQJmMwAJTEmcstoFKnf7uqqqa2zlBxTs5wxswHm10jKDYQ89n0rrVAbAqW5ZDaAqaBnRJr/flEGbVMQF5CJKRRI4KSD5dxIcqukN1fqu/7Acf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yX7NEHM4jyVwc7uu6VK++wJ/K56a/WQ13561qvwVrc3HbUVmDeRzsxVkWE4svV9mg3sEFeRmm5zrVM/r3Jq9lpPm2zMpq3TAV5c3t8AG8/wNW0Il0gGDsolP/lQnT9XalPWrzzYghmSRwoWk1TLl1/8BNfvsxw== | ||
sidebar_class_name: "post api-method" | ||
info_path: docs/event-service/apis/event-management | ||
custom_edit_url: null | ||
--- | ||
|
||
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; | ||
import ParamsDetails from "@theme/ParamsDetails"; | ||
import RequestSchema from "@theme/RequestSchema"; | ||
import StatusCodes from "@theme/StatusCodes"; | ||
import OperationTabs from "@theme/OperationTabs"; | ||
import TabItem from "@theme/TabItem"; | ||
import Heading from "@theme/Heading"; | ||
|
||
<Heading | ||
as={"h1"} | ||
className={"openapi__heading"} | ||
children={"Create Events"} | ||
> | ||
</Heading> | ||
|
||
<MethodEndpoint | ||
method={"post"} | ||
path={"/event-service/event/v1/create"} | ||
context={"endpoint"} | ||
> | ||
|
||
</MethodEndpoint> | ||
|
||
|
||
|
||
Create Events | ||
|
||
<Heading | ||
id={"request"} | ||
as={"h2"} | ||
className={"openapi-tabs__heading"} | ||
children={"Request"} | ||
> | ||
</Heading> | ||
|
||
<ParamsDetails | ||
parameters={[{"name":"userId","required":true,"in":"query","description":"UserId Required","schema":{"example":"123e4567-e89b-12d3-a456-426614174000"}}]} | ||
> | ||
|
||
</ParamsDetails> | ||
|
||
<RequestSchema | ||
title={"Body"} | ||
body={{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"title","example":"Sample Event"},"shortDescription":{"type":"string","description":"Short Description","example":"This is a sample event"},"description":{"type":"string","description":"Description","example":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."},"eventType":{"type":"string","enum":["online","offline"],"description":"Event Type","example":"online"},"isRestricted":{"type":"string","description":"isRestricted","example":true},"autoEnroll":{"type":"string","description":"autoEnroll","example":true},"startDatetime":{"type":"string","description":"Start Datetime","example":"2024-03-18T10:00:00"},"endDatetime":{"type":"string","description":"End Datetime","example":"2024-03-18T10:00:00"},"location":{"type":"string","description":"Location","example":"Event Location"},"longitude":{"type":"number","description":"Latitude","example":18.508345134886994},"latitude":{"type":"number","description":"Latitude","example":18.508345134886994},"onlineProvider":{"type":"string","description":"Online Provider","example":"Zoom"},"isMeetingNew":{"type":"boolean","description":"isMeetingNew","example":false},"meetingDetails":{"description":"Online Meeting Details","example":{"url":"https://example.com/meeting","id":"meeting-id"},"allOf":[{"type":"object","properties":{"id":{"type":"string","description":"Meeting ID","example":94292617},"url":{"type":"string","description":"Meeting url","example":"https://example.com/meeting"},"password":{"type":"string","description":"Meeting password","writeOnly":true},"providerGenerated":{"type":"string","description":"providerGenerated","default":false}},"required":["id","url","password","providerGenerated"],"title":"MeetingDetailsDto"}]},"maxAttendees":{"type":"number","description":"Max Attendees","example":100},"attendees":{"type":"object","description":"Attendees","example":["eff008a8-2573-466d-b877-fddf6a4fc13e","e9fec05a-d6ab-44be-bfa4-eaeef2ef8fe9"]},"recordings":{"type":"object","description":"Recordings","example":{"url":"https://example.com/recording"}},"status":{"type":"string","description":"Status","example":"live"},"idealTime":{"type":"string","description":"idealTime","example":120},"registrationStartDate":{"type":"string","description":"registrationStartDate","example":"2024-03-18T10:00:00"},"registrationEndDate":{"type":"string","description":"registrationEndDate","example":"2024-03-18T10:00:00"},"isRecurring":{"type":"string","description":"isRecurring","example":true},"recurrencePattern":{"description":"recurrencePattern","example":{"frequency":"daily","interval":1},"allOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["daily","weekly"],"description":"Frequency","example":"daily"},"interval":{"type":"number","description":"Interval","example":1,"default":1},"daysOfWeek":{"description":"Days of Week","example":[1,3,5],"type":"array","items":{"type":"string"}},"endCondition":{"description":"End Condition","example":{"type":"endDate","value":"2024-03-18T10:00:00Z"},"allOf":[{"type":"object","properties":{"type":{"type":"string","description":"Type of end condition","example":"endDate"},"value":{"type":"string","description":"Value of end condition","example":"2024-03-18T10:00:00Z | 5"}},"required":["type","value"],"title":"EndCondition"}]}},"required":["frequency","interval","daysOfWeek","endCondition"],"title":"RecurrencePatternDto"}]},"metaData":{"type":"object","description":"Event meta data","example":""},"erMetaData":{"type":"object","description":"Meta data for recurring events","example":""}},"required":["title","shortDescription","description","eventType","isRestricted","autoEnroll","startDatetime","endDatetime","location","longitude","latitude","onlineProvider","isMeetingNew","meetingDetails","maxAttendees","attendees","recordings","status","idealTime","registrationStartDate","registrationEndDate","isRecurring","recurrencePattern","metaData","erMetaData"],"title":"CreateEventDto"},"examples":{"RecurringOnlineDailyByEndDate":{"summary":"Example for RecurringOnlineDailyByEndDate","description":"Detailed example for RecurringOnlineDailyByEndDate","value":{"title":"Sample OnlineDailyByEndDate Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"online","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","onlineProvider":"Zoom","isMeetingNew":false,"meetingDetails":{"url":"https://zoom.us/j/99201586505?pwd=ZA8uek6tYu0LQTPbW2GgIORpNDmv7j","id":"meeting-id"},"attendees":[],"recordings":{"url":"https://zoom.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"daily","interval":1,"endCondition":{"type":"endDate","value":"2024-12-25T11:00:00Z"},"recurringStartDate":"2024-03-18T10:00:00Z"},"metaData":{"cohortId":"3218bb35-a87d-4adf-b305-b205286fe320"},"erMetaData":{}}},"RecurringOnlineDailyByOccurrences":{"summary":"Example for RecurringOnlineDailyByOccurrences","description":"Detailed example for RecurringOnlineDailyByOccurrences","value":{"title":"Sample OnlineDailyByOccurrences Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"online","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","onlineProvider":"Zoom","isMeetingNew":false,"meetingDetails":{"url":"https://zoom.us/j/99201586505?pwd=ZA8uek6tYu0LQTPbW2GgIORpNDmv7j","id":"meeting-id"},"attendees":[],"recordings":{"url":"https://zoom.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"daily","interval":1,"endCondition":{"type":"occurrences","value":"20"},"recurringStartDate":"2024-03-18T10:00:00Z"},"metaData":{"cohortId":"3218bb35-a87d-4adf-b305-b205286fe320"},"erMetaData":{}}},"RecurringOfflineDailyByEndDate":{"summary":"Example for RecurringOfflineDailyByEndDate","description":"Detailed example for RecurringOfflineDailyByEndDate","value":{"title":"Sample OfflineDailyByEndDate Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"offline","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","location":"Kothrud","attendees":[],"recordings":{"url":"https://zoom.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"daily","interval":1,"endCondition":{"type":"endDate","value":"2024-12-25T11:00:00Z"},"recurringStartDate":"2024-03-18T10:00:00Z"},"metaData":{"cohortId":"3218bb35-a87d-4adf-b305-b205286fe320"},"erMetaData":{}}},"RecurringOfflineDailyByOccurrence":{"summary":"Example for RecurringOfflineDailyByOccurrence","description":"Detailed example for RecurringOfflineDailyByOccurrence","value":{"title":"Sample OfflineDailyByOccurrence Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"offline","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","location":"Kothrud","attendees":[],"recordings":{"url":"https://zoom.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"daily","interval":1,"endCondition":{"type":"occurrences","value":"20"},"recurringStartDate":"2024-03-18T10:00:00Z"},"metaData":{"cohortId":"3218bb35-a87d-4adf-b305-b205286fe320"},"erMetaData":{}}},"RecurringOnlineWeeklyByEndDate":{"summary":"Example for RecurringOnlineWeeklyByEndDate","description":"Detailed example for RecurringOnlineWeeklyByEndDate","value":{"title":"Sample OnlineWeeklyByEndDate Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"online","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","onlineProvider":"Zoom","isMeetingNew":false,"meetingDetails":{"url":"https://zoom.us/j/99201586505?pwd=ZA8uek6tYu0LQTPbW2GgIORpNDmv7j","id":"meeting-id"},"attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"weekly","interval":1,"daysOfWeek":[3,5],"endCondition":{"type":"endDate","value":"2024-12-25T11:00:00Z"},"recurringStartDate":"2024-12-18T10:00:00Z"},"metaData":{},"erMetaData":{}}},"RecurringOnlineWeeklyByOccurrences":{"summary":"Example for RecurringOnlineWeeklyByOccurrences","description":"Detailed example for RecurringOnlineWeeklyByOccurrences","value":{"title":"Sample OnlineWeeklyByOccurrences Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"online","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","onlineProvider":"Zoom","isMeetingNew":false,"meetingDetails":{"url":"https://zoom.us/j/99201586505?pwd=ZA8uek6tYu0LQTPbW2GgIORpNDmv7j","id":"meeting-id"},"attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"weekly","interval":1,"daysOfWeek":[3,5],"endCondition":{"type":"occurrences","value":"20"},"recurringStartDate":"2024-12-18T10:00:00Z"},"metaData":{},"erMetaData":{}}},"RecurringOfflineWeeklyByEndDate":{"summary":"Example for RecurringOfflineWeeklyByEndDate","description":"Detailed example for RecurringOfflineWeeklyByEndDate","value":{"title":"Sample Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"offline","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","location":"Kothrud","attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"weekly","interval":1,"daysOfWeek":[3,5],"endCondition":{"type":"endDate","value":"2024-12-25T11:00:00Z"},"recurringStartDate":"2024-12-18T10:00:00Z"},"metaData":{},"erMetaData":{}}},"RecurringOfflineWeeklyByOccurrence":{"summary":"Example for RecurringOfflineWeeklyByOccurrence","description":"Detailed example for RecurringOfflineWeeklyByOccurrence","value":{"title":"Sample Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"offline","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","location":"Kothrud","attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":true,"recurrencePattern":{"frequency":"weekly","interval":1,"daysOfWeek":[3,5],"endCondition":{"type":"occurrences","value":"20"},"recurringStartDate":"2024-12-18T10:00:00Z"},"metaData":{},"erMetaData":{}}},"NonRecurringOffline":{"summary":"Example for NonRecurringOffline","description":"Detailed example for NonRecurringOffline","value":{"title":"Sample Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"offline","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","location":"Kothrud","attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":false,"metaData":{},"erMetaData":{}}},"NonRecurringOnline":{"summary":"Example for NonRecurringOnline","description":"Detailed example for NonRecurringOnline","value":{"title":"Sample NonRecurringOnline Event","shortDescription":"This is a sample event","description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.","eventType":"online","isRestricted":true,"autoEnroll":true,"startDatetime":"2024-12-18T10:00:00Z","endDatetime":"2024-12-18T11:00:00Z","onlineProvider":"Zoom","isMeetingNew":false,"meetingDetails":{"url":"https://zoom.us/j/99201586505?pwd=ZA8uek6tYu0LQTPbW2GgIORpNDmv7j","id":"meeting-id"},"attendees":[],"recordings":{"url":"https://example.com/recording"},"status":"live","isRecurring":false,"metaData":{},"erMetaData":{}}}}}}}} | ||
> | ||
|
||
</RequestSchema> | ||
|
||
<StatusCodes | ||
id={undefined} | ||
label={undefined} | ||
responses={{"201":{"description":"Event created successfully"},"400":{"description":"Invalid request body"},"500":{"description":"Internal Server Error"}}} | ||
> | ||
|
||
</StatusCodes> | ||
|
||
|
||
|
Oops, something went wrong.