Skip to content

Commit 9beda15

Browse files
committed
update examples, add more, fix names
1 parent e65d370 commit 9beda15

File tree

34 files changed

+250
-26
lines changed

34 files changed

+250
-26
lines changed

docs/http_snippets/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Create HAR specs (.json files) in this directory.
2929
```
3030

3131
```shell
32-
# run and create for all nested api requests
33-
./run_and_create.sh nested_api
32+
# run and create for all relationship api requests
33+
./run_and_create.sh relationship_api
3434
```
3535

3636
```shell
37-
# run and create for delete example nested api requests
38-
./run_and_create.sh nested_api__delete
37+
# run and create for delete example relationship api requests
38+
./run_and_create.sh relationship_api__delete
3939
```
4040

4141
### Or do it manually:
@@ -75,15 +75,15 @@ python3 update_snippets_with_responses.py minimal_api
7575
```
7676

7777
```shell
78-
# Run requests for nested api, save output
79-
python3 update_snippets_with_responses.py nested_api
78+
# Run requests for relationship api, save output
79+
python3 update_snippets_with_responses.py relationship_api
8080
```
8181

8282
#### Verbose logs (DEBUG level)
8383

8484
```shell
85-
# Run requests for nested api, save output
86-
python3 update_snippets_with_responses.py nested_api --verbose
85+
# Run requests for relationship api, save output
86+
python3 update_snippets_with_responses.py relationship_api --verbose
8787
```
8888

8989
> **Pro tip:** run webserver for specs before running update_snippets_with_responses, otherwise it won't work 😉
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"method": "GET",
3+
"url": "http://localhost:5000/persons/1/computers",
4+
"httpVersion": "HTTP/1.1",
5+
"queryString": [
6+
],
7+
"headers": [
8+
{
9+
"name": "content-type",
10+
"value": "application/vnd.api+json"
11+
}
12+
]
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"method": "GET",
3+
"url": "http://localhost:5000/persons/1?include=computers",
4+
"httpVersion": "HTTP/1.1",
5+
"queryString": [
6+
],
7+
"headers": [
8+
{
9+
"name": "content-type",
10+
"value": "application/vnd.api+json"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)