-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.http
62 lines (49 loc) · 1.54 KB
/
deployment.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
### Deployment documentation: https://docs.commercetools.com/connect/getting-started#deploy-a-connector
### Remember to create a new tag before creating a new release
### Create a BEARER TOKEN for deployments
POST https://auth.europe-west1.gcp.commercetools.com/oauth/token
Authorization: {{BASIC_AUTH_TOKEN}}
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
### Flow for creating draft and releasing connector app
@BEARER_TOKEN = '';
### Create draft deployment
POST https://connect.europe-west1.gcp.commercetools.com/connectors/drafts
Authorization: {{BEARER_TOKEN}}
Content-Type: application/json
{
"key": "relewise",
"name": "Relewise",
"description": "Synchronize all products from a commercetools store to Relewise",
"creator": {
"email": "[email protected]",
"company": "Relewise"
},
"repository": {
"url": "https://github.com/Relewise/relewise-integrations-commercetools-connect.git",
"tag": "0.0.2"
}
}
### Request a ConnectorStaged for previewable
POST https://connect.europe-west1.gcp.commercetools.com/connectors/drafts/key=relewise
Authorization: {{BEARER_TOKEN}}
Content-Type: application/json
{
"version" : 1,
"actions" : [ {
"action" : "updatePreviewable"
} ]
}
### Submit a ConnectorStaged for certification
POST https://connect.eu-central-1.aws.commercetools.com/connectors/drafts/key=relewise-connector
Authorization: {{BEARER_TOKEN}}
Content-Type: application/json
{
"version": 1,
"actions": [
{
"action": "publish",
"certification": true
}
]
}