Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 7189b87

Browse files
committed
MINOR: add project webhooks (#827)
* add project webhooks * use only one serializer * add test * add document.deletion hook, better tests for webhooks * add project_id to project.creation webhook * remove breakpoint * send all webhooks from views * add contect to webhook payload serializer * add context to webhook payload serializer * add folder webhooks * wip: add folder webhooks * add invitation webhooks * no more unmocked http calls in tests * add visa webhooks * fix typo * send webhook id in payload * add bcf comment test
1 parent 28d97f8 commit 7189b87

File tree

12 files changed

+954
-113
lines changed

12 files changed

+954
-113
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,17 @@ Class | Method | HTTP request | Description
474474
*bimdata.SsoApi* | [**denyInvitation**](docs/SsoApi.md#denyInvitation) | **POST** /identity-provider/invitation/{id}/deny | Deny an invitation
475475
*bimdata.SsoApi* | [**getInvitation**](docs/SsoApi.md#getInvitation) | **GET** /identity-provider/invitation/{id} | Retrieve an invitation
476476
*bimdata.SsoApi* | [**getInvitations**](docs/SsoApi.md#getInvitations) | **GET** /identity-provider/invitation | Retrieve all invitations
477+
*bimdata.WebhookApi* | [**createProjectWebHook**](docs/WebhookApi.md#createProjectWebHook) | **POST** /cloud/{cloud_pk}/project/{project_pk}/webhook | Create a new project Webhook
477478
*bimdata.WebhookApi* | [**createWebHook**](docs/WebhookApi.md#createWebHook) | **POST** /cloud/{cloud_pk}/webhook | Create a new Webhook
479+
*bimdata.WebhookApi* | [**deleteProjectWebHook**](docs/WebhookApi.md#deleteProjectWebHook) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/webhook/{id} | Delete a webhook
478480
*bimdata.WebhookApi* | [**deleteWebHook**](docs/WebhookApi.md#deleteWebHook) | **DELETE** /cloud/{cloud_pk}/webhook/{id} | Delete a webhook
481+
*bimdata.WebhookApi* | [**getProjectWebHook**](docs/WebhookApi.md#getProjectWebHook) | **GET** /cloud/{cloud_pk}/project/{project_pk}/webhook/{id} | Retrieve one configured project webhook
482+
*bimdata.WebhookApi* | [**getProjectWebHooks**](docs/WebhookApi.md#getProjectWebHooks) | **GET** /cloud/{cloud_pk}/project/{project_pk}/webhook | Retrieve all configured project webhooks
479483
*bimdata.WebhookApi* | [**getWebHook**](docs/WebhookApi.md#getWebHook) | **GET** /cloud/{cloud_pk}/webhook/{id} | Retrieve one configured webhook
480484
*bimdata.WebhookApi* | [**getWebHooks**](docs/WebhookApi.md#getWebHooks) | **GET** /cloud/{cloud_pk}/webhook | Retrieve all configured webhooks
485+
*bimdata.WebhookApi* | [**pingProjectWebHook**](docs/WebhookApi.md#pingProjectWebHook) | **POST** /cloud/{cloud_pk}/project/{project_pk}/webhook/{id}/ping | Test a project webhook
481486
*bimdata.WebhookApi* | [**pingWebHook**](docs/WebhookApi.md#pingWebHook) | **POST** /cloud/{cloud_pk}/webhook/{id}/ping | Test a webhook
487+
*bimdata.WebhookApi* | [**updateProjectWebHook**](docs/WebhookApi.md#updateProjectWebHook) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/webhook/{id} | Update some field of a webhook
482488
*bimdata.WebhookApi* | [**updateWebHook**](docs/WebhookApi.md#updateWebHook) | **PATCH** /cloud/{cloud_pk}/webhook/{id} | Update some field of a webhook
483489

484490

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ Name | Type | Description | Notes
960960
961961
Create a document
962962

963-
Create a document. If the document is one of {'GLTF', 'IFC', 'POINT_CLOUD', 'DWG', 'DXF', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
963+
Create a document. If the document is one of {'POINT_CLOUD', 'IFC', 'GLTF', 'DWG', 'OBJ', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
964964

965965
### Example
966966

0 commit comments

Comments
 (0)