diff options
author | Rich Bennett <rb2745@att.com> | 2019-04-11 11:32:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-11 11:32:13 +0000 |
commit | 12f7c9120dcf046fac7427f099a7fc2f518a1a85 (patch) | |
tree | 5f8844ae318729db6eaa79e724469e44b6b81101 /docs/guides/onap-developer/how-to-use-docs/myAPI1.json | |
parent | 9ff31aa2c8cf302bcdcd8f9bbd35dbb245bcd1b5 (diff) | |
parent | d6541d87f97175993b76efb0289981b3a12b0590 (diff) |
Merge "API documentation guide"
Diffstat (limited to 'docs/guides/onap-developer/how-to-use-docs/myAPI1.json')
-rw-r--r-- | docs/guides/onap-developer/how-to-use-docs/myAPI1.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/guides/onap-developer/how-to-use-docs/myAPI1.json b/docs/guides/onap-developer/how-to-use-docs/myAPI1.json new file mode 100644 index 000000000..b611ad81c --- /dev/null +++ b/docs/guides/onap-developer/how-to-use-docs/myAPI1.json @@ -0,0 +1,37 @@ +{ + "swagger" : "2.0", + "info" : { + "description" : "my API 1", + "version" : "1.0.0", + "title" : "API example", + "contact" : { + "email" : "onap@orange.com" + }, + "license" : { + "name" : "Apache 2.0", + "url" : "http://www.apache.org/licenses/LICENSE-2.0.html" + } + }, + "host" : "serverRoot", + "basePath" : "/healthCheck", + "schemes" : [ "https" ], + "produces": [ + "application/json;charset=utf-8" + ], + "paths" : { + "/healthCheck" : { + "get" : { + "summary" : "Displays healhcheck for my favorite component", + "description" : "Displays healthcheck for my favorite component", + "responses": { + "200": { + "description": "Service OK" + }, + "503" : { + "description" : "Service Unavailable" + } + } + } + } + } +} |