Skip to content

Commit

Permalink
Fixes for API reference (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant authored Nov 5, 2024
1 parent 6a00643 commit 77b0912
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 14 deletions.
7 changes: 6 additions & 1 deletion docs/api-reference/organization/add-org-member.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: 'Add Member'
openapi: post /api/v1/orgs/organizations/{org_id}/members/
---
---

The API provides two roles for organization members:

- `READER`: Allows viewing of organization resources.
- `OWNER`: Grants full administrative access to manage the organization and its resources.
7 changes: 6 additions & 1 deletion docs/api-reference/organization/update-org-member.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: 'Update Member'
openapi: put /api/v1/orgs/organizations/{org_id}/members/
---
---

The API provides two roles for organization members:

- `READER`: Allows viewing of organization resources.
- `OWNER`: Grants full administrative access to manage the organization and its resources.
7 changes: 6 additions & 1 deletion docs/api-reference/project/add-project-member.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: 'Add Member'
openapi: post /api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/
---
---

The API provides two roles for project members:

- `READER`: Allows viewing of project resources.
- `OWNER`: Grants full administrative access to manage the project and its resources.
7 changes: 6 additions & 1 deletion docs/api-reference/project/update-project-member.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: 'Update Member'
openapi: put /api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/
---
---

The API provides two roles for project members:

- `READER`: Allows viewing of project resources.
- `OWNER`: Grants full administrative access to manage the project and its resources.
37 changes: 27 additions & 10 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@
},
"type": {
"type": "string",
"description": "Type of the entity (e.g., 'user', 'agent')"
"enum": [
"user",
"agent",
"app",
"run"
]
}
},
"required": [
Expand Down Expand Up @@ -229,20 +234,28 @@
"operationId": "entities_read",
"parameters": [
{
"name": "org_name",
"in": "query",
"name": "entity_type",
"in": "path",
"required": true,
"schema": {
"type": "string"
"type": "string",
"enum": [
"user",
"agent",
"app",
"run"
]
},
"description": "Filter entities by organization name"
"description": "The type of the entity (user, agent, app, or run)"
},
{
"name": "project_name",
"in": "query",
"name": "entity_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Filter entities by project name"
"description": "The unique identifier of the entity"
}
],
"responses": {
Expand Down Expand Up @@ -472,7 +485,9 @@
"type": "string",
"enum": [
"user",
"agent"
"agent",
"app",
"run"
]
}
},
Expand Down Expand Up @@ -805,7 +820,9 @@
"type": "string",
"enum": [
"user",
"agent"
"agent",
"app",
"run"
]
}
},
Expand Down

0 comments on commit 77b0912

Please sign in to comment.