Skip to content

Commit

Permalink
docs: updated README.md for transfer-02-consumer-pull (#225)
Browse files Browse the repository at this point in the history
- changed the command for requesting data with the token to target the provider instead of the consumer
  • Loading branch information
man8pr authored Mar 26, 2024
1 parent 65f9404 commit 95c9164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transfer/transfer-02-consumer-pull/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ to get the data from the provider:
```json
{
"id": "591bb609-1edb-4a6b-babe-50f1eca3e1e9",
"endpoint": "http://localhost:29291/public/",
"endpoint": "http://localhost:19291/public/",
"authKey": "Authorization",
"authCode": "{{auth-code}}",
"properties": {
Expand All @@ -112,7 +112,7 @@ Once this json is read, use a tool like postman or curl to execute the following
data

```bash
curl --location --request GET 'http://localhost:29291/public/' --header 'Authorization: <auth code>'
curl --location --request GET 'http://localhost:19291/public/' --header 'Authorization: <auth code>'
```

At the end, and to be sure that you correctly achieved the pull, you can check if the data you get
Expand All @@ -122,7 +122,7 @@ is the same as the one you can get at https://jsonplaceholder.typicode.com/users
Since we configured the `HttpData` with `proxyPath`, we could also ask for a specific user with:

```bash
curl --location --request GET 'http://localhost:29291/public/1' --header 'Authorization: <auth code>'
curl --location --request GET 'http://localhost:19291/public/1' --header 'Authorization: <auth code>'
```

And the data returned will be the same as in https://jsonplaceholder.typicode.com/users/1
Expand Down

0 comments on commit 95c9164

Please sign in to comment.