Skip to content

Commit 739ef15

Browse files
docs: improve English naturalness in API v2 documentation (calcom#22130)
* docs: improve English naturalness in API v2 documentation - Fix awkward API summary 'Find out when is an event type ready to be booked' to 'Get available time slots for an event type' - Correct 'setup' vs 'set up' usage throughout documentation - Fix OAuth capitalization consistency - Improve 'api' to 'API' capitalization in v2 docs - Enhance readability while preserving technical accuracy Fixes unnatural English phrasing in titles, headers, descriptions, and summaries across API v2 documentation files. Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * docs: add missing articles 'the' in API v2 documentation - Fix 'How to Set Up API' to 'How to Set Up the API' in titles - Add 'the' before 'API' in descriptions and summaries - Fix grammar error 'all you need to is' to 'all you need to do is' - Improve naturalness while maintaining technical accuracy Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * docs: fix unnatural English in API v2 @apioperation summaries - Fix grammatically incorrect 'conferencing apps oauths callback' to 'Conferencing app OAuth callback' - Replace 'ooo' with 'out-of-office' in user-facing summaries for clarity - Ensure consistent sentence case capitalization (only first letter capitalized) - Remove trailing periods from summaries for consistency - Fix awkward phrasing like 'Get by attribute id all of...' to more natural English - Revert 'Introduction to the API v2' back to 'Introduction to API v2' - Improve naturalness while maintaining technical accuracy Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * Update apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts * Update docs/api-reference/v2/openapi.json * docs: fix setup/set up usage - use 'backend setup' (noun) not 'backend set up' (verb) Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * docs: fix setup/set up verb usage - use 'set up' (verb) not 'setup' (verb) - Fix 'You have to setup' → 'You have to set up' in quickstart.mdx - Fix 'Setup environment variables' → 'Set up environment variables' - Fix 'Setup root of your app' → 'Set up root of your app' - Fix 'prompted to setup' → 'prompted to set up' in setup.mdx Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> * Ran v2 locally to regen the doc json files --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 850ac80 commit 739ef15

22 files changed

Lines changed: 100 additions & 100 deletions

File tree

apps/api/v2/src/ee/calendars/controllers/calendars.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class CalendarsController {
157157
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
158158
@Get("/:calendar/connect")
159159
@HttpCode(HttpStatus.OK)
160-
@ApiOperation({ summary: "Get oAuth connect URL" })
160+
@ApiOperation({ summary: "Get OAuth connect URL" })
161161
@ApiQuery({
162162
name: "redir",
163163
required: false,

apps/api/v2/src/modules/conferencing/controllers/conferencing.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class ConferencingController {
8787
@HttpCode(HttpStatus.OK)
8888
@UseGuards(ApiAuthGuard)
8989
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER)
90-
@ApiOperation({ summary: "Get OAuth conferencing app auth url" })
90+
@ApiOperation({ summary: "Get OAuth conferencing app auth URL" })
9191
@ApiParam({
9292
name: "app",
9393
description: "Conferencing application type",
@@ -130,7 +130,7 @@ export class ConferencingController {
130130
@Get("/:app/oauth/callback")
131131
@UseGuards()
132132
@Redirect(undefined, 301)
133-
@ApiOperation({ summary: "conferencing apps oauths callback" })
133+
@ApiOperation({ summary: "Conferencing app OAuth callback" })
134134
@ApiParam({
135135
name: "app",
136136
description: "Conferencing application type",

apps/api/v2/src/modules/organizations/attributes/options/organizations-attributes-options.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class OrganizationsAttributesOptionsController {
134134
@Roles("ORG_MEMBER")
135135
@PlatformPlan("ESSENTIALS")
136136
@Get("/attributes/:attributeId/options/assigned")
137-
@ApiOperation({ summary: "Get by attribute id all of the attribute options that are assigned to users" })
137+
@ApiOperation({ summary: "Get all assigned attribute options by attribute ID" })
138138
async getOrganizationAttributeAssignedOptions(
139139
@Param("orgId", ParseIntPipe) orgId: number,
140140
@Param("attributeId") attributeId: string,
@@ -158,7 +158,7 @@ export class OrganizationsAttributesOptionsController {
158158
@Roles("ORG_MEMBER")
159159
@PlatformPlan("ESSENTIALS")
160160
@Get("/attributes/slugs/:attributeSlug/options/assigned")
161-
@ApiOperation({ summary: "Get by attribute slug all of the attribute options that are assigned to users" })
161+
@ApiOperation({ summary: "Get all assigned attribute options by attribute slug" })
162162
async getOrganizationAttributeAssignedOptionsBySlug(
163163
@Param("orgId", ParseIntPipe) orgId: number,
164164
@Param("attributeSlug") attributeSlug: string,

apps/api/v2/src/modules/organizations/bookings/organizations-bookings.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class OrganizationsBookingsController {
3434
constructor(private readonly bookingsService: BookingsService_2024_08_13) {}
3535

3636
@Get("/")
37-
@ApiOperation({ summary: "Get Organization Bookings" })
37+
@ApiOperation({ summary: "Get organization bookings" })
3838
@Roles("ORG_ADMIN")
3939
@PlatformPlan("ESSENTIALS")
4040
@HttpCode(HttpStatus.OK)

apps/api/v2/src/modules/organizations/conferencing/organizations-conferencing.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class OrganizationsConferencingController {
105105
@UseGuards(ApiAuthGuard, IsOrgGuard, RolesGuard, IsTeamInOrg, PlatformPlanGuard, IsAdminAPIEnabledGuard)
106106
@Get("/teams/:teamId/conferencing/:app/oauth/auth-url")
107107
@HttpCode(HttpStatus.OK)
108-
@ApiOperation({ summary: "Get OAuth conferencing app's auth url for a team" })
108+
@ApiOperation({ summary: "Get OAuth conferencing app's auth URL for a team" })
109109
async getTeamOAuthUrl(
110110
@Req() req: Request,
111111
@Headers("Authorization") authorization: string,

apps/api/v2/src/modules/organizations/delegation-credentials/organizations-delegation-credential.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class OrganizationsDelegationCredentialController {
5252
@HttpCode(HttpStatus.CREATED)
5353
@Roles("ORG_ADMIN")
5454
@PlatformPlan("SCALE")
55-
@ApiOperation({ summary: "Save delegation credentials for your organization." })
55+
@ApiOperation({ summary: "Save delegation credentials for your organization" })
5656
async createDelegationCredential(
5757
@Param("orgId", ParseIntPipe) orgId: number,
5858
@GetUser() delegatedServiceAccountUser: User,
@@ -72,7 +72,7 @@ export class OrganizationsDelegationCredentialController {
7272
@Patch("/:credentialId")
7373
@Roles("ORG_ADMIN")
7474
@PlatformPlan("SCALE")
75-
@ApiOperation({ summary: "Update delegation credentials of your organization." })
75+
@ApiOperation({ summary: "Update delegation credentials of your organization" })
7676
async updateDelegationCredential(
7777
@Param("orgId", ParseIntPipe) orgId: number,
7878
@GetUser() delegatedServiceAccountUser: User,

apps/api/v2/src/modules/organizations/stripe/organizations-stripe.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class OrganizationsStripeController {
6565
@UseGuards(ApiAuthGuard, IsOrgGuard, RolesGuard, IsTeamInOrg, PlatformPlanGuard, IsAdminAPIEnabledGuard)
6666
@Get("/connect")
6767
@HttpCode(HttpStatus.OK)
68-
@ApiOperation({ summary: "Get stripe connect URL for a team" })
68+
@ApiOperation({ summary: "Get Stripe connect URL for a team" })
6969
async getTeamStripeConnectUrl(
7070
@Req() req: Request,
7171
@Headers("Authorization") authorization: string,
@@ -104,7 +104,7 @@ export class OrganizationsStripeController {
104104
@UseGuards(ApiAuthGuard, IsOrgGuard, RolesGuard, IsTeamInOrg, PlatformPlanGuard, IsAdminAPIEnabledGuard)
105105
@Get("/check")
106106
@HttpCode(HttpStatus.OK)
107-
@ApiOperation({ summary: "Check team stripe connection" })
107+
@ApiOperation({ summary: "Check team Stripe connection" })
108108
async checkTeamStripeConnection(
109109
@Param("teamId", ParseIntPipe) teamId: number
110110
): Promise<StripCredentialsCheckOutputResponseDto> {
@@ -116,7 +116,7 @@ export class OrganizationsStripeController {
116116
@UseGuards(ApiAuthGuard, IsOrgGuard, RolesGuard, IsTeamInOrg, PlatformPlanGuard, IsAdminAPIEnabledGuard)
117117
@Get("/save")
118118
@Redirect(undefined, 301)
119-
@ApiOperation({ summary: "Save stripe credentials" })
119+
@ApiOperation({ summary: "Save Stripe credentials" })
120120
async save(
121121
@Query("state") state: string,
122122
@Query("code") code: string,

apps/api/v2/src/modules/organizations/users/bookings/controllers/organizations-users-bookings-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class OrganizationsUsersBookingsController {
3434
@Get("/")
3535
@Roles("ORG_ADMIN")
3636
@PlatformPlan("ESSENTIALS")
37-
@ApiOperation({ summary: "Get all bookings of an organization user" })
37+
@ApiOperation({ summary: "Get all bookings for an organization user" })
3838
async getOrganizationUserBookings(
3939
@Param("orgId", ParseIntPipe) orgId: number,
4040
@Param("userId", ParseIntPipe) userId: number,

apps/api/v2/src/modules/organizations/users/ooo/controllers/organizations-users-ooo-controller.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class OrganizationsUsersOOOController {
6666
@Roles("ORG_ADMIN")
6767
@PlatformPlan("ESSENTIALS")
6868
@UseGuards(IsUserInOrg)
69-
@ApiOperation({ summary: "Get all ooo entries of a user" })
69+
@ApiOperation({ summary: "Get all out-of-office entries for a user" })
7070
async getOrganizationUserOOO(
7171
@Param("userId", ParseIntPipe) userId: number,
7272
@Query() query: GetOutOfOfficeEntryFiltersDTO
@@ -84,7 +84,7 @@ export class OrganizationsUsersOOOController {
8484
@Roles("ORG_ADMIN")
8585
@PlatformPlan("ESSENTIALS")
8686
@UseGuards(IsUserInOrg)
87-
@ApiOperation({ summary: "Create an ooo entry for user" })
87+
@ApiOperation({ summary: "Create an out-of-office entry for a user" })
8888
async createOrganizationUserOOO(
8989
@Param("userId", ParseIntPipe) userId: number,
9090
@Body() input: CreateOutOfOfficeEntryDto
@@ -100,7 +100,7 @@ export class OrganizationsUsersOOOController {
100100
@Roles("ORG_ADMIN")
101101
@PlatformPlan("ESSENTIALS")
102102
@UseGuards(IsUserInOrg, IsUserOOO)
103-
@ApiOperation({ summary: "Update ooo entry of a user" })
103+
@ApiOperation({ summary: "Update an out-of-office entry for a user" })
104104
async updateOrganizationUserOOO(
105105
@Param("userId", ParseIntPipe) userId: number,
106106
@Param("oooId", ParseIntPipe) oooId: number,
@@ -118,7 +118,7 @@ export class OrganizationsUsersOOOController {
118118
@Roles("ORG_ADMIN")
119119
@PlatformPlan("ESSENTIALS")
120120
@UseGuards(IsUserInOrg, IsUserOOO)
121-
@ApiOperation({ summary: "Delete ooo entry of a user" })
121+
@ApiOperation({ summary: "Delete an out-of-office entry for a user" })
122122
async deleteOrganizationUserOOO(
123123
@Param("oooId", ParseIntPipe) oooId: number
124124
): Promise<UserOooOutputResponseDto> {
@@ -132,7 +132,7 @@ export class OrganizationsUsersOOOController {
132132
@Get("/ooo")
133133
@Roles("ORG_ADMIN")
134134
@PlatformPlan("ESSENTIALS")
135-
@ApiOperation({ summary: "Get all OOO entries of org users" })
135+
@ApiOperation({ summary: "Get all out-of-office entries for organization users" })
136136
async getOrganizationUsersOOO(
137137
@Param("orgId", ParseIntPipe) orgId: number,
138138
@Query() query: GetOrgUsersOutOfOfficeEntryFiltersDTO

apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class SlotsController_2024_09_04 {
5858

5959
@Get("/")
6060
@ApiOperation({
61-
summary: "Find out when is an event type ready to be booked.",
61+
summary: "Get available time slots for an event type",
6262
description: `
6363
There are 4 ways to get available slots for event type of an individual user:
6464
@@ -290,7 +290,7 @@ export class SlotsController_2024_09_04 {
290290

291291
@Patch("/reservations/:uid")
292292
@ApiOperation({
293-
summary: "Updated reserved a slot",
293+
summary: "Update a reserved slot",
294294
})
295295
@HttpCode(HttpStatus.OK)
296296
async updateReservedSlot(

0 commit comments

Comments
 (0)