Skip to content

Commit

Permalink
Merge pull request #11 from opticdev/feat/go/hoppscotch-example
Browse files Browse the repository at this point in the history
feat: add hoppscotch example
  • Loading branch information
notnmeyer authored Oct 12, 2023
2 parents 2dfea25 + 86db69e commit 6161e1c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"folders":[],"v":1,"requests":[{"auth":{"authActive":true,"authType":"none"},"headers":[],"body":{"contentType":null,"body":null},"params":[],"name":"/","endpoint":"<<URL>>/","preRequestScript":"","method":"GET","v":"1","testScript":""},{"auth":{"authType":"none","authActive":true},"name":"/users","preRequestScript":"","headers":[],"testScript":"","endpoint":"<<URL>>/users","method":"GET","v":"1","body":{"body":null,"contentType":null},"params":[]},{"name":"/users/create","params":[],"body":{"contentType":"application/json","body":"{\"name\": \"Hank\"}"},"method":"POST","endpoint":"<<URL>>/users/create","headers":[],"preRequestScript":"","v":"1","testScript":"","auth":{"authActive":true,"authType":"none"}}],"name":"Optic Example"}
3 changes: 3 additions & 0 deletions openapi-generators/go-gin/examples/hoppscotch/optic.env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"URL": "http://localhost:8000"
}
3 changes: 3 additions & 0 deletions openapi-generators/go-gin/optic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ capture:
# command: hurl examples/hurl/*.hurl
# proxy_variable: HURL_OPTIC_PROXY

# run:
# command: hopp test -e examples/hoppscotch/optic.env.json examples/hoppscotch/optic-example-collection.json

# the requests below will be made by Optic and are equivalent to the requests.run examples above
# send:
# - path: /
Expand Down

0 comments on commit 6161e1c

Please sign in to comment.