user.html 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229
  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/user/create</a></li>
  87. <li role="presentation"><a href="#1top" role="tab" data-toggle="tab">PUT : /api/v1/user/update</a></li>
  88. <li role="presentation"><a href="#2top" role="tab" data-toggle="tab">PUT : /api/v1/user/cgpasswd</a></li>
  89. <li role="presentation"><a href="#3top" role="tab" data-toggle="tab">GET : /api/v1/user/users</a></li>
  90. <li role="presentation"><a href="#4top" role="tab" data-toggle="tab">POST : /api/v1/user/login</a></li>
  91. <li role="presentation"><a href="#5top" role="tab" data-toggle="tab">GET : /api/v1/user/logout</a></li>
  92. <li role="presentation"><a href="#6top" role="tab" data-toggle="tab">GET : /api/v1/user/auth_session</a></li>
  93. <li role="presentation"><a href="#7top" role="tab" data-toggle="tab">GET : /api/v1/user/current</a></li>
  94. <li role="presentation"><a href="#8top" role="tab" data-toggle="tab">GET : /api/v1/user/u/3</a></li>
  95. <li role="presentation"><a href="#9top" role="tab" data-toggle="tab">GET : /api/v1/user/u/4</a></li>
  96. <ul>
  97. </div>
  98. <div class="col-md-8 tab-content">
  99. <div id="0top" role="tabpanel" class="tab-pane col-md-10">
  100. <p> <H4> Request Headers </H4> </p>
  101. <table class="table table-bordered table-striped">
  102. <tr>
  103. <th>Key</th>
  104. <th>Value</th>
  105. </tr>
  106. <tr>
  107. <td>Content-Type</td>
  108. <td> application/json </td>
  109. </tr>
  110. <tr>
  111. <td>X-Forwarded-For</td>
  112. <td> </td>
  113. </tr>
  114. </table>
  115. <p> <H4> Request Body </H4> </p>
  116. <pre id="request-body-0-0" class="prettyprint">{&#34;name&#34;: &#34;test&#34;,&#34;password&#34;: &#34;test&#34;}</pre>
  117. <script>
  118. var requestHeader ={"Content-Type":" application/json\r","X-Forwarded-For":" "};
  119. if (requestHeader["Content-Type"] === "application/json"){
  120. try {
  121. var jsonStr = spaceJson("{\"name\": \"test\",\"password\": \"test\"}");
  122. document.getElementById('request-body0-0').innerHTML = syntaxHighlight(jsonStr);
  123. } catch (e) {
  124. }
  125. }
  126. </script>
  127. <p><h4> Response Code</h4></p>
  128. <pre class="prettyprint lang-json">400</pre>
  129. <p><h4> Response Headers</h4></p>
  130. <table class="table table-bordered table-striped">
  131. <tr>
  132. <th>Key</th>
  133. <th>Value</th>
  134. </tr>
  135. <tr>
  136. <td>Access-Control-Allow-Headers</td>
  137. <td> Content-Type,Token</td>
  138. </tr>
  139. <tr>
  140. <td>Access-Control-Allow-Origin</td>
  141. <td> *</td>
  142. </tr>
  143. <tr>
  144. <td>Content-Type</td>
  145. <td> application/json; charset=utf-8</td>
  146. </tr>
  147. </table>
  148. <p> <H4> Response Body </H4> </p>
  149. <pre class="prettyprint" id="response-body-0-0">{&#34;error&#34;:&#34;Key: &#39;APIUserInput.Cnname&#39; Error:Field validation for &#39;Cnname&#39; failed on the &#39;required&#39; tag\nKey: &#39;APIUserInput.Email&#39; Error:Field validation for &#39;Email&#39; failed on the &#39;required&#39; tag&#34;}</pre>
  150. <script>
  151. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  152. if (responseHeader["Content-Type"] === "application/json"){
  153. try {
  154. var jsonStr = spaceJson("{\"error\":\"Key: 'APIUserInput.Cnname' Error:Field validation for 'Cnname' failed on the 'required' tag\\nKey: 'APIUserInput.Email' Error:Field validation for 'Email' failed on the 'required' tag\"}");
  155. document.getElementById('response-body-0-0').innerHTML = syntaxHighlight(jsonStr);
  156. } catch (e) {
  157. }
  158. }
  159. </script>
  160. <hr>
  161. <p> <H4> Request Headers </H4> </p>
  162. <table class="table table-bordered table-striped">
  163. <tr>
  164. <th>Key</th>
  165. <th>Value</th>
  166. </tr>
  167. <tr>
  168. <td>Content-Type</td>
  169. <td> application/json </td>
  170. </tr>
  171. <tr>
  172. <td>X-Forwarded-For</td>
  173. <td> </td>
  174. </tr>
  175. </table>
  176. <p> <H4> Request Body </H4> </p>
  177. <pre id="request-body-0-1" class="prettyprint">{&#34;name&#34;: &#34;owltester&#34;,&#34;password&#34;: &#34;mypassword&#34;, &#34;cnname&#34;: &#34;翱鶚&#34;, &#34;email&#34;: &#34;root123@cepave.com&#34;, &#34;im&#34;: &#34;44955834958&#34;, &#34;phone&#34;: &#34;99999999999&#34;, &#34;qq&#34;: &#34;904394234239&#34;}</pre>
  178. <script>
  179. var requestHeader ={"Content-Type":" application/json\r","X-Forwarded-For":" "};
  180. if (requestHeader["Content-Type"] === "application/json"){
  181. try {
  182. var jsonStr = spaceJson("{\"name\": \"owltester\",\"password\": \"mypassword\", \"cnname\": \"翱鶚\", \"email\": \"root123@cepave.com\", \"im\": \"44955834958\", \"phone\": \"99999999999\", \"qq\": \"904394234239\"}");
  183. document.getElementById('request-body0-1').innerHTML = syntaxHighlight(jsonStr);
  184. } catch (e) {
  185. }
  186. }
  187. </script>
  188. <p><h4> Response Code</h4></p>
  189. <pre class="prettyprint lang-json">200</pre>
  190. <p><h4> Response Headers</h4></p>
  191. <table class="table table-bordered table-striped">
  192. <tr>
  193. <th>Key</th>
  194. <th>Value</th>
  195. </tr>
  196. <tr>
  197. <td>Access-Control-Allow-Headers</td>
  198. <td> Content-Type,Token</td>
  199. </tr>
  200. <tr>
  201. <td>Access-Control-Allow-Origin</td>
  202. <td> *</td>
  203. </tr>
  204. <tr>
  205. <td>Content-Type</td>
  206. <td> application/json; charset=utf-8</td>
  207. </tr>
  208. </table>
  209. <p> <H4> Response Body </H4> </p>
  210. <pre class="prettyprint" id="response-body-0-1">{&#34;name&#34;:&#34;owltester&#34;,&#34;sig&#34;:&#34;9b42a728c0ea11e690c5001500c6ca5a&#34;}</pre>
  211. <script>
  212. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  213. if (responseHeader["Content-Type"] === "application/json"){
  214. try {
  215. var jsonStr = spaceJson("{\"name\":\"owltester\",\"sig\":\"9b42a728c0ea11e690c5001500c6ca5a\"}");
  216. document.getElementById('response-body-0-1').innerHTML = syntaxHighlight(jsonStr);
  217. } catch (e) {
  218. }
  219. }
  220. </script>
  221. <hr>
  222. </div>
  223. <div id="1top" role="tabpanel" class="tab-pane col-md-10">
  224. <p> <H4> Request Headers </H4> </p>
  225. <table class="table table-bordered table-striped">
  226. <tr>
  227. <th>Key</th>
  228. <th>Value</th>
  229. </tr>
  230. <tr>
  231. <td>Content-Type</td>
  232. <td> application/json </td>
  233. </tr>
  234. <tr>
  235. <td>Cookie</td>
  236. <td> name=test1; sig=d4f71cba377911e699d60242ac110010 </td>
  237. </tr>
  238. <tr>
  239. <td>X-Forwarded-For</td>
  240. <td> </td>
  241. </tr>
  242. </table>
  243. <p> <H4> Request Body </H4> </p>
  244. <pre id="request-body-1-0" class="prettyprint">{&#34;name&#34;: &#34;test1&#34;,&#34;password&#34;: &#34;test1&#34;, &#34;cnname&#34;: &#34;翱鶚Test&#34;, &#34;email&#34;: &#34;root123@cepave.com&#34;, &#34;im&#34;: &#34;44955834958&#34;, &#34;phone&#34;: &#34;99999999999&#34;, &#34;qq&#34;: &#34;904394234239&#34;}</pre>
  245. <script>
  246. var requestHeader ={"Content-Type":" application/json\r","Cookie":" name=test1; sig=d4f71cba377911e699d60242ac110010\r","X-Forwarded-For":" "};
  247. if (requestHeader["Content-Type"] === "application/json"){
  248. try {
  249. var jsonStr = spaceJson("{\"name\": \"test1\",\"password\": \"test1\", \"cnname\": \"翱鶚Test\", \"email\": \"root123@cepave.com\", \"im\": \"44955834958\", \"phone\": \"99999999999\", \"qq\": \"904394234239\"}");
  250. document.getElementById('request-body1-0').innerHTML = syntaxHighlight(jsonStr);
  251. } catch (e) {
  252. }
  253. }
  254. </script>
  255. <p><h4> Response Code</h4></p>
  256. <pre class="prettyprint lang-json">200</pre>
  257. <p><h4> Response Headers</h4></p>
  258. <table class="table table-bordered table-striped">
  259. <tr>
  260. <th>Key</th>
  261. <th>Value</th>
  262. </tr>
  263. <tr>
  264. <td>Access-Control-Allow-Headers</td>
  265. <td> Content-Type,Token</td>
  266. </tr>
  267. <tr>
  268. <td>Access-Control-Allow-Origin</td>
  269. <td> *</td>
  270. </tr>
  271. <tr>
  272. <td>Content-Type</td>
  273. <td> application/json; charset=utf-8</td>
  274. </tr>
  275. </table>
  276. <p> <H4> Response Body </H4> </p>
  277. <pre class="prettyprint" id="response-body-1-0">{&#34;message&#34;:&#34;user info updated&#34;}</pre>
  278. <script>
  279. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  280. if (responseHeader["Content-Type"] === "application/json"){
  281. try {
  282. var jsonStr = spaceJson("{\"message\":\"user info updated\"}");
  283. document.getElementById('response-body-1-0').innerHTML = syntaxHighlight(jsonStr);
  284. } catch (e) {
  285. }
  286. }
  287. </script>
  288. <hr>
  289. </div>
  290. <div id="2top" role="tabpanel" class="tab-pane col-md-10">
  291. <p> <H4> Request Headers </H4> </p>
  292. <table class="table table-bordered table-striped">
  293. <tr>
  294. <th>Key</th>
  295. <th>Value</th>
  296. </tr>
  297. <tr>
  298. <td>Content-Type</td>
  299. <td> application/json </td>
  300. </tr>
  301. <tr>
  302. <td>Cookie</td>
  303. <td> name=test1; sig=d4f71cba377911e699d60242ac110010 </td>
  304. </tr>
  305. <tr>
  306. <td>X-Forwarded-For</td>
  307. <td> </td>
  308. </tr>
  309. </table>
  310. <p> <H4> Request Body </H4> </p>
  311. <pre id="request-body-2-0" class="prettyprint">{&#34;new_password&#34;: &#34;test1&#34;, &#34;old_password&#34;: &#34;test1&#34;}</pre>
  312. <script>
  313. var requestHeader ={"Content-Type":" application/json\r","Cookie":" name=test1; sig=d4f71cba377911e699d60242ac110010\r","X-Forwarded-For":" "};
  314. if (requestHeader["Content-Type"] === "application/json"){
  315. try {
  316. var jsonStr = spaceJson("{\"new_password\": \"test1\", \"old_password\": \"test1\"}");
  317. document.getElementById('request-body2-0').innerHTML = syntaxHighlight(jsonStr);
  318. } catch (e) {
  319. }
  320. }
  321. </script>
  322. <p><h4> Response Code</h4></p>
  323. <pre class="prettyprint lang-json">200</pre>
  324. <p><h4> Response Headers</h4></p>
  325. <table class="table table-bordered table-striped">
  326. <tr>
  327. <th>Key</th>
  328. <th>Value</th>
  329. </tr>
  330. <tr>
  331. <td>Access-Control-Allow-Headers</td>
  332. <td> Content-Type,Token</td>
  333. </tr>
  334. <tr>
  335. <td>Access-Control-Allow-Origin</td>
  336. <td> *</td>
  337. </tr>
  338. <tr>
  339. <td>Content-Type</td>
  340. <td> application/json; charset=utf-8</td>
  341. </tr>
  342. </table>
  343. <p> <H4> Response Body </H4> </p>
  344. <pre class="prettyprint" id="response-body-2-0">{&#34;message&#34;:&#34;password updated!&#34;}</pre>
  345. <script>
  346. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  347. if (responseHeader["Content-Type"] === "application/json"){
  348. try {
  349. var jsonStr = spaceJson("{\"message\":\"password updated!\"}");
  350. document.getElementById('response-body-2-0').innerHTML = syntaxHighlight(jsonStr);
  351. } catch (e) {
  352. }
  353. }
  354. </script>
  355. <hr>
  356. </div>
  357. <div id="3top" role="tabpanel" class="tab-pane col-md-10">
  358. <p> <H4> Request Headers </H4> </p>
  359. <table class="table table-bordered table-striped">
  360. <tr>
  361. <th>Key</th>
  362. <th>Value</th>
  363. </tr>
  364. <tr>
  365. <td>Cookie</td>
  366. <td> name=test1; sig=d4f71cba377911e699d60242ac110010 </td>
  367. </tr>
  368. <tr>
  369. <td>X-Forwarded-For</td>
  370. <td> </td>
  371. </tr>
  372. </table>
  373. <p><h4> Response Code</h4></p>
  374. <pre class="prettyprint lang-json">200</pre>
  375. <p><h4> Response Headers</h4></p>
  376. <table class="table table-bordered table-striped">
  377. <tr>
  378. <th>Key</th>
  379. <th>Value</th>
  380. </tr>
  381. <tr>
  382. <td>Access-Control-Allow-Headers</td>
  383. <td> Content-Type,Token</td>
  384. </tr>
  385. <tr>
  386. <td>Access-Control-Allow-Origin</td>
  387. <td> *</td>
  388. </tr>
  389. <tr>
  390. <td>Content-Type</td>
  391. <td> application/json; charset=utf-8</td>
  392. </tr>
  393. </table>
  394. <p> <H4> Response Body </H4> </p>
  395. <pre class="prettyprint" id="response-body-3-0">[{&#34;id&#34;:1,&#34;name&#34;:&#34;root&#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;:2},{&#34;id&#34;:2,&#34;name&#34;:&#34;yao104&#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;:3,&#34;name&#34;:&#34;xiecz&#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;: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},{&#34;id&#34;:9,&#34;name&#34;:&#34;test2&#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;:10,&#34;name&#34;:&#34;kordan&#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;:11,&#34;name&#34;:&#34;laurence&#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;:12,&#34;name&#34;:&#34;kelly&#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;:13,&#34;name&#34;:&#34;masato25&#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;:14,&#34;name&#34;:&#34;myhung&#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;:1},{&#34;id&#34;:32,&#34;name&#34;:&#34;owltester&#34;,&#34;cnname&#34;:&#34;翱鶚&#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}]</pre>
  396. <script>
  397. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  398. if (responseHeader["Content-Type"] === "application/json"){
  399. try {
  400. var jsonStr = spaceJson("[{\"id\":1,\"name\":\"root\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":2},{\"id\":2,\"name\":\"yao104\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":3,\"name\":\"xiecz\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"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},{\"id\":9,\"name\":\"test2\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":10,\"name\":\"kordan\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":11,\"name\":\"laurence\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":12,\"name\":\"kelly\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":13,\"name\":\"masato25\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":0},{\"id\":14,\"name\":\"myhung\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"904394234239\",\"role\":1},{\"id\":32,\"name\":\"owltester\",\"cnname\":\"翱鶚\",\"email\":\"root123@cepave.com\",\"phone\":\"99999999999\",\"im\":\"44955834958\",\"qq\":\"904394234239\",\"role\":0}]");
  401. document.getElementById('response-body-3-0').innerHTML = syntaxHighlight(jsonStr);
  402. } catch (e) {
  403. }
  404. }
  405. </script>
  406. <hr>
  407. </div>
  408. <div id="4top" role="tabpanel" class="tab-pane col-md-10">
  409. <p> <H4> Request Headers </H4> </p>
  410. <table class="table table-bordered table-striped">
  411. <tr>
  412. <th>Key</th>
  413. <th>Value</th>
  414. </tr>
  415. <tr>
  416. <td>X-Forwarded-For</td>
  417. <td> </td>
  418. </tr>
  419. </table>
  420. <p> <H4> URL Params </H4> </p>
  421. <table class="table table-bordered table-striped">
  422. <tr>
  423. <th>Key</th>
  424. <th>Value</th>
  425. </tr>
  426. <tr>
  427. <td>name</td>
  428. <td> gg123</td>
  429. </tr>
  430. <tr>
  431. <td>password</td>
  432. <td> willnotpass</td>
  433. </tr>
  434. </table>
  435. <p><h4> Response Code</h4></p>
  436. <pre class="prettyprint lang-json">400</pre>
  437. <p><h4> Response Headers</h4></p>
  438. <table class="table table-bordered table-striped">
  439. <tr>
  440. <th>Key</th>
  441. <th>Value</th>
  442. </tr>
  443. <tr>
  444. <td>Access-Control-Allow-Headers</td>
  445. <td> Content-Type,Token</td>
  446. </tr>
  447. <tr>
  448. <td>Access-Control-Allow-Origin</td>
  449. <td> *</td>
  450. </tr>
  451. <tr>
  452. <td>Content-Type</td>
  453. <td> application/json; charset=utf-8</td>
  454. </tr>
  455. </table>
  456. <p> <H4> Response Body </H4> </p>
  457. <pre class="prettyprint" id="response-body-4-0">{&#34;error&#34;:&#34;password error&#34;}</pre>
  458. <script>
  459. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  460. if (responseHeader["Content-Type"] === "application/json"){
  461. try {
  462. var jsonStr = spaceJson("{\"error\":\"password error\"}");
  463. document.getElementById('response-body-4-0').innerHTML = syntaxHighlight(jsonStr);
  464. } catch (e) {
  465. }
  466. }
  467. </script>
  468. <hr>
  469. <p> <H4> Request Headers </H4> </p>
  470. <table class="table table-bordered table-striped">
  471. <tr>
  472. <th>Key</th>
  473. <th>Value</th>
  474. </tr>
  475. <tr>
  476. <td>X-Forwarded-For</td>
  477. <td> </td>
  478. </tr>
  479. </table>
  480. <p> <H4> URL Params </H4> </p>
  481. <table class="table table-bordered table-striped">
  482. <tr>
  483. <th>Key</th>
  484. <th>Value</th>
  485. </tr>
  486. <tr>
  487. <td>name</td>
  488. <td> test2</td>
  489. </tr>
  490. <tr>
  491. <td>password</td>
  492. <td> test2</td>
  493. </tr>
  494. </table>
  495. <p><h4> Response Code</h4></p>
  496. <pre class="prettyprint lang-json">200</pre>
  497. <p><h4> Response Headers</h4></p>
  498. <table class="table table-bordered table-striped">
  499. <tr>
  500. <th>Key</th>
  501. <th>Value</th>
  502. </tr>
  503. <tr>
  504. <td>Access-Control-Allow-Headers</td>
  505. <td> Content-Type,Token</td>
  506. </tr>
  507. <tr>
  508. <td>Access-Control-Allow-Origin</td>
  509. <td> *</td>
  510. </tr>
  511. <tr>
  512. <td>Content-Type</td>
  513. <td> application/json; charset=utf-8</td>
  514. </tr>
  515. </table>
  516. <p> <H4> Response Body </H4> </p>
  517. <pre class="prettyprint" id="response-body-4-1">{&#34;sig&#34;:&#34;9d791331c0ea11e690c5001500c6ca5a&#34;,&#34;name&#34;:&#34;test2&#34;,&#34;admin&#34;:false}</pre>
  518. <script>
  519. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  520. if (responseHeader["Content-Type"] === "application/json"){
  521. try {
  522. var jsonStr = spaceJson("{\"sig\":\"9d791331c0ea11e690c5001500c6ca5a\",\"name\":\"test2\",\"admin\":false}");
  523. document.getElementById('response-body-4-1').innerHTML = syntaxHighlight(jsonStr);
  524. } catch (e) {
  525. }
  526. }
  527. </script>
  528. <hr>
  529. </div>
  530. <div id="5top" role="tabpanel" class="tab-pane col-md-10">
  531. <p> <H4> Request Headers </H4> </p>
  532. <table class="table table-bordered table-striped">
  533. <tr>
  534. <th>Key</th>
  535. <th>Value</th>
  536. </tr>
  537. <tr>
  538. <td>Cookie</td>
  539. <td> name=test2; sig=9d791331c0ea11e690c5001500c6ca5a </td>
  540. </tr>
  541. <tr>
  542. <td>X-Forwarded-For</td>
  543. <td> </td>
  544. </tr>
  545. </table>
  546. <p><h4> Response Code</h4></p>
  547. <pre class="prettyprint lang-json">200</pre>
  548. <p><h4> Response Headers</h4></p>
  549. <table class="table table-bordered table-striped">
  550. <tr>
  551. <th>Key</th>
  552. <th>Value</th>
  553. </tr>
  554. <tr>
  555. <td>Access-Control-Allow-Headers</td>
  556. <td> Content-Type,Token</td>
  557. </tr>
  558. <tr>
  559. <td>Access-Control-Allow-Origin</td>
  560. <td> *</td>
  561. </tr>
  562. <tr>
  563. <td>Content-Type</td>
  564. <td> application/json; charset=utf-8</td>
  565. </tr>
  566. </table>
  567. <p> <H4> Response Body </H4> </p>
  568. <pre class="prettyprint" id="response-body-5-0">{&#34;message&#34;:&#34;logout successful&#34;}</pre>
  569. <script>
  570. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  571. if (responseHeader["Content-Type"] === "application/json"){
  572. try {
  573. var jsonStr = spaceJson("{\"message\":\"logout successful\"}");
  574. document.getElementById('response-body-5-0').innerHTML = syntaxHighlight(jsonStr);
  575. } catch (e) {
  576. }
  577. }
  578. </script>
  579. <hr>
  580. </div>
  581. <div id="6top" role="tabpanel" class="tab-pane col-md-10">
  582. <p> <H4> Request Headers </H4> </p>
  583. <table class="table table-bordered table-striped">
  584. <tr>
  585. <th>Key</th>
  586. <th>Value</th>
  587. </tr>
  588. <tr>
  589. <td>Cookie</td>
  590. <td> name=test1; sig=d4f71cba377911e699d60242ac110010 </td>
  591. </tr>
  592. <tr>
  593. <td>X-Forwarded-For</td>
  594. <td> </td>
  595. </tr>
  596. </table>
  597. <p><h4> Response Code</h4></p>
  598. <pre class="prettyprint lang-json">200</pre>
  599. <p><h4> Response Headers</h4></p>
  600. <table class="table table-bordered table-striped">
  601. <tr>
  602. <th>Key</th>
  603. <th>Value</th>
  604. </tr>
  605. <tr>
  606. <td>Access-Control-Allow-Headers</td>
  607. <td> Content-Type,Token</td>
  608. </tr>
  609. <tr>
  610. <td>Access-Control-Allow-Origin</td>
  611. <td> *</td>
  612. </tr>
  613. <tr>
  614. <td>Content-Type</td>
  615. <td> application/json; charset=utf-8</td>
  616. </tr>
  617. </table>
  618. <p> <H4> Response Body </H4> </p>
  619. <pre class="prettyprint" id="response-body-6-0">{&#34;message&#34;:&#34;session is vaild!&#34;}</pre>
  620. <script>
  621. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  622. if (responseHeader["Content-Type"] === "application/json"){
  623. try {
  624. var jsonStr = spaceJson("{\"message\":\"session is vaild!\"}");
  625. document.getElementById('response-body-6-0').innerHTML = syntaxHighlight(jsonStr);
  626. } catch (e) {
  627. }
  628. }
  629. </script>
  630. <hr>
  631. <p> <H4> Request Headers </H4> </p>
  632. <table class="table table-bordered table-striped">
  633. <tr>
  634. <th>Key</th>
  635. <th>Value</th>
  636. </tr>
  637. <tr>
  638. <td>Cookie</td>
  639. <td> name=testtest; sig=9a84ae1d377911e699d60242ac110010 </td>
  640. </tr>
  641. <tr>
  642. <td>X-Forwarded-For</td>
  643. <td> </td>
  644. </tr>
  645. </table>
  646. <p><h4> Response Code</h4></p>
  647. <pre class="prettyprint lang-json">401</pre>
  648. <p><h4> Response Headers</h4></p>
  649. <table class="table table-bordered table-striped">
  650. <tr>
  651. <th>Key</th>
  652. <th>Value</th>
  653. </tr>
  654. <tr>
  655. <td>Access-Control-Allow-Headers</td>
  656. <td> Content-Type,Token</td>
  657. </tr>
  658. <tr>
  659. <td>Access-Control-Allow-Origin</td>
  660. <td> *</td>
  661. </tr>
  662. <tr>
  663. <td>Content-Type</td>
  664. <td> application/json; charset=utf-8</td>
  665. </tr>
  666. </table>
  667. <p> <H4> Response Body </H4> </p>
  668. <pre class="prettyprint" id="response-body-6-1">{&#34;error&#34;:&#34;not found this user&#34;}</pre>
  669. <script>
  670. var responseHeader ={"Access-Control-Allow-Headers":"Content-Type,Token","Access-Control-Allow-Origin":"*","Content-Type":"application/json; charset=utf-8"};
  671. if (responseHeader["Content-Type"] === "application/json"){
  672. try {
  673. var jsonStr = spaceJson("{\"error\":\"not found this user\"}");
  674. document.getElementById('response-body-6-1').innerHTML = syntaxHighlight(jsonStr);
  675. } catch (e) {
  676. }
  677. }
  678. </script>
  679. <hr>
  680. </div>
  681. <div id="7top" role="tabpanel" class="tab-pane col-md-10">
  682. <p> <H4> Request Headers </H4> </p>
  683. <table class="table table-bordered table-striped">
  684. <tr>
  685. <th>Key</th>
  686. <th>Value</th>
  687. </tr>
  688. <tr>
  689. <td>Apitoken</td>
  690. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  691. </tr>
  692. <tr>
  693. <td>X-Forwarded-For</td>
  694. <td> 127.0.0.1 </td>
  695. </tr>
  696. </table>
  697. <p><h4> Response Code</h4></p>
  698. <pre class="prettyprint lang-json">200</pre>
  699. <p><h4> Response Headers</h4></p>
  700. <table class="table table-bordered table-striped">
  701. <tr>
  702. <th>Key</th>
  703. <th>Value</th>
  704. </tr>
  705. <tr>
  706. <td>Access-Control-Allow-Credentials</td>
  707. <td> true</td>
  708. </tr>
  709. <tr>
  710. <td>Access-Control-Allow-Headers</td>
  711. <td> Content-Type, Content-Length, Apitoken</td>
  712. </tr>
  713. <tr>
  714. <td>Access-Control-Allow-Methods</td>
  715. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  716. </tr>
  717. <tr>
  718. <td>Access-Control-Allow-Origin</td>
  719. <td> *</td>
  720. </tr>
  721. <tr>
  722. <td>Access-Control-Expose-Headers</td>
  723. <td> Content-Length</td>
  724. </tr>
  725. <tr>
  726. <td>Access-Control-Max-Age</td>
  727. <td> 86400</td>
  728. </tr>
  729. <tr>
  730. <td>Content-Type</td>
  731. <td> application/json; charset=utf-8</td>
  732. </tr>
  733. </table>
  734. <p> <H4> Response Body </H4> </p>
  735. <pre class="prettyprint" id="response-body-7-0">{&#34;id&#34;:2,&#34;name&#34;:&#34;root&#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;&#34;,&#34;role&#34;:2}</pre>
  736. <script>
  737. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  738. if (responseHeader["Content-Type"] === "application/json"){
  739. try {
  740. var jsonStr = spaceJson("{\"id\":2,\"name\":\"root\",\"cnname\":\"\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"\",\"role\":2}");
  741. document.getElementById('response-body-7-0').innerHTML = syntaxHighlight(jsonStr);
  742. } catch (e) {
  743. }
  744. }
  745. </script>
  746. <hr>
  747. </div>
  748. <div id="8top" role="tabpanel" class="tab-pane col-md-10">
  749. <p> <H4> Request Headers </H4> </p>
  750. <table class="table table-bordered table-striped">
  751. <tr>
  752. <th>Key</th>
  753. <th>Value</th>
  754. </tr>
  755. <tr>
  756. <td>Apitoken</td>
  757. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  758. </tr>
  759. <tr>
  760. <td>X-Forwarded-For</td>
  761. <td> 127.0.0.1 </td>
  762. </tr>
  763. </table>
  764. <p><h4> Response Code</h4></p>
  765. <pre class="prettyprint lang-json">417</pre>
  766. <p><h4> Response Headers</h4></p>
  767. <table class="table table-bordered table-striped">
  768. <tr>
  769. <th>Key</th>
  770. <th>Value</th>
  771. </tr>
  772. <tr>
  773. <td>Access-Control-Allow-Credentials</td>
  774. <td> true</td>
  775. </tr>
  776. <tr>
  777. <td>Access-Control-Allow-Headers</td>
  778. <td> Content-Type, Content-Length, Apitoken</td>
  779. </tr>
  780. <tr>
  781. <td>Access-Control-Allow-Methods</td>
  782. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  783. </tr>
  784. <tr>
  785. <td>Access-Control-Allow-Origin</td>
  786. <td> *</td>
  787. </tr>
  788. <tr>
  789. <td>Access-Control-Expose-Headers</td>
  790. <td> Content-Length</td>
  791. </tr>
  792. <tr>
  793. <td>Access-Control-Max-Age</td>
  794. <td> 86400</td>
  795. </tr>
  796. <tr>
  797. <td>Content-Type</td>
  798. <td> application/json; charset=utf-8</td>
  799. </tr>
  800. </table>
  801. <p> <H4> Response Body </H4> </p>
  802. <pre class="prettyprint" id="response-body-8-0">{&#34;error&#34;:&#34;record not found&#34;}</pre>
  803. <script>
  804. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  805. if (responseHeader["Content-Type"] === "application/json"){
  806. try {
  807. var jsonStr = spaceJson("{\"error\":\"record not found\"}");
  808. document.getElementById('response-body-8-0').innerHTML = syntaxHighlight(jsonStr);
  809. } catch (e) {
  810. }
  811. }
  812. </script>
  813. <hr>
  814. </div>
  815. <div id="9top" role="tabpanel" class="tab-pane col-md-10">
  816. <p> <H4> Request Headers </H4> </p>
  817. <table class="table table-bordered table-striped">
  818. <tr>
  819. <th>Key</th>
  820. <th>Value</th>
  821. </tr>
  822. <tr>
  823. <td>Apitoken</td>
  824. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  825. </tr>
  826. <tr>
  827. <td>X-Forwarded-For</td>
  828. <td> 127.0.0.1 </td>
  829. </tr>
  830. </table>
  831. <p><h4> Response Code</h4></p>
  832. <pre class="prettyprint lang-json">200</pre>
  833. <p><h4> Response Headers</h4></p>
  834. <table class="table table-bordered table-striped">
  835. <tr>
  836. <th>Key</th>
  837. <th>Value</th>
  838. </tr>
  839. <tr>
  840. <td>Access-Control-Allow-Credentials</td>
  841. <td> true</td>
  842. </tr>
  843. <tr>
  844. <td>Access-Control-Allow-Headers</td>
  845. <td> Content-Type, Content-Length, Apitoken</td>
  846. </tr>
  847. <tr>
  848. <td>Access-Control-Allow-Methods</td>
  849. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  850. </tr>
  851. <tr>
  852. <td>Access-Control-Allow-Origin</td>
  853. <td> *</td>
  854. </tr>
  855. <tr>
  856. <td>Access-Control-Expose-Headers</td>
  857. <td> Content-Length</td>
  858. </tr>
  859. <tr>
  860. <td>Access-Control-Max-Age</td>
  861. <td> 86400</td>
  862. </tr>
  863. <tr>
  864. <td>Content-Type</td>
  865. <td> application/json; charset=utf-8</td>
  866. </tr>
  867. </table>
  868. <p> <H4> Response Body </H4> </p>
  869. <pre class="prettyprint" id="response-body-9-0">{&#34;id&#34;:4,&#34;name&#34;:&#34;userA&#34;,&#34;cnname&#34;:&#34;tear&#34;,&#34;email&#34;:&#34;&#34;,&#34;phone&#34;:&#34;&#34;,&#34;im&#34;:&#34;&#34;,&#34;qq&#34;:&#34;&#34;,&#34;role&#34;:0}</pre>
  870. <script>
  871. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  872. if (responseHeader["Content-Type"] === "application/json"){
  873. try {
  874. var jsonStr = spaceJson("{\"id\":4,\"name\":\"userA\",\"cnname\":\"tear\",\"email\":\"\",\"phone\":\"\",\"im\":\"\",\"qq\":\"\",\"role\":0}");
  875. document.getElementById('response-body-9-0').innerHTML = syntaxHighlight(jsonStr);
  876. } catch (e) {
  877. }
  878. }
  879. </script>
  880. <hr>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <hr>
  886. </body>
  887. </html>