Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14793 native trigger actions from resco cloud #1264

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions certified-connectors/RescoCloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ This connector supports the following operations:
* `Update record`: Update record by specific ID.
* `Get current user`: Get current user record associated with login credentials.

## Supported Triggers

* `When an item is created,updated or deleted`: Trigger when an item is created,updated or deleted.

For more information on parameters accepted/required by the connector's operations, please contact us at www.resco.net/contact-support.
104 changes: 104 additions & 0 deletions certified-connectors/RescoCloud/apiDefinition.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,81 @@
}
}
}
},
"/$hook": {
"x-ms-notification-content": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "id"
}
}
},
"description": "Webhook response"
},
"post": {
"responses": {
"201": {
"description": "Created"
}
},
"summary": "When an item is created-updated-deleted",
"operationId": "TriggerCreate",
"description": "When an item is created-updated-deleted",
"x-ms-trigger": "single",
"parameters": [
{
"$ref": "#/parameters/Parameter.Entity.Trigger"
},
{
"$ref": "#/parameters/List.Trigger.Action"
},
{
"name": "body",
"in": "body",
"required": false,
"schema": {
"type": "object",
"properties": {
"callbackUrl": {
"type": "string",
"description": "callbackUrl",
"x-ms-notification-url": true,
"x-ms-visibility": "internal"
}
},
"required": [
"callbackUrl"
]
}
}
]
},
"delete": {
"responses": {
"204": {
"description": "Deleted"
},
"404": {
"description": "Hook not found"
}
},
"summary": "Delete Hook",
"description": "To delete a registered hook when not needed",
"operationId": "TriggerDelete",
"x-ms-visibility": "internal",
"parameters": [
{
"name": "$id",
"in": "query",
"required": true,
"type": "string",
"x-ms-url-encoding": "single"
}
]
}
}
},
"definitions": {
Expand Down Expand Up @@ -725,6 +800,21 @@
"value-collection": "value"
}
},
"Parameter.Entity.Trigger": {
"name": "$entity",
"in": "query",
"required": true,
"type": "string",
"description": "Name of the entity",
"x-ms-summary": "Entity name",
"x-ms-url-encoding": "single",
"x-ms-dynamic-values": {
"operationId": "Schema-Entities",
"value-path": "name",
"value-collection": "value",
"value-title": "title"
}
},
"Definition.Entity": {
"in": "query",
"name": "$entitySet",
Expand Down Expand Up @@ -847,6 +937,20 @@
"type": "boolean",
"default": true,
"required": true
},
"List.Trigger.Action": {
"name": "$action",
"in": "query",
"required": true,
"type": "string",
"description": "Action",
"x-ms-summary": "Action name",
"x-ms-url-encoding": "single",
"enum": [
"Create",
"Update",
"Delete"
]
}
},
"responses": {
Expand Down
4 changes: 3 additions & 1 deletion certified-connectors/RescoCloud/apiProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@
"Record-Get",
"Record-Delete",
"Record-Update",
"User-Get"
"User-Get",
"TriggerCreate",
"TriggerDelete"
],
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('server')/odata/v4/@connectionParameters('organization')/"
}
Expand Down