Skip to content

Commit b7a6e23

Browse files
committed
Cleanup Lesson 5 Running Collections
Removes unneeded draft section.
1 parent 84b6cc2 commit b7a6e23

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

tutorial/content/Lesson 5/02-running-collections.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This will execute all requests in the collection in the order they appear (alpha
2727
That this may fail because the certain requests depend on variables that are set in other requests.
2828
{{< /callout >}}
2929

30-
## Handling Variables (e.g. {{newDogId}})
30+
## Running a Single Request
3131

3232
One of the most powerful features of the CLI is that it maintains the **runtime state** of your variables, just like the desktop app.
3333

@@ -65,29 +65,6 @@ which results in:
6565
└───────────────┴──────────────┘
6666
```
6767

68-
### Get Dog
69-
70-
Questions:
71-
72-
1. When running create dog, how do I get the actual response?
73-
2. How can I get the newDogId variable?
74-
3. Do sequences need to be set manually?
75-
76-
**Get Dog**: In a subsequent request, we use that variable to fetch any details or verify the creation:
77-
```http
78-
GET /api/dogs/{{newDogId}}
79-
```
80-
81-
Now let's run **Get Dog**
82-
```bash
83-
#TODO: Not working, how can I get the newDogId variable?
84-
bru run Dogs/Get Dog.yml --env Local
85-
```
86-
87-
When you run `bru run`, Bruno executes the "Create Dog" request first, sets the `newDogId` variable, and then correctly substitutes `{{newDogId}}` in the "Get Dog" request. You don't need to do anything special; the context is preserved automatically for the duration of the run.
88-
89-
{{% /steps %}}
90-
9168
## Understanding the Output
9269

9370
When the run completes, you will see a summary table in your terminal. Here is how to interpret it:

0 commit comments

Comments
 (0)