Skip to content

URL Path Parameters #834#840

Merged
liyasthomas merged 4 commits intohoppscotch:masterfrom
sboulema:feature/URL-Path-Parameters-#834
May 5, 2020
Merged

URL Path Parameters #834#840
liyasthomas merged 4 commits intohoppscotch:masterfrom
sboulema:feature/URL-Path-Parameters-#834

Conversation

@sboulema
Copy link
Copy Markdown
Contributor

@sboulema sboulema commented May 3, 2020

PathParameter

Adds a type dropdown to the current parameter list. Based on the type, the parameter either gets included as a query parameter or gets added as an environment variable so it can be used in the current url path template replacement.
Parameters without a type are treated as query parameters so the implementation is backwards-compatible.

This way the parameter gets saved with the request and does not have to be saved with the environment.

@TravisBuddy
Copy link
Copy Markdown

Hey @sboulema,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 9435b390-8d32-11ea-bfcd-ab7027f5d872

@TravisBuddy
Copy link
Copy Markdown

Hey @sboulema,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: ab681df0-8d32-11ea-bfcd-ab7027f5d872

@liyasthomas liyasthomas self-requested a review May 5, 2020 01:02
@liyasthomas liyasthomas added feature New feature or request need testing Needs to be tested before merging onto production labels May 5, 2020
@liyasthomas
Copy link
Copy Markdown
Member

@sboulema I can't reproduce this PR's intended behaviour on the deploy preview: https://deploy-preview-840--postwoman.netlify.app/

Environment variables added from parameters list with Path type were not recognised.

@sboulema
Copy link
Copy Markdown
Contributor Author

sboulema commented May 5, 2020

Wow sorry it only worked in a couple of scenarios. Updated the PR works much more reliably now!

@TravisBuddy
Copy link
Copy Markdown

Hey @sboulema,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 1e5d2420-8eca-11ea-80eb-6b769f7cd14d

@TravisBuddy
Copy link
Copy Markdown

Hey @sboulema,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: dda2b840-8ef2-11ea-80eb-6b769f7cd14d

@liyasthomas liyasthomas merged commit 9163e27 into hoppscotch:master May 5, 2020
@sboulema sboulema deleted the feature/URL-Path-Parameters-#834 branch May 6, 2020 18:40
@anstosa
Copy link
Copy Markdown

anstosa commented Feb 28, 2022

Looks like this was merged but I don't see it in the UI. Has it moved or changed? Or is setting runtime environment variables via pre-request scripts still the preferred way of implementing URL path parameters?

@phate89 phate89 mentioned this pull request Jun 8, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request need testing Needs to be tested before merging onto production

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants