GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove basePath: "/" by navinger · Pull Request #589 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@navinger

@navinger navinger commented Mar 29, 2018

Copy link
Copy Markdown
Contributor

I'm updating all the openapi files in the getting-started sample in all the sample repos to remove basePath: "/"
Here's the reason from simonz130:

From the OpenAPI 2 spec:

  • basePath: "If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). "
  • Paths for methods: "A relative path to an individual endpoint. The field name MUST begin with a slash. The path is appended to the basePath in order to construct the full URL."

This OpenAPI getting-started sample have basePath: "/", which (per strict spec interpretation) means all the paths start with double-slashes. (e.g "//v1/shelves" rather than "/v1/shelves"). Removing basepath="/" fixes that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
navinger and others added 2 commits March 29, 2018 12:30
@navinger
Remove basePath: "/"
4127121
I'm updating all the openapi files in the getting-started sample in all the sample repos to remove basePath: "/"
Here's the reason from simonz130:

From the OpenAPI 2 spec:
* basePath: "If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). "
* Paths for methods: "A relative path to an individual endpoint. The field name MUST begin with a slash. The path is appended to the basePath in order to construct the full URL."

This OpenAPI getting-started sample have basePath: "/", which (per strict spec interpretation) means all the paths start with double-slashes. (e.g "//v1/shelves" rather than "/v1/shelves"). Removing basepath="/" fixes that.
Ace Nassri
Merge branch 'master' into patch-6
5820e72
@codecov

codecov Bot commented Mar 30, 2018

Copy link
Copy Markdown

Codecov Report

Merging #589 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #589   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines           3      3           
=====================================
  Hits            3      3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48c625e...5820e72. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jmdobry
jmdobry approved these changes Apr 6, 2018
View reviewed changes
@jmdobry
jmdobry merged commit 9828724 into GoogleCloudPlatform:master Apr 6, 2018
@snyk-bot snyk-bot mentioned this pull request Sep 2, 2021
[Snyk] Security upgrade @google-cloud/pubsub from 0.22.2 to 0.29.0 leejh3224/nodejs-docs-samples#340
Open
@NimJay NimJay mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-language #2827
Merged
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@release-please
chore: release 4.2.5 (#589)
b79fc71
🤖 I have created a release \*beep\* \*boop\*
---
### [4.2.5](https://www.github.com/googleapis/nodejs-language/compare/v4.2.4...v4.2.5) (2021-06-22)


### Bug Fixes

* make request optional in all cases ([#588](https://www.github.com/googleapis/nodejs-language/issues/588)) ([878d365](https://www.github.com/googleapis/nodejs-language/commit/878d365dd0fba24ac58dcc80939e250c77d8cb53))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@release-please @NimJay
chore: release 4.2.5 (#589)
7453008
🤖 I have created a release \*beep\* \*boop\*
---
### [4.2.5](https://www.github.com/googleapis/nodejs-language/compare/v4.2.4...v4.2.5) (2021-06-22)


### Bug Fixes

* make request optional in all cases ([#588](https://www.github.com/googleapis/nodejs-language/issues/588)) ([878d365](https://www.github.com/googleapis/nodejs-language/commit/878d365dd0fba24ac58dcc80939e250c77d8cb53))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ace-n pushed a commit that referenced this pull request Nov 16, 2022
@release-please
chore: release 3.4.1 (#618)
9e09d5b
🤖 I have created a release \*beep\* \*boop\*
---
### [3.4.1](https://www.github.com/googleapis/nodejs-video-intelligence/compare/v3.4.0...v3.4.1) (2021-09-15)


### Bug Fixes

* **deps:** require google-gax v2.24.1 ([#589](https://www.github.com/googleapis/nodejs-video-intelligence/issues/589)) ([6af1a84](https://www.github.com/googleapis/nodejs-video-intelligence/commit/6af1a84112ab56a3ff2862ff7a5eda0da9772244))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@release-please Ace Nassri
chore: release 3.4.1 (#618)
42b1e8e
🤖 I have created a release \*beep\* \*boop\*
---
### [3.4.1](https://www.github.com/googleapis/nodejs-video-intelligence/compare/v3.4.0...v3.4.1) (2021-09-15)


### Bug Fixes

* **deps:** require google-gax v2.24.1 ([#589](https://www.github.com/googleapis/nodejs-video-intelligence/issues/589)) ([6af1a84](https://www.github.com/googleapis/nodejs-video-intelligence/commit/6af1a84112ab56a3ff2862ff7a5eda0da9772244))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ahrarmonsur pushed a commit that referenced this pull request Nov 17, 2022
@release-please Ahrar Monsur
chore: release 3.4.1 (#618)
87274e4
🤖 I have created a release \*beep\* \*boop\*
---
### [3.4.1](https://www.github.com/googleapis/nodejs-video-intelligence/compare/v3.4.0...v3.4.1) (2021-09-15)


### Bug Fixes

* **deps:** require google-gax v2.24.1 ([#589](https://www.github.com/googleapis/nodejs-video-intelligence/issues/589)) ([6af1a84](https://www.github.com/googleapis/nodejs-video-intelligence/commit/6af1a84112ab56a3ff2862ff7a5eda0da9772244))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ahrarmonsur pushed a commit that referenced this pull request Nov 18, 2022
@JustinBeckwith
fix: bump min version of dependencies (#589)
684e12b
ahrarmonsur pushed a commit that referenced this pull request Nov 18, 2022
@JustinBeckwith
fix: bump min version of dependencies (#589)
8da02c5
@ahrarmonsur ahrarmonsur mentioned this pull request Nov 18, 2022
migrate code from googleapis/nodejs-dialogflow #2873
Merged
NimJay pushed a commit that referenced this pull request Nov 18, 2022
@JustinBeckwith @NimJay
fix: bump min version of dependencies (#589)
24cfb35
@NimJay NimJay mentioned this pull request Nov 19, 2022
migrate code from googleapis/nodejs-dataproc #2878
Merged
NimJay pushed a commit that referenced this pull request Nov 19, 2022
@alexander-fenster @gcf-owl-bot
build!: update library to use Node 12 (#589)
46c9e4f
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
NimJay pushed a commit that referenced this pull request Nov 19, 2022
@alexander-fenster @gcf-owl-bot @NimJay
build!: update library to use Node 12 (#589)
d63cc91
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@Matthelonianxl Matthelonianxl mentioned this pull request Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 Matthelonianxl/nodejs-docs-samples#161
Open
This was referenced Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 leejh3224/nodejs-docs-samples#561
Open
[Snyk] Security upgrade jsonwebtoken from 8.4.0 to 9.0.0 leejh3224/nodejs-docs-samples#562
Open
This was referenced Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#370
Open
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#371
Open
@Matthelonianxl Matthelonianxl mentioned this pull request Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 Matthelonianxl/nodejs-docs-samples#162
Open
@ninadhatkar ninadhatkar mentioned this pull request Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 7.4.3 to 9.0.0 ninadhatkar/nodejs-docs-samples#301
Open
@snyk-bot snyk-bot mentioned this pull request Dec 22, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#372
Open
@dlminvestments dlminvestments mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 dlminvestments/nodejs-docs-samples#401
Merged
@pedroarapua pedroarapua mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#373
Open
@aqualen aqualen mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 aqualen/nodejs-docs-samples#82
Open
@leejh3224 leejh3224 mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.4.0 to 9.0.0 leejh3224/nodejs-docs-samples#563
Open
@snyk-bot snyk-bot mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 7.4.1 to 9.0.0 ninadhatkar/nodejs-docs-samples#302
Open
@dlminvestments dlminvestments mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 dlminvestments/nodejs-docs-samples#402
Merged
@Matthelonianxl Matthelonianxl mentioned this pull request Dec 23, 2022
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 Matthelonianxl/nodejs-docs-samples#165
Open
@Matthelonianxl Matthelonianxl mentioned this pull request Jun 21, 2023
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 Matthelonianxl/nodejs-docs-samples#180
Open
This was referenced Jun 21, 2023
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#406
Open
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 pedroarapua/nodejs-docs-samples-gcp#410
Open
@Matthelonianxl Matthelonianxl mentioned this pull request Jun 23, 2023
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0 Matthelonianxl/nodejs-docs-samples#188
Open
This was referenced Nov 28, 2023
[Snyk] Security upgrade @google-cloud/pubsub from 0.28.1 to 0.29.0 pedroarapua/nodejs-docs-samples-gcp#456
Open
[Snyk] Security upgrade @google-cloud/pubsub from 0.28.1 to 0.29.0 pedroarapua/nodejs-docs-samples-gcp#459
Open
[Snyk] Security upgrade @google-cloud/pubsub from 0.28.1 to 0.29.0 pedroarapua/nodejs-docs-samples-gcp#477
Open
[Snyk] Security upgrade @google-cloud/pubsub from 0.28.1 to 0.29.0 pedroarapua/nodejs-docs-samples-gcp#478
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jmdobry jmdobry jmdobry approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@navinger @jmdobry
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.