Skip to content

Commit f625130

Browse files
committed
update invite endpoint part2
1 parent 26f2b0a commit f625130

18 files changed

+741
-184
lines changed

docs/Project API.postman_collection.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "47adb133-9da4-4cc6-aa73-c7e7a2eb675e",
3+
"_postman_id": "a0a9f1a7-84b1-45ad-a4c0-baa3552118cb",
44
"name": "Project API",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
@@ -1110,6 +1110,21 @@
11101110
},
11111111
{
11121112
"name": "Create project customer with valid values",
1113+
"event": [
1114+
{
1115+
"listen": "test",
1116+
"script": {
1117+
"id": "320b75fe-958d-44ee-b2d2-1716b7b3e207",
1118+
"exec": [
1119+
"pm.test(\"Status code is 201\", function () {",
1120+
" pm.response.to.have.status(201);",
1121+
" pm.environment.set(\"inviteId2\", pm.response.json().success[0].id);",
1122+
"});"
1123+
],
1124+
"type": "text/javascript"
1125+
}
1126+
}
1127+
],
11131128
"request": {
11141129
"method": "POST",
11151130
"header": [
@@ -1398,6 +1413,38 @@
13981413
}
13991414
},
14001415
"response": []
1416+
},
1417+
{
1418+
"name": "Cancel project member invite",
1419+
"request": {
1420+
"method": "DELETE",
1421+
"header": [
1422+
{
1423+
"key": "Authorization",
1424+
"value": "Bearer {{jwt-token-copilot-40051332}}"
1425+
},
1426+
{
1427+
"key": "Content-Type",
1428+
"name": "Content-Type",
1429+
"value": "application/json",
1430+
"type": "text"
1431+
}
1432+
],
1433+
"url": {
1434+
"raw": "{{api-url}}/projects/{{projectId}}/invites/{{inviteId2}}",
1435+
"host": [
1436+
"{{api-url}}"
1437+
],
1438+
"path": [
1439+
"projects",
1440+
"{{projectId}}",
1441+
"invites",
1442+
"{{inviteId2}}"
1443+
]
1444+
},
1445+
"description": "Update a project's member."
1446+
},
1447+
"response": []
14011448
}
14021449
],
14031450
"event": [

docs/swagger.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ paths:
28902890
example:
28912891
'work.create': true
28922892
'workItem.edit': true
2893-
2893+
28942894
'401':
28952895
description: Unauthorized
28962896
schema:
@@ -3647,6 +3647,37 @@ paths:
36473647
description: Internal Server Error
36483648
schema:
36493649
$ref: '#/definitions/ErrorModel'
3650+
delete:
3651+
tags:
3652+
- project member invite
3653+
operationId: deleteProjectMemberInvite
3654+
security:
3655+
- Bearer: []
3656+
description: >-
3657+
Cancel an invite. All users who can access this endpoint, however more
3658+
restriction will be applied based on role to be cancelled.
3659+
parameters:
3660+
- $ref: '#/parameters/projectIdParam'
3661+
- $ref: '#/parameters/inviteIdParam'
3662+
responses:
3663+
'204':
3664+
description: Cancel success
3665+
'400':
3666+
description: Bad request
3667+
schema:
3668+
$ref: '#/definitions/ErrorModel'
3669+
'403':
3670+
description: Forbidden
3671+
schema:
3672+
$ref: '#/definitions/ErrorModel'
3673+
'404':
3674+
description: Not Found
3675+
schema:
3676+
$ref: '#/definitions/ErrorModel'
3677+
'500':
3678+
description: Internal Server Error
3679+
schema:
3680+
$ref: '#/definitions/ErrorModel'
36503681

36513682
'/projects/metadata/form/{key}':
36523683
get:
@@ -6149,6 +6180,9 @@ definitions:
61496180
email:
61506181
type: string
61516182
description: The user email
6183+
hashEmail:
6184+
type: string
6185+
description: The email hash value
61526186
role:
61536187
description: The user role in the project
61546188
type: string
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--
2+
-- UPDATE EXISTING TABLES:
3+
-- project_member_invites:
4+
-- added column `hashEmail`
5+
6+
--
7+
-- project_member_invites
8+
9+
-- Add new column
10+
ALTER TABLE project_member_invites ADD COLUMN "hashEmail" character varying(255) ;

package-lock.json

Lines changed: 33 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)