1
0

team.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <title> API Documentation </title>
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
  6. <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  10. <style type="text/css">
  11. body {
  12. font-family: 'Roboto', sans-serif;
  13. }
  14. .hidden {
  15. display:none;
  16. }
  17. pre {
  18. outline: 1px solid #ccc;
  19. padding: 5px; margin: 5px;
  20. }
  21. .string { color: green; }
  22. .number { color: darkorange; }
  23. .boolean { color: blue; }
  24. .null { color: magenta; }
  25. .key { color: red; }
  26. </style>
  27. <style type="text/css">
  28. pre.prettyprint {
  29. border: 1px solid #ccc;
  30. margin-bottom: 0;
  31. padding: 9.5px;
  32. }
  33. </style>
  34. <script>
  35. function syntaxHighlight(json) {
  36. json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  37. return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
  38. var cls = 'number';
  39. if (/^"/.test(match)) {
  40. if (/:$/.test(match)) {
  41. cls = 'key';
  42. } else {
  43. cls = 'string';
  44. }
  45. } else if (/true|false/.test(match)) {
  46. cls = 'boolean';
  47. } else if (/null/.test(match)) {
  48. cls = 'null';
  49. }
  50. return '<span class="' + cls + '">' + match + '</span>';
  51. });
  52. }
  53. function spaceJson(json){
  54. var validJson = JSON.parse(json);
  55. return JSON.stringify(validJson, undefined, 4);
  56. }
  57. </script>
  58. </head>
  59. <body>
  60. <nav class="navbar navbar-default navbar-fixed-top">
  61. <div class="container-fluid">
  62. <div class="navbar-header">
  63. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
  64. data-target="#bs-example-navbar-collapse-1">
  65. <span class="sr-only">Toggle navigation</span>
  66. <span class="icon-bar"></span>
  67. <span class="icon-bar"></span>
  68. <span class="icon-bar"></span>
  69. </button>
  70. <a class="navbar-brand" href="#">Gin</a>
  71. <p class="navbar-text">Developed by Gophers at <a href="http://betacraft.co">Betacraft</a></p>
  72. </div>
  73. </div>
  74. </nav>
  75. <div class="container-fluid" style="margin-top: 70px;margin-bottom: 20px;">
  76. <div class="container-fluid">
  77. <div class="col-md-4">
  78. <div class="panel panel-default">
  79. <div class="panel-heading">Base Urls</div>
  80. <div class="panel-body">
  81. <p>Production : <strong>/api/v1</strong></p>
  82. <p>Staging : <strong>/api/v1</strong></p>
  83. </div>
  84. </div>
  85. <ul class="nav nav-pills nav-stacked" role="tablist">
  86. <li role="presentation"><a href="#0top" role="tab" data-toggle="tab">POST : /api/v1/team</a></li>
  87. <li role="presentation"><a href="#1top" role="tab" data-toggle="tab">GET : /api/v1/team</a></li>
  88. <li role="presentation"><a href="#2top" role="tab" data-toggle="tab">PUT : /api/v1/team</a></li>
  89. <li role="presentation"><a href="#3top" role="tab" data-toggle="tab">GET : /api/v1/team/107</a></li>
  90. <li role="presentation"><a href="#4top" role="tab" data-toggle="tab">DELETE : /api/v1/team/107</a></li>
  91. <ul>
  92. </div>
  93. <div class="col-md-8 tab-content">
  94. <div id="0top" role="tabpanel" class="tab-pane col-md-10">
  95. <p> <H4> Request Headers </H4> </p>
  96. <table class="table table-bordered table-striped">
  97. <tr>
  98. <th>Key</th>
  99. <th>Value</th>
  100. </tr>
  101. <tr>
  102. <td>Apitoken</td>
  103. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  104. </tr>
  105. <tr>
  106. <td>Content-Type</td>
  107. <td> application/json </td>
  108. </tr>
  109. <tr>
  110. <td>X-Forwarded-For</td>
  111. <td> </td>
  112. </tr>
  113. </table>
  114. <p> <H4> Request Body </H4> </p>
  115. <pre id="request-body-0-0" class="prettyprint">{&#34;resume&#34;: &#34;i&#39;m descript&#34;}</pre>
  116. <script>
  117. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"dd81ea033c2d11e6a95d0242ac11000c\"}","Content-Type":" application/json\r","X-Forwarded-For":" "};
  118. if (requestHeader["Content-Type"] === "application/json"){
  119. try {
  120. var jsonStr = spaceJson("{\"resume\": \"i'm descript\"}");
  121. document.getElementById('request-body0-0').innerHTML = syntaxHighlight(jsonStr);
  122. } catch (e) {
  123. }
  124. }
  125. </script>
  126. <p><h4> Response Code</h4></p>
  127. <pre class="prettyprint lang-json">400</pre>
  128. <p><h4> Response Headers</h4></p>
  129. <table class="table table-bordered table-striped">
  130. <tr>
  131. <th>Key</th>
  132. <th>Value</th>
  133. </tr>
  134. <tr>
  135. <td>Access-Control-Allow-Headers</td>
  136. <td> Content-Type,Token,Apitoken</td>
  137. </tr>
  138. <tr>
  139. <td>Access-Control-Allow-Origin</td>
  140. <td> *</td>
  141. </tr>
  142. <tr>
  143. <td>Content-Type</td>
  144. <td> application/json; charset=utf-8</td>
  145. </tr>
  146. </table>
  147. <p> <H4> Response Body </H4> </p>
  148. <pre class="prettyprint" id="response-body-0-0">{&#34;error&#34;:&#34;Key: &#39;APICreateTeamInput.Name&#39; Error:Field validation for &#39;Name&#39; failed on the &#39;required&#39; tag&#34;}</pre>
  149. <script>
  150. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  151. if (responseHeader["Content-Type"] === "application/json"){
  152. try {
  153. var jsonStr = spaceJson("{\"error\":\"Key: 'APICreateTeamInput.Name' Error:Field validation for 'Name' failed on the 'required' tag\"}");
  154. document.getElementById('response-body-0-0').innerHTML = syntaxHighlight(jsonStr);
  155. } catch (e) {
  156. }
  157. }
  158. </script>
  159. <hr>
  160. <p> <H4> Request Headers </H4> </p>
  161. <table class="table table-bordered table-striped">
  162. <tr>
  163. <th>Key</th>
  164. <th>Value</th>
  165. </tr>
  166. <tr>
  167. <td>Apitoken</td>
  168. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  169. </tr>
  170. <tr>
  171. <td>Content-Type</td>
  172. <td> application/json </td>
  173. </tr>
  174. <tr>
  175. <td>X-Forwarded-For</td>
  176. <td> </td>
  177. </tr>
  178. </table>
  179. <p> <H4> Request Body </H4> </p>
  180. <pre id="request-body-0-1" class="prettyprint">{&#34;team_name&#34;: &#34;ateamname&#34;,&#34;resume&#34;: &#34;i&#39;m descript&#34;, &#34;users&#34;: [1]}</pre>
  181. <script>
  182. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"dd81ea033c2d11e6a95d0242ac11000c\"}","Content-Type":" application/json\r","X-Forwarded-For":" "};
  183. if (requestHeader["Content-Type"] === "application/json"){
  184. try {
  185. var jsonStr = spaceJson("{\"team_name\": \"ateamname\",\"resume\": \"i'm descript\", \"users\": [1]}");
  186. document.getElementById('request-body0-1').innerHTML = syntaxHighlight(jsonStr);
  187. } catch (e) {
  188. }
  189. }
  190. </script>
  191. <p><h4> Response Code</h4></p>
  192. <pre class="prettyprint lang-json">200</pre>
  193. <p><h4> Response Headers</h4></p>
  194. <table class="table table-bordered table-striped">
  195. <tr>
  196. <th>Key</th>
  197. <th>Value</th>
  198. </tr>
  199. <tr>
  200. <td>Access-Control-Allow-Headers</td>
  201. <td> Content-Type,Token,Apitoken</td>
  202. </tr>
  203. <tr>
  204. <td>Access-Control-Allow-Origin</td>
  205. <td> *</td>
  206. </tr>
  207. <tr>
  208. <td>Content-Type</td>
  209. <td> application/json; charset=utf-8</td>
  210. </tr>
  211. </table>
  212. <p> <H4> Response Body </H4> </p>
  213. <pre class="prettyprint" id="response-body-0-1">{&#34;message&#34;:&#34;team created! Afftect row: 1, Affect refer: 1&#34;}</pre>
  214. <script>
  215. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  216. if (responseHeader["Content-Type"] === "application/json"){
  217. try {
  218. var jsonStr = spaceJson("{\"message\":\"team created! Afftect row: 1, Affect refer: 1\"}");
  219. document.getElementById('response-body-0-1').innerHTML = syntaxHighlight(jsonStr);
  220. } catch (e) {
  221. }
  222. }
  223. </script>
  224. <hr>
  225. </div>
  226. <div id="1top" role="tabpanel" class="tab-pane col-md-10">
  227. <p> <H4> Request Headers </H4> </p>
  228. <table class="table table-bordered table-striped">
  229. <tr>
  230. <th>Key</th>
  231. <th>Value</th>
  232. </tr>
  233. <tr>
  234. <td>Apitoken</td>
  235. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  236. </tr>
  237. <tr>
  238. <td>X-Forwarded-For</td>
  239. <td> </td>
  240. </tr>
  241. </table>
  242. <p> <H4> URL Params </H4> </p>
  243. <table class="table table-bordered table-striped">
  244. <tr>
  245. <th>Key</th>
  246. <th>Value</th>
  247. </tr>
  248. <tr>
  249. <td>q</td>
  250. <td> .&#43;</td>
  251. </tr>
  252. </table>
  253. <p><h4> Response Code</h4></p>
  254. <pre class="prettyprint lang-json">200</pre>
  255. <p><h4> Response Headers</h4></p>
  256. <table class="table table-bordered table-striped">
  257. <tr>
  258. <th>Key</th>
  259. <th>Value</th>
  260. </tr>
  261. <tr>
  262. <td>Access-Control-Allow-Headers</td>
  263. <td> Content-Type,Token,Apitoken</td>
  264. </tr>
  265. <tr>
  266. <td>Access-Control-Allow-Origin</td>
  267. <td> *</td>
  268. </tr>
  269. <tr>
  270. <td>Content-Type</td>
  271. <td> application/json; charset=utf-8</td>
  272. </tr>
  273. </table>
  274. <p> <H4> Response Body </H4> </p>
  275. <pre class="prettyprint" id="response-body-1-0">[{&#34;id&#34;:1,&#34;name&#34;:&#34;a&#34;,&#34;resume&#34;:&#34;&#34;,&#34;creator&#34;:1},{&#34;id&#34;:2,&#34;name&#34;:&#34;b&#34;,&#34;resume&#34;:&#34;g&#34;,&#34;creator&#34;:1},{&#34;id&#34;:4,&#34;name&#34;:&#34;testteam&#34;,&#34;resume&#34;:&#34;i&#39;m test&#34;,&#34;creator&#34;:15},{&#34;id&#34;:5,&#34;name&#34;:&#34;atestteam&#34;,&#34;resume&#34;:&#34;i&#39;m test&#34;,&#34;creator&#34;:16},{&#34;id&#34;:107,&#34;name&#34;:&#34;ateamname&#34;,&#34;resume&#34;:&#34;i&#39;m descript&#34;,&#34;creator&#34;:1}]</pre>
  276. <script>
  277. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  278. if (responseHeader["Content-Type"] === "application/json"){
  279. try {
  280. var jsonStr = spaceJson("[{\"id\":1,\"name\":\"a\",\"resume\":\"\",\"creator\":1},{\"id\":2,\"name\":\"b\",\"resume\":\"g\",\"creator\":1},{\"id\":4,\"name\":\"testteam\",\"resume\":\"i'm test\",\"creator\":15},{\"id\":5,\"name\":\"atestteam\",\"resume\":\"i'm test\",\"creator\":16},{\"id\":107,\"name\":\"ateamname\",\"resume\":\"i'm descript\",\"creator\":1}]");
  281. document.getElementById('response-body-1-0').innerHTML = syntaxHighlight(jsonStr);
  282. } catch (e) {
  283. }
  284. }
  285. </script>
  286. <hr>
  287. <p> <H4> Request Headers </H4> </p>
  288. <table class="table table-bordered table-striped">
  289. <tr>
  290. <th>Key</th>
  291. <th>Value</th>
  292. </tr>
  293. <tr>
  294. <td>Apitoken</td>
  295. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  296. </tr>
  297. <tr>
  298. <td>X-Forwarded-For</td>
  299. <td> </td>
  300. </tr>
  301. </table>
  302. <p> <H4> URL Params </H4> </p>
  303. <table class="table table-bordered table-striped">
  304. <tr>
  305. <th>Key</th>
  306. <th>Value</th>
  307. </tr>
  308. <tr>
  309. <td>q</td>
  310. <td> ateamname</td>
  311. </tr>
  312. </table>
  313. <p><h4> Response Code</h4></p>
  314. <pre class="prettyprint lang-json">200</pre>
  315. <p><h4> Response Headers</h4></p>
  316. <table class="table table-bordered table-striped">
  317. <tr>
  318. <th>Key</th>
  319. <th>Value</th>
  320. </tr>
  321. <tr>
  322. <td>Access-Control-Allow-Headers</td>
  323. <td> Content-Type,Token,Apitoken</td>
  324. </tr>
  325. <tr>
  326. <td>Access-Control-Allow-Origin</td>
  327. <td> *</td>
  328. </tr>
  329. <tr>
  330. <td>Content-Type</td>
  331. <td> application/json; charset=utf-8</td>
  332. </tr>
  333. </table>
  334. <p> <H4> Response Body </H4> </p>
  335. <pre class="prettyprint" id="response-body-1-1">[{&#34;id&#34;:107,&#34;name&#34;:&#34;ateamname&#34;,&#34;resume&#34;:&#34;i&#39;m descript&#34;,&#34;creator&#34;:1}]</pre>
  336. <script>
  337. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  338. if (responseHeader["Content-Type"] === "application/json"){
  339. try {
  340. var jsonStr = spaceJson("[{\"id\":107,\"name\":\"ateamname\",\"resume\":\"i'm descript\",\"creator\":1}]");
  341. document.getElementById('response-body-1-1').innerHTML = syntaxHighlight(jsonStr);
  342. } catch (e) {
  343. }
  344. }
  345. </script>
  346. <hr>
  347. </div>
  348. <div id="2top" role="tabpanel" class="tab-pane col-md-10">
  349. <p> <H4> Request Headers </H4> </p>
  350. <table class="table table-bordered table-striped">
  351. <tr>
  352. <th>Key</th>
  353. <th>Value</th>
  354. </tr>
  355. <tr>
  356. <td>Apitoken</td>
  357. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  358. </tr>
  359. <tr>
  360. <td>Content-Type</td>
  361. <td> application/json </td>
  362. </tr>
  363. <tr>
  364. <td>X-Forwarded-For</td>
  365. <td> </td>
  366. </tr>
  367. </table>
  368. <p> <H4> Request Body </H4> </p>
  369. <pre id="request-body-2-0" class="prettyprint">{&#34;team_id&#34;: 107, &#34;resume&#34;: &#34;i&#39;m descript update&#34;, &#34;users&#34;: [4,5,6,7]}</pre>
  370. <script>
  371. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"dd81ea033c2d11e6a95d0242ac11000c\"}","Content-Type":" application/json\r","X-Forwarded-For":" "};
  372. if (requestHeader["Content-Type"] === "application/json"){
  373. try {
  374. var jsonStr = spaceJson("{\"team_id\": 107, \"resume\": \"i'm descript update\", \"users\": [4,5,6,7]}");
  375. document.getElementById('request-body2-0').innerHTML = syntaxHighlight(jsonStr);
  376. } catch (e) {
  377. }
  378. }
  379. </script>
  380. <p><h4> Response Code</h4></p>
  381. <pre class="prettyprint lang-json">200</pre>
  382. <p><h4> Response Headers</h4></p>
  383. <table class="table table-bordered table-striped">
  384. <tr>
  385. <th>Key</th>
  386. <th>Value</th>
  387. </tr>
  388. <tr>
  389. <td>Access-Control-Allow-Headers</td>
  390. <td> Content-Type,Token,Apitoken</td>
  391. </tr>
  392. <tr>
  393. <td>Access-Control-Allow-Origin</td>
  394. <td> *</td>
  395. </tr>
  396. <tr>
  397. <td>Content-Type</td>
  398. <td> application/json; charset=utf-8</td>
  399. </tr>
  400. </table>
  401. <p> <H4> Response Body </H4> </p>
  402. <pre class="prettyprint" id="response-body-2-0">{&#34;message&#34;:&#34;team updated!&#34;}</pre>
  403. <script>
  404. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  405. if (responseHeader["Content-Type"] === "application/json"){
  406. try {
  407. var jsonStr = spaceJson("{\"message\":\"team updated!\"}");
  408. document.getElementById('response-body-2-0').innerHTML = syntaxHighlight(jsonStr);
  409. } catch (e) {
  410. }
  411. }
  412. </script>
  413. <hr>
  414. </div>
  415. <div id="3top" role="tabpanel" class="tab-pane col-md-10">
  416. <p> <H4> Request Headers </H4> </p>
  417. <table class="table table-bordered table-striped">
  418. <tr>
  419. <th>Key</th>
  420. <th>Value</th>
  421. </tr>
  422. <tr>
  423. <td>Apitoken</td>
  424. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  425. </tr>
  426. <tr>
  427. <td>X-Forwarded-For</td>
  428. <td> </td>
  429. </tr>
  430. </table>
  431. <p><h4> Response Code</h4></p>
  432. <pre class="prettyprint lang-json">200</pre>
  433. <p><h4> Response Headers</h4></p>
  434. <table class="table table-bordered table-striped">
  435. <tr>
  436. <th>Key</th>
  437. <th>Value</th>
  438. </tr>
  439. <tr>
  440. <td>Access-Control-Allow-Headers</td>
  441. <td> Content-Type,Token,Apitoken</td>
  442. </tr>
  443. <tr>
  444. <td>Access-Control-Allow-Origin</td>
  445. <td> *</td>
  446. </tr>
  447. <tr>
  448. <td>Content-Type</td>
  449. <td> application/json; charset=utf-8</td>
  450. </tr>
  451. </table>
  452. <p> <H4> Response Body </H4> </p>
  453. <pre class="prettyprint" id="response-body-3-0">{&#34;id&#34;:107,&#34;name&#34;:&#34;ateamname&#34;,&#34;resume&#34;:&#34;i&#39;m descript&#34;,&#34;creator&#34;:1,&#34;users&#34;:[{&#34;id&#34;:4,&#34;name&#34;:&#34;test1&#34;,&#34;cnname&#34;:&#34;翱鶚Test&#34;,&#34;email&#34;:&#34;root123@cepave.com&#34;,&#34;phone&#34;:&#34;99999999999&#34;,&#34;im&#34;:&#34;44955834958&#34;,&#34;qq&#34;:&#34;904394234239&#34;,&#34;role&#34;:0},{&#34;id&#34;:5,&#34;name&#34;:&#34;don&#34;,&#34;cnname&#34;:&#34;&#34;,&#34;email&#34;:&#34;&#34;,&#34;phone&#34;:&#34;&#34;,&#34;im&#34;:&#34;&#34;,&#34;qq&#34;:&#34;904394234239&#34;,&#34;role&#34;:0},{&#34;id&#34;:6,&#34;name&#34;:&#34;masato&#34;,&#34;cnname&#34;:&#34;&#34;,&#34;email&#34;:&#34;&#34;,&#34;phone&#34;:&#34;&#34;,&#34;im&#34;:&#34;&#34;,&#34;qq&#34;:&#34;904394234239&#34;,&#34;role&#34;:0},{&#34;id&#34;:7,&#34;name&#34;:&#34;cepave1&#34;,&#34;cnname&#34;:&#34;&#34;,&#34;email&#34;:&#34;&#34;,&#34;phone&#34;:&#34;&#34;,&#34;im&#34;:&#34;&#34;,&#34;qq&#34;:&#34;904394234239&#34;,&#34;role&#34;:0}]}</pre>
  454. <script>
  455. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  456. if (responseHeader["Content-Type"] === "application/json"){
  457. try {
  458. var jsonStr = spaceJson("{\"id\":107,\"name\":\"ateamname\",\"resume\":\"i'm descript\",\"creator\":1,\"users\":[{\"id\":4,\"name\":\"test1\",\"cnname\":\"翱鶚Test\",\"email\":\"root123@cepave.com\",\"phone\":\"99999999999\",\"im\":\"44955834958\",\"qq\":\"904394234239\",\"role\":0},{\"id\":5,\"name\":\"don\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":6,\"name\":\"masato\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":7,\"name\":\"cepave1\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0}]}");
  459. document.getElementById('response-body-3-0').innerHTML = syntaxHighlight(jsonStr);
  460. } catch (e) {
  461. }
  462. }
  463. </script>
  464. <hr>
  465. </div>
  466. <div id="4top" role="tabpanel" class="tab-pane col-md-10">
  467. <p> <H4> Request Headers </H4> </p>
  468. <table class="table table-bordered table-striped">
  469. <tr>
  470. <th>Key</th>
  471. <th>Value</th>
  472. </tr>
  473. <tr>
  474. <td>Apitoken</td>
  475. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;dd81ea033c2d11e6a95d0242ac11000c&#34;}</td>
  476. </tr>
  477. <tr>
  478. <td>X-Forwarded-For</td>
  479. <td> </td>
  480. </tr>
  481. </table>
  482. <p><h4> Response Code</h4></p>
  483. <pre class="prettyprint lang-json">200</pre>
  484. <p><h4> Response Headers</h4></p>
  485. <table class="table table-bordered table-striped">
  486. <tr>
  487. <th>Key</th>
  488. <th>Value</th>
  489. </tr>
  490. <tr>
  491. <td>Access-Control-Allow-Headers</td>
  492. <td> Content-Type,Token,Apitoken</td>
  493. </tr>
  494. <tr>
  495. <td>Access-Control-Allow-Origin</td>
  496. <td> *</td>
  497. </tr>
  498. <tr>
  499. <td>Content-Type</td>
  500. <td> application/json; charset=utf-8</td>
  501. </tr>
  502. </table>
  503. <p> <H4> Response Body </H4> </p>
  504. <pre class="prettyprint" id="response-body-4-0">{&#34;message&#34;:&#34;team 107 is deleted. Affect row: 1 / refer delete: 4&#34;}</pre>
  505. <script>
  506. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token,Apitoken","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  507. if (responseHeader["Content-Type"] === "application/json"){
  508. try {
  509. var jsonStr = spaceJson("{\"message\":\"team 107 is deleted. Affect row: 1 / refer delete: 4\"}");
  510. document.getElementById('response-body-4-0').innerHTML = syntaxHighlight(jsonStr);
  511. } catch (e) {
  512. }
  513. }
  514. </script>
  515. <hr>
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. <hr>
  521. </body>
  522. </html>