forked from goadesign/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters