Skip to content

Commit

Permalink
Merge pull request #9 from mulesoft-anypoint/dev
Browse files Browse the repository at this point in the history
Connected App
  • Loading branch information
soufi authored Feb 5, 2024
2 parents 4a970b4 + 5fa3e4f commit fb044fd
Show file tree
Hide file tree
Showing 11 changed files with 1,327 additions and 303 deletions.
12 changes: 6 additions & 6 deletions connected_app/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ docs/ConnectedAppPatchExtAllOf.md
docs/ConnectedAppRespExt.md
docs/ConnectedAppRespExtAllOf.md
docs/ConnectedAppScopesPutBody.md
docs/ConnectedApplicationsConnAppIdScopesGet200Response.md
docs/ConnectedApplicationsGet200Response.md
docs/ConnectedApplicationsPost400Response.md
docs/ContextParams.md
docs/CreateConnectedApp400Response.md
docs/DefaultApi.md
docs/GetAllConnectedApps200Response.md
docs/GetConnectedAppScopes200Response.md
docs/ScopeCore.md
git_push.sh
go.mod
go.sum
model__connected_applications__conn_app_id__scopes_get_200_response.go
model__connected_applications_get_200_response.go
model__connected_applications_post_400_response.go
model_connected_app_core.go
model_connected_app_patch_ext.go
model_connected_app_patch_ext_all_of.go
model_connected_app_resp_ext.go
model_connected_app_resp_ext_all_of.go
model_connected_app_scopes_put_body.go
model_context_params.go
model_create_connected_app_400_response.go
model_get_all_connected_apps_200_response.go
model_get_connected_app_scopes_200_response.go
model_scope_core.go
response.go
utils.go
20 changes: 10 additions & 10 deletions connected_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ All URIs are relative to *https://anypoint.mulesoft.com/accounts/api*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**ConnectedApplicationsConnAppIdDelete**](docs/DefaultApi.md#connectedapplicationsconnappiddelete) | **Delete** /connectedApplications/{connAppId} |
*DefaultApi* | [**ConnectedApplicationsConnAppIdGet**](docs/DefaultApi.md#connectedapplicationsconnappidget) | **Get** /connectedApplications/{connAppId} |
*DefaultApi* | [**ConnectedApplicationsConnAppIdPatch**](docs/DefaultApi.md#connectedapplicationsconnappidpatch) | **Patch** /connectedApplications/{connAppId} |
*DefaultApi* | [**ConnectedApplicationsConnAppIdScopesGet**](docs/DefaultApi.md#connectedapplicationsconnappidscopesget) | **Get** /connectedApplications/{connAppId}/scopes |
*DefaultApi* | [**ConnectedApplicationsConnAppIdScopesPut**](docs/DefaultApi.md#connectedapplicationsconnappidscopesput) | **Put** /connectedApplications/{connAppId}/scopes |
*DefaultApi* | [**ConnectedApplicationsGet**](docs/DefaultApi.md#connectedapplicationsget) | **Get** /connectedApplications |
*DefaultApi* | [**ConnectedApplicationsPost**](docs/DefaultApi.md#connectedapplicationspost) | **Post** /connectedApplications |
*DefaultApi* | [**CreateConnectedApp**](docs/DefaultApi.md#createconnectedapp) | **Post** /organizations/{orgId}/connectedApplications |
*DefaultApi* | [**DeleteConnectedApp**](docs/DefaultApi.md#deleteconnectedapp) | **Delete** /organizations/{orgId}/connectedApplications/{connAppId} |
*DefaultApi* | [**GetAllConnectedApps**](docs/DefaultApi.md#getallconnectedapps) | **Get** /connectedApplications |
*DefaultApi* | [**GetConnectedApp**](docs/DefaultApi.md#getconnectedapp) | **Get** /organizations/{orgId}/connectedApplications/{connAppId} |
*DefaultApi* | [**GetConnectedAppScopes**](docs/DefaultApi.md#getconnectedappscopes) | **Get** /organizations/{orgId}/connectedApplications/{connAppId}/scopes |
*DefaultApi* | [**UpdateConnectedApp**](docs/DefaultApi.md#updateconnectedapp) | **Patch** /organizations/{orgId}/connectedApplications/{connAppId} |
*DefaultApi* | [**UpdateConnectedAppScopes**](docs/DefaultApi.md#updateconnectedappscopes) | **Put** /organizations/{orgId}/connectedApplications/{connAppId}/scopes |


## Documentation For Models
Expand All @@ -94,10 +94,10 @@ Class | Method | HTTP request | Description
- [ConnectedAppRespExt](docs/ConnectedAppRespExt.md)
- [ConnectedAppRespExtAllOf](docs/ConnectedAppRespExtAllOf.md)
- [ConnectedAppScopesPutBody](docs/ConnectedAppScopesPutBody.md)
- [ConnectedApplicationsConnAppIdScopesGet200Response](docs/ConnectedApplicationsConnAppIdScopesGet200Response.md)
- [ConnectedApplicationsGet200Response](docs/ConnectedApplicationsGet200Response.md)
- [ConnectedApplicationsPost400Response](docs/ConnectedApplicationsPost400Response.md)
- [ContextParams](docs/ContextParams.md)
- [CreateConnectedApp400Response](docs/CreateConnectedApp400Response.md)
- [GetAllConnectedApps200Response](docs/GetAllConnectedApps200Response.md)
- [GetConnectedAppScopes200Response](docs/GetConnectedAppScopes200Response.md)
- [ScopeCore](docs/ScopeCore.md)


Expand Down
172 changes: 152 additions & 20 deletions connected_app/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,72 @@ security:
paths:
/connectedApplications:
get:
description: Returns all connected apps
description: Get all connected applications for the organization
operationId: GetAllConnectedApps
parameters:
- description: flag to indicate whether to return usage statistics
explode: true
in: query
name: includeUsage
required: false
schema:
type: boolean
style: form
- description: Provide an orgId to get all clients from other organization
explode: true
in: query
name: orgId
required: false
schema:
type: string
style: form
- description: The number of records to omit from the response.
explode: true
in: query
name: offset
required: false
schema:
type: integer
style: form
- description: Maximum records to retrieve per request.
explode: true
in: query
name: limit
required: false
schema:
type: integer
style: form
- description: A search string to use for case-insensitive partial matches on
all object properties.
explode: true
in: query
name: search
required: false
schema:
type: string
style: form
responses:
"401":
description: Access token is missing or invalid
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_get_200_response'
$ref: '#/components/schemas/GetAllConnectedApps_200_response'
description: Success response
/organizations/{orgId}/connectedApplications:
post:
description: create a Connected App
description: Create a new connected application
operationId: CreateConnectedApp
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
requestBody:
content:
application/json:
Expand All @@ -39,18 +93,27 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_post_400_response'
$ref: '#/components/schemas/CreateConnectedApp_400_response'
description: Bad request response
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/connectedAppRespExt'
description: Success post response
/connectedApplications/{connAppId}:
/organizations/{orgId}/connectedApplications/{connAppId}:
delete:
description: deletes a Connected App
description: Deletes a single connected application
operationId: DeleteConnectedApp
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The ID of the connected app
explode: false
in: path
Expand All @@ -65,8 +128,17 @@ paths:
"204":
description: Success delete response
get:
description: Returns all connected apps
description: Get a single connected application
operationId: GetConnectedApp
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The ID of the connected app
explode: false
in: path
Expand All @@ -75,6 +147,14 @@ paths:
schema:
type: string
style: simple
- description: flag to indicate whether to return usage statistics
explode: true
in: query
name: includeUsage
required: false
schema:
type: boolean
style: form
responses:
"401":
description: Access token is missing or invalid
Expand All @@ -85,8 +165,17 @@ paths:
$ref: '#/components/schemas/connectedAppRespExt'
description: Success get response
patch:
description: patches a Connected App
description: Patches a single connected application
operationId: UpdateConnectedApp
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The ID of the connected app
explode: false
in: path
Expand All @@ -95,6 +184,14 @@ paths:
schema:
type: string
style: simple
- description: Asks service to reset secret as part of this operation
explode: true
in: query
name: resetSecret
required: false
schema:
type: boolean
style: form
requestBody:
content:
application/json:
Expand All @@ -107,18 +204,27 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_post_400_response'
$ref: '#/components/schemas/CreateConnectedApp_400_response'
description: Bad request response
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/connectedAppRespExt'
description: Success patch response
/connectedApplications/{connAppId}/scopes:
/organizations/{orgId}/connectedApplications/{connAppId}/scopes:
get:
description: Returns all scopes of a Connected App
description: Retrieves context-aware scopes assigned to the connected application
operationId: GetConnectedAppScopes
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The ID of the connected app
explode: false
in: path
Expand All @@ -127,18 +233,44 @@ paths:
schema:
type: string
style: simple
- description: The number of records to omit from the response.
explode: true
in: query
name: offset
required: false
schema:
type: integer
style: form
- description: Maximum records to retrieve per request.
explode: true
in: query
name: limit
required: false
schema:
type: integer
style: form
responses:
"401":
description: Access token is missing or invalid
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications__connAppId__scopes_get_200_response'
$ref: '#/components/schemas/GetConnectedAppScopes_200_response'
description: Success get scopes response
put:
description: replace a Connected App scopes
description: Replaces the entire list of context-aware scopes assigned to the
connected application
operationId: UpdateConnectedAppScopes
parameters:
- description: The ID of the organization
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The ID of the connected app
explode: false
in: path
Expand All @@ -159,7 +291,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_post_400_response'
$ref: '#/components/schemas/CreateConnectedApp_400_response'
description: Bad request response
"204":
description: Success scopes put response
Expand All @@ -171,13 +303,13 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_post_400_response'
$ref: '#/components/schemas/CreateConnectedApp_400_response'
description: Bad request response
SuccessListConnApps:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications_get_200_response'
$ref: '#/components/schemas/GetAllConnectedApps_200_response'
description: Success response
SuccessPostConnApps:
content:
Expand All @@ -203,7 +335,7 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/_connectedApplications__connAppId__scopes_get_200_response'
$ref: '#/components/schemas/GetConnectedAppScopes_200_response'
description: Success get scopes response
SuccessPutConnAppsScopes:
description: Success scopes put response
Expand Down Expand Up @@ -284,7 +416,7 @@ components:
type: array
title: connectedAppScopesPutBody
type: object
_connectedApplications_get_200_response:
GetAllConnectedApps_200_response:
example:
total: 0
data:
Expand All @@ -300,7 +432,7 @@ components:
title: total
type: integer
type: object
_connectedApplications_post_400_response:
CreateConnectedApp_400_response:
properties:
status:
default: 400
Expand All @@ -311,7 +443,7 @@ components:
title: the error message
type: string
type: object
_connectedApplications__connAppId__scopes_get_200_response:
GetConnectedAppScopes_200_response:
example:
total: 0
data:
Expand Down
Loading

0 comments on commit fb044fd

Please sign in to comment.