diff --git a/discovery-data/webhook-enrichment-sample/granite/README.md b/discovery-data/webhook-enrichment-sample/granite/README.md index 5177e02..08e85bc 100644 --- a/discovery-data/webhook-enrichment-sample/granite/README.md +++ b/discovery-data/webhook-enrichment-sample/granite/README.md @@ -23,10 +23,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/ 3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code. - In **Create application**, click **Specify build details** and enter the following: - Source - - Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?** + - Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads` - Code repo access: `None` - - Branch name: `main` - - Context directory: `granite` + - Branch name: `master` + - Context directory: `discovery-data/webhook-enrichment-sample/granite` - Strategy - Strategy: `Dockerfile` - Output diff --git a/discovery-data/webhook-enrichment-sample/regex/README.md b/discovery-data/webhook-enrichment-sample/regex/README.md index 5dee9c2..0ad7b14 100644 --- a/discovery-data/webhook-enrichment-sample/regex/README.md +++ b/discovery-data/webhook-enrichment-sample/regex/README.md @@ -16,10 +16,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/ 3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code. - In **Create application**, click **Specify build details** and enter the following: - Source - - Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?** + - Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads` - Code repo access: `None` - - Branch name: `main` - - Context directory: `regex` + - Branch name: `master` + - Context directory: `discovery-data/webhook-enrichment-sample/regex` - Strategy - Strategy: `Dockerfile` - Output diff --git a/discovery-data/webhook-enrichment-sample/slate/README.md b/discovery-data/webhook-enrichment-sample/slate/README.md index 2400318..a044c9f 100644 --- a/discovery-data/webhook-enrichment-sample/slate/README.md +++ b/discovery-data/webhook-enrichment-sample/slate/README.md @@ -50,7 +50,7 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/ ```shell SCORING_API_TOKEN=$( curl -k -X POST 'https://{hostname of your cp4d instance}/icp4d-api/v1/authorize' \ - --header "Content-Type: application/json" + --header "Content-Type: application/json" \ -d "{\"username\":\"admin\",\"api_key\":\"{api key of your cp4d instance}\"}" \ | jq .token ) @@ -58,10 +58,10 @@ SCORING_API_TOKEN=$( 3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code. - In **Create application**, click **Specify build details** and enter the following: - Source - - Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?** + - Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads` - Code repo access: `None` - - Branch name: `main` - - Context directory: `slate/app` + - Branch name: `master` + - Context directory: `discovery-data/webhook-enrichment-sample/slate/app` - Strategy - Strategy: `Dockerfile` - Output diff --git a/discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/README.md b/discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/README.md index d154990..7aa2580 100644 --- a/discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/README.md +++ b/discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/README.md @@ -35,10 +35,10 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/ 3. [Deploy the application](https://cloud.ibm.com/docs/codeengine?topic=codeengine-app-source-code) from this repository source code. - In **Create application**, click **Specify build details** and enter the following: - Source - - Code repo URL: **TODO: public URL of this repository. https://github.com/watson-developer-cloud/discovery-webhook-enrichment ...?** + - Code repo URL: `https://github.com/watson-developer-cloud/doc-tutorial-downloads` - Code repo access: `None` - - Branch name: `main` - - Context directory: `slate/experimental/proxy` + - Branch name: `master` + - Context directory: `discovery-data/webhook-enrichment-sample/slate/wml-as-webhook/proxy` - Strategy - Strategy: `Dockerfile` - Output @@ -55,7 +55,7 @@ In this tutorial, we will use [IBM Cloud Code Engine](https://www.ibm.com/cloud/ ```shell SCORING_API_TOKEN=$( curl -k -X POST 'https://{hostname of your cp4d instance}/icp4d-api/v1/authorize' \ - --header "Content-Type: application/json" + --header "Content-Type: application/json" \ -d "{\"username\":\"admin\",\"api_key\":\"{api key of your cp4d instance}\"}" \ | jq .token ) @@ -64,16 +64,16 @@ SCORING_API_TOKEN=$( ```bash curl -X POST {auth} \ --header 'Content-Type: multipart/form-data' \ - --form 'enrichment={"name":"my-first-webhook-enrichment", \ - "type":"webhook", \ - "options":{"url":"{your_code_engine_app_domain}/webhook", \ - "headers":[ + --form 'enrichment={"name":"my-first-webhook-enrichment", + "type":"webhook", + "options":{"url":"{your_code_engine_app_domain}/webhook", + "headers":[ { "name": "Authorization", "value": "Bearer {SCORING_API_TOKEN}" } - ], \ - "location_encoding":"utf-32"}}' \ + ], + "location_encoding":"utf-32"}}' \ '{url}/v2/projects/{project_id}/enrichments?version=2023-03-31' ``` 4. Create a collection in the project and apply the webhook enrichment to the collection.