🌍 G2 · Environment + Variable: {{baseUrl}}, {{bugId}}

G2 · Environment + Variable: A Postman variable like `{{baseUrl}}` is a **placeholder**, much like `${server.url}` in Java's `application.properties` — instead of hardcoding a va

A Postman variable like `{{baseUrl}}` is a **placeholder**, much like `${server.url}` in Java's `application.properties` — instead of hardcoding a value INSIDE the request, you use a single reference that changes when the environment (dev/staging/prod) changes. `{{bugId}}` is a bridge that CARRIES one request's RESULT into the NEXT request (you will build this actively in G4). **For a deep environment/variable scope guide → see the `/postman` page.**

🎬 Switching from dev to staging with One Click

Hardcoded URL (fragile)

{{baseUrl}} variable

If the URL is hardcoded in the request, dozens of requests must be fixed by hand on every environment change.

Switching to the `{{baseUrl}}` variable, the request is now written INDEPENDENT of the environment.

Switching the environment from "Local" to "Staging" updates ALL requests with ONE click.

From a Hardcoded Value to an Environment Variable

Create an environment…

Open an environment like "Bug Tracker - Local", define the baseUrl variable.

Instead of hardcoding the URL, write it as a {{baseUrl}} reference.

Switch the environment…

Switch between dev/staging with one click via the environment selector top-right.

Order the steps for moving from a hardcoded URL to an environment variable.