Skip to content

Commit

Permalink
chore: goa gen
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawaha committed Dec 24, 2023
1 parent 2997417 commit b2f59fb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions basic/gen/http/calc/server/server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion basic/gen/http/openapi.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"swagger":"2.0","info":{"title":"Calculator Service","description":"HTTP service for multiplying numbers, a goa teaser","version":""},"host":"localhost:8000","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/multiply/{a}/{b}":{"get":{"tags":["calc"],"summary":"multiply calc","operationId":"calc#multiply","parameters":[{"name":"a","in":"path","description":"Left operand","required":true,"type":"integer"},{"name":"b","in":"path","description":"Right operand","required":true,"type":"integer"}],"responses":{"200":{"description":"OK response.","schema":{"type":"integer","format":"int64"}}},"schemes":["http"]}},"/openapi.json":{"get":{"tags":["calc"],"summary":"Download openapi3.json","operationId":"calc#/openapi.json","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}}}}
{"swagger":"2.0","info":{"title":"Calculator Service","description":"HTTP service for multiplying numbers, a goa teaser","version":""},"host":"localhost:8000","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/multiply/{a}/{b}":{"get":{"tags":["calc"],"summary":"multiply calc","operationId":"calc#multiply","parameters":[{"name":"a","in":"path","description":"Left operand","required":true,"type":"integer"},{"name":"b","in":"path","description":"Right operand","required":true,"type":"integer"}],"responses":{"200":{"description":"OK response.","schema":{"type":"integer","format":"int64"}}},"schemes":["http"]}},"/openapi.json":{"get":{"tags":["calc"],"summary":"Download gen/http/openapi3.json","operationId":"calc#/openapi.json","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}}}}
2 changes: 1 addition & 1 deletion basic/gen/http/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ paths:
get:
tags:
- calc
summary: Download openapi3.json
summary: Download gen/http/openapi3.json
operationId: calc#/openapi.json
responses:
"200":
Expand Down
2 changes: 1 addition & 1 deletion basic/gen/http/openapi3.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"openapi":"3.0.3","info":{"title":"Calculator Service","description":"HTTP service for multiplying numbers, a goa teaser","version":"1.0"},"servers":[{"url":"http://localhost:8000/calc","description":"calc hosts the Calculator Service."},{"url":"https://{version}.goa.design/calc","description":"calc hosts the Calculator Service.","variables":{"version":{"default":"v1"}}}],"paths":{"/multiply/{a}/{b}":{"get":{"tags":["calc"],"summary":"multiply calc","operationId":"calc#multiply","parameters":[{"name":"a","in":"path","description":"Left operand","required":true,"schema":{"type":"integer","description":"Left operand","example":5401762099778430809,"format":"int64"},"example":1918630006328122782},{"name":"b","in":"path","description":"Right operand","required":true,"schema":{"type":"integer","description":"Right operand","example":4288748512599820841,"format":"int64"},"example":4212629202012168060}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"integer","example":8803302123552712831,"format":"int64"},"example":1698882017578366363}}}}}},"/openapi.json":{"get":{"tags":["calc"],"summary":"Download openapi3.json","operationId":"calc#/openapi.json","responses":{"200":{"description":"File downloaded"}}}}},"components":{},"tags":[{"name":"calc","description":"The calc service performs operations on numbers"}]}
{"openapi":"3.0.3","info":{"title":"Calculator Service","description":"HTTP service for multiplying numbers, a goa teaser","version":"1.0"},"servers":[{"url":"http://localhost:8000/calc","description":"calc hosts the Calculator Service."},{"url":"https://{version}.goa.design/calc","description":"calc hosts the Calculator Service.","variables":{"version":{"default":"v1"}}}],"paths":{"/multiply/{a}/{b}":{"get":{"tags":["calc"],"summary":"multiply calc","operationId":"calc#multiply","parameters":[{"name":"a","in":"path","description":"Left operand","required":true,"schema":{"type":"integer","description":"Left operand","example":5401762099778430809,"format":"int64"},"example":1918630006328122782},{"name":"b","in":"path","description":"Right operand","required":true,"schema":{"type":"integer","description":"Right operand","example":4288748512599820841,"format":"int64"},"example":4212629202012168060}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"integer","example":8803302123552712831,"format":"int64"},"example":1698882017578366363}}}}}},"/openapi.json":{"get":{"tags":["calc"],"summary":"Download gen/http/openapi3.json","operationId":"calc#/openapi.json","responses":{"200":{"description":"File downloaded"}}}}},"components":{},"tags":[{"name":"calc","description":"The calc service performs operations on numbers"}]}
2 changes: 1 addition & 1 deletion basic/gen/http/openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ paths:
get:
tags:
- calc
summary: Download openapi3.json
summary: Download gen/http/openapi3.json
operationId: calc#/openapi.json
responses:
"200":
Expand Down

0 comments on commit b2f59fb

Please sign in to comment.