Skip to content

Commit

Permalink
doc: break down example to two segments
Browse files Browse the repository at this point in the history
  • Loading branch information
subomi committed Jun 23, 2024
1 parent 2c75ccb commit 0a04212
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,17 @@ This library doesn't support multiple transformations per version as of the time
## Example
Check the [example](./example) directory for a full example. Do the following to run the example:

1. Run the server.
```bash
$ git clone https://github.com/subomi/requestmigrations

$ cd example/basic

$ go run *.go
```

# Open another terminal in the same directory to run
# call the API and observe different responses from the same API.

2. Open another terminal and call the server
```bash
# Call the API without specifying a version.
$ curl -s localhost:9000/users \
-H "Content-Type: application/json" | jq
Expand Down

0 comments on commit 0a04212

Please sign in to comment.