Add swagger UI
[vfc/nfvo/wfengine.git] / wfenginemgrservice / src / main / resources / api-doc / o2c.html
diff --git a/wfenginemgrservice/src/main/resources/api-doc/o2c.html b/wfenginemgrservice/src/main/resources/api-doc/o2c.html
new file mode 100644 (file)
index 0000000..a2336bd
--- /dev/null
@@ -0,0 +1,37 @@
+<!--\r
+\r
+    Copyright 2016 ZTE Corporation.\r
+\r
+    Licensed under the Apache License, Version 2.0 (the "License");\r
+    you may not use this file except in compliance with the License.\r
+    You may obtain a copy of the License at\r
+\r
+        http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+    Unless required by applicable law or agreed to in writing, software\r
+    distributed under the License is distributed on an "AS IS" BASIS,\r
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+    See the License for the specific language governing permissions and\r
+    limitations under the License.\r
+\r
+-->\r
+<script>\r
+var qp = null;\r
+if(window.location.hash) {\r
+  qp = location.hash.substring(1);\r
+}\r
+else {\r
+  qp = location.search.substring(1);\r
+}\r
+qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',\r
+  function(key, value) {\r
+    return key===""?value:decodeURIComponent(value) }\r
+  ):{}\r
+\r
+if (window.opener.swaggerUi.tokenUrl)\r
+    window.opener.processOAuthCode(qp);\r
+else\r
+    window.opener.onOAuthComplete(qp);\r
+\r
+window.close();\r
+</script>
\ No newline at end of file