Skip to content

Commit

Permalink
fix: api docs and add org docs (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit authored Dec 22, 2024
1 parent 1fd2acb commit 27d8d1a
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/api-reference/client/delete-project.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /api/v1/client/auth/project/delete/{projectId}
---
3 changes: 3 additions & 0 deletions docs/api-reference/client/get-org-api-key.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /api/v1/client/auth/org/api_key
---
3 changes: 3 additions & 0 deletions docs/api-reference/client/regenerate-org-api-key.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api/v1/client/auth/org/api_key/regenerate
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/create-new-project.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api/v1/org/projects/create
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/delete-project.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /api/v1/org/projects/{projectId}
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/get-project.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /api/v1/org/projects/{projectId}
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/list-all-projects.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /api/v1/org/projects
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/regenerate-project-api-key.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api/v1/org/projects/{projectId}/api-key/regenerate
---
3 changes: 3 additions & 0 deletions docs/api-reference/projects/rename-project.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api/v1/org/projects/{projectId}/rename
---
2 changes: 1 addition & 1 deletion docs/composio_openapi.json

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
"introduction/foundations/components/workspace",
"faq/api_key/api_key",
"faq/api_key/cli",
"enterprise/intro",
"faq/integrations_and_connections/list_of_tools",
"faq/supported_llms/supported_llm"
]
Expand Down Expand Up @@ -251,9 +250,7 @@
{
"group": "Client",
"pages": [
"api-reference/client/get-user-info",
"api-reference/client/get-projects",
"api-reference/client/add-new-project"
"api-reference/client/get-user-info"
]
},
{
Expand Down Expand Up @@ -286,6 +283,17 @@
"api-reference/logs/post-logs"
]
},
{
"group": "Projects",
"pages": [
"api-reference/projects/list-all-projects",
"api-reference/projects/get-project",
"api-reference/projects/regenerate-project-api-key",
"api-reference/projects/create-new-project",
"api-reference/projects/delete-project",
"api-reference/projects/rename-project"
]
},
{
"group": "Team",
"pages": [
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"scripts": {
"dev": "mintlify dev",
"generate:dev": "wget https://staging-backend.composio.dev/openapi.json -O composio_openapi.json && pnpm generate",
"openapi:validate": "mintlify openapi-check composio_openapi.json",
"generate:docs": "curl -o composio_openapi.json https://backend.composio.dev/openapi.json && pnpm generate",
"generate": "rm -rf api-reference || true && npx @mintlify/scraping@latest openapi-file ./composio_openapi.json -o api-reference && node scripts/render_mint_json_template.js"
},
"dependencies": {
Expand Down

0 comments on commit 27d8d1a

Please sign in to comment.