Skip to content

Commit

Permalink
feat(samples): add sample of configuring alternate apiEndpoint (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmiro authored and bcoe committed Nov 26, 2019
1 parent 92f59ed commit eb7d167
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/google-cloud-vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ has instructions for running the samples.
| Detect.v1p3beta1 | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p3beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p3beta1.js,samples/README.md) |
| Face Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/faceDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/faceDetection.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Set Endpoint | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/setEndpoint.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/setEndpoint.js,samples/README.md) |
| Text Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/textDetection.js,samples/README.md) |


Expand Down
3 changes: 2 additions & 1 deletion packages/google-cloud-vision/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com"
"www.googleapis.com",
"setEndpoint.js"
]
}
17 changes: 17 additions & 0 deletions packages/google-cloud-vision/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [Detect.v1p3beta1](#detect.v1p3beta1)
* [Face Detection](#face-detection)
* [Quickstart](#quickstart)
* [Set Endpoint](#set-endpoint)
* [Text Detection](#text-detection)

## Before you begin
Expand Down Expand Up @@ -113,6 +114,22 @@ __Usage:__



### Set Endpoint

View the [source code]https://github.com/googleapis/nodejs-vision/blob/master/samples/setEndpoint.js)

[![Open in Cloud shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/setEndpoint.js,samples/README.md)

__Usage:__

`node setEndpoint.js`

-----





### Text Detection

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js).
Expand Down

0 comments on commit eb7d167

Please sign in to comment.