-
-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6064 from logto-io/gao-init-org-app-apis
feat(core): init organization app apis
- Loading branch information
Showing
19 changed files
with
405 additions
and
40 deletions.
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
82 changes: 82 additions & 0 deletions
82
packages/core/src/routes/organization/index.applications.openapi.json
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,82 @@ | ||
{ | ||
"tags": [ | ||
{ | ||
"name": "Organization applications", | ||
"description": "Manage organization - application relationships. An application can be associated with one or more organizations in order to grant organization access to the application.\n\nCurrently, only machine-to-machine applications can be associated with organizations." | ||
} | ||
], | ||
"paths": { | ||
"/api/organizations/{id}/applications": { | ||
"get": { | ||
"summary": "Get organization applications", | ||
"description": "Get applications associated with the organization.", | ||
"responses": { | ||
"200": { | ||
"description": "A list of applications." | ||
} | ||
} | ||
}, | ||
"post": { | ||
"summary": "Add organization application", | ||
"description": "Add an application to the organization.", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"properties": { | ||
"applicationIds": { | ||
"description": "The application IDs to add." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"description": "The application was added successfully." | ||
}, | ||
"422": { | ||
"description": "The application could not be added. Some of the applications may not exist." | ||
} | ||
} | ||
}, | ||
"put": { | ||
"summary": "Replace organization applications", | ||
"description": "Replace all applications associated with the organization with the given data.", | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"properties": { | ||
"applicationIds": { | ||
"description": "An array of application IDs to replace existing applications." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"204": { | ||
"description": "The applications were replaced successfully." | ||
}, | ||
"422": { | ||
"description": "The applications could not be replaced. Some of the applications may not exist." | ||
} | ||
} | ||
} | ||
}, | ||
"/api/organizations/{id}/applications/{applicationId}": { | ||
"delete": { | ||
"summary": "Remove organization application", | ||
"description": "Remove an application from the organization.", | ||
"responses": { | ||
"204": { | ||
"description": "The application was removed from the organization successfully." | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.