Skip to content

Commit da8f42f

Browse files
Merge pull request #252 from hmtbr/fix-webhook-sample-readme
fix code repo url, branch name, and context directory
2 parents 52ef6bf + e7e0b71 commit da8f42f

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

discovery-data/webhook-enrichment-sample/granite/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/
2323
3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code.
2424
- In **Create application**, click **Specify build details** and enter the following:
2525
- Source
26-
- Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?**
26+
- Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads`
2727
- Code repo access: `None`
28-
- Branch name: `main`
29-
- Context directory: `granite`
28+
- Branch name: `master`
29+
- Context directory: `discovery-data/webhook-enrichment-sample/granite`
3030
- Strategy
3131
- Strategy: `Dockerfile`
3232
- Output

discovery-data/webhook-enrichment-sample/regex/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/
1616
3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code.
1717
- In **Create application**, click **Specify build details** and enter the following:
1818
- Source
19-
- Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?**
19+
- Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads`
2020
- Code repo access: `None`
21-
- Branch name: `main`
22-
- Context directory: `regex`
21+
- Branch name: `master`
22+
- Context directory: `discovery-data/webhook-enrichment-sample/regex`
2323
- Strategy
2424
- Strategy: `Dockerfile`
2525
- Output

discovery-data/webhook-enrichment-sample/slate/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/
5050
```shell
5151
SCORING_API_TOKEN=$(
5252
curl -k -X POST 'https://{hostname of your cp4d instance}/icp4d-api/v1/authorize' \
53-
--header "Content-Type: application/json"
53+
--header "Content-Type: application/json" \
5454
-d "{\"username\":\"admin\",\"api_key\":\"{api key of your cp4d instance}\"}" \
5555
| jq .token
5656
)
5757
```
5858
3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code.
5959
- In **Create application**, click **Specify build details** and enter the following:
6060
- Source
61-
- Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?**
61+
- Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads`
6262
- Code repo access: `None`
63-
- Branch name: `main`
64-
- Context directory: `slate/app`
63+
- Branch name: `master`
64+
- Context directory: `discovery-data/webhook-enrichment-sample/slate/app`
6565
- Strategy
6666
- Strategy: `Dockerfile`
6767
- Output

discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/
3535
3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code.
3636
- In **Create application**, click **Specify build details** and enter the following:
3737
- Source
38-
- Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?**
38+
- Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads`
3939
- Code repo access: `None`
40-
- Branch name: `main`
41-
- Context directory: `slate/experimental/proxy`
40+
- Branch name: `master`
41+
- Context directory: `discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/proxy`
4242
- Strategy
4343
- Strategy: `Dockerfile`
4444
- Output
@@ -55,7 +55,7 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/
5555
```shell
5656
SCORING_API_TOKEN=$(
5757
curl -k -X POST 'https://{hostname of your cp4d instance}/icp4d-api/v1/authorize' \
58-
--header "Content-Type: application/json"
58+
--header "Content-Type: application/json" \
5959
-d "{\"username\":\"admin\",\"api_key\":\"{api key of your cp4d instance}\"}" \
6060
| jq .token
6161
)
@@ -64,16 +64,16 @@ SCORING_API_TOKEN=$(
6464
```bash
6565
curl -X POST {auth} \
6666
--header 'Content-Type: multipart/form-data' \
67-
--form 'enrichment={"name":"my-first-webhook-enrichment", \
68-
"type":"webhook", \
69-
"options":{"url":"{your_code_engine_app_domain}/webhook", \
70-
"headers":[
67+
--form 'enrichment={"name":"my-first-webhook-enrichment",
68+
"type":"webhook",
69+
"options":{"url":"{your_code_engine_app_domain}/webhook",
70+
"headers":[
7171
{
7272
"name": "Authorization",
7373
"value": "Bearer {SCORING_API_TOKEN}"
7474
}
75-
], \
76-
"location_encoding":"utf-32"}}' \
75+
],
76+
"location_encoding":"utf-32"}}' \
7777
'{url}/v2/projects/{project_id}/enrichments?version=2023-03-31'
7878
```
7979
4. Create a collection in the project and apply the webhook enrichment to the collection.

0 commit comments

Comments
 (0)