docs: improve English naturalness in API v2 documentation (#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: [email protected] <[email protected]> * 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: [email protected] <[email protected]> * 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: [email protected] <[email protected]> * 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: [email protected] <[email protected]> * 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: [email protected] <[email protected]> * Ran v2 locally to regen the doc json files --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
850ac8092f
commit
739ef153f6
22 files changed
+100
-100
No files matched your search
@@ -95,7 +95,7 @@ We recommend setting the `timeZone` for ease of use.
|
||||
|
||||
## 4. Backend: setting up a refresh token endpoint
|
||||
|
||||
You have to setup an endpoint on your server to which atoms can send an expired access token and receive new one in return. This exchange will be automatically handled by atoms when you provide this endpoint URL when setting up frontend in the next step.
|
||||
You have to set up an endpoint on your server to which atoms can send an expired access token and receive new one in return. This exchange will be automatically handled by atoms when you provide this endpoint URL when setting up frontend in the next step.
|
||||
|
||||
> Q: Why do we need a separate endpoint just for this?
|
||||
A: Your OAuth client secret and users refresh tokens should never be exposed on the frontend. The OAuth client secret will reside as an environment variable in your backend and the users' refresh tokens are stored in your database, which are used by our API to refresh the access token.
|
||||
@@ -105,7 +105,7 @@ You can check an example refresh token endpoint in our atoms examples app: [http
|
||||
|
||||
Shortly:
|
||||
|
||||
1. Setup environment variables or pass values directly. Here are ones from the examples app above:
|
||||
1. Set up environment variables or pass values directly. Here are ones from the examples app above:
|
||||
1. NEXT_PUBLIC_CALCOM_API_URL: [https://api.cal.com/v2](https://api.cal.com/v2)
|
||||
2. NEXT_PUBLIC_X_CAL_ID: your OAuth client ID
|
||||
3. X_CAL_SECRET_KEY - your OAuth client secret
|
||||
@@ -156,7 +156,7 @@ pnpm:
|
||||
pnpm add @calcom/atoms
|
||||
```
|
||||
|
||||
### 6.2 Setup environment variables
|
||||
### 6.2 Set up environment variables
|
||||
|
||||
CAL_OAUTH_CLIENT_ID: OAuth client ID
|
||||
|
||||
@@ -164,7 +164,7 @@ CAL_API_URL: [https://api.cal.com/v2](https://api.cal.com/v2)
|
||||
|
||||
REFRESH_URL: URL of the endpoint you implemented in step 3, for example, your.api.com/api/refresh
|
||||
|
||||
### 5.3 Setup root of your app
|
||||
### 5.3 Set up root of your app
|
||||
|
||||
Next.js: open _app.js or or _app.tsx.
|
||||
|
||||
|
||||
Reference in new issue
Block a user