Advertisement
ntttnn

Untitled

Oct 14th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.97 KB | None | 0 0
  1. {
  2. "request": {
  3. "assets": [
  4. {
  5. "name": "id",
  6. "description": "id",
  7. "label": "id",
  8. "type": "string",
  9. "value": "id"
  10. },
  11. {
  12. "name": "emailA",
  13. "description": "emailA",
  14. "label": "emailA",
  15. "type": "string",
  16. "value": "emailA"
  17. },
  18. {
  19. "name": "emailB",
  20. "description": "emailB",
  21. "label": "emailB",
  22. "type": "string",
  23. "value": "emailB"
  24. },
  25. {
  26. "name": "create_at",
  27. "description": "create_at",
  28. "label": "create_at",
  29. "type": "string",
  30. "value": "create_at"
  31. },
  32. {
  33. "name": "update_at",
  34. "description": "update_at",
  35. "label": "update_at",
  36. "type": "string",
  37. "value": "update_at"
  38. },
  39. {
  40. "name": "listsign",
  41. "description": "listsign",
  42. "label": "listsign",
  43. "type": "string",
  44. "value": "listsign"
  45. },
  46. {
  47. "name": "contractDetails",
  48. "description": "contractDetails",
  49. "label": "contractDetails",
  50. "type": "string",
  51. "value": "contractDetails"
  52. },
  53. {
  54. "name": "field_2",
  55. "description": "field_2",
  56. "label": "field_2",
  57. "type": "object",
  58. "value": "field_2",
  59. "child": [
  60. {
  61. "name": "field_3",
  62. "description": "field_3",
  63. "type": "string"
  64. },
  65. {
  66. "name": "field_7",
  67. "description": "field_7",
  68. "type": "string"
  69. },
  70. {
  71. "name": "field_6",
  72. "description": "field_6",
  73. "type": "string"
  74. },
  75. {
  76. "name": "field_5",
  77. "description": "field_5",
  78. "type": "string"
  79. },
  80. {
  81. "name": "field_4",
  82. "description": "field_4",
  83. "type": "string"
  84. }
  85. ]
  86. },
  87. {
  88. "name": "field_1",
  89. "description": "field_1",
  90. "label": "field_1",
  91. "type": "string",
  92. "value": "field_1"
  93. }
  94. ],
  95. "img_url": "",
  96. "methods": [
  97. {
  98. "roles": [
  99. "KH"
  100. ],
  101. "name": "taomoi",
  102. "params": [
  103. "id",
  104. "emailA",
  105. "emailB",
  106. "create_at",
  107. "update_at",
  108. "listsign",
  109. "contractDetails",
  110. "field_3",
  111. "field_7",
  112. "field_6",
  113. "field_5",
  114. "field_4",
  115. "field_2",
  116. "field_1"
  117. ],
  118. "type": "CREATE"
  119. },
  120. {
  121. "roles": [
  122. "KH"
  123. ],
  124. "name": "123",
  125. "params": [
  126. "emailB"
  127. ],
  128. "type": "GET"
  129. }
  130. ],
  131. "roles": [
  132. "KH",
  133. "NVKD",
  134. "TKKD",
  135. "GDS",
  136. "KT",
  137. "123",
  138. "123",
  139. "123"
  140. ],
  141. "name": "testApp",
  142. "description": "",
  143. "uuid": [
  144. "id",
  145. "field_1",
  146. "field_2"
  147. ]
  148. },
  149. "img_url": "https://image.winudf.com/v2/image/bWFya2FwcHMubWFya2FwcHMxX3NjcmVlbl8wXzE1MjQwMjU3MDRfMDk1/screen-0.jpg?h=355&fakeurl=1&type=.jpg",
  150. "response": {
  151. "basePath": "/",
  152. "paths": {
  153. "/testApp/123": {
  154. "get": {
  155. "summary": "123",
  156. "produces": [
  157. "application/json"
  158. ],
  159. "description": "123",
  160. "operationId": "123",
  161. "responses": {
  162. "201": {
  163. "schema": {
  164. "type": "array",
  165. "items": {
  166. "type": "object",
  167. "properties": {
  168. "emailB": {
  169. "type": "string"
  170. },
  171. "emailA": {
  172. "type": "string"
  173. },
  174. "field_1": {
  175. "type": "string"
  176. },
  177. "field_2": {
  178. "type": "object",
  179. "properties": {
  180. "field_3": {
  181. "type": "string"
  182. },
  183. "field_4": {
  184. "type": "string"
  185. },
  186. "field_7": {
  187. "type": "string"
  188. },
  189. "field_5": {
  190. "type": "string"
  191. },
  192. "field_6": {
  193. "type": "string"
  194. },
  195. "timestamp": {
  196. "type": "integer"
  197. }
  198. }
  199. },
  200. "update_at": {
  201. "type": "string"
  202. },
  203. "listsign": {
  204. "type": "string"
  205. },
  206. "id": {
  207. "type": "string"
  208. },
  209. "create_at": {
  210. "type": "string"
  211. },
  212. "contractDetails": {
  213. "type": "string"
  214. }
  215. }
  216. }
  217. },
  218. "description": "Info"
  219. },
  220. "400": {
  221. "description": "invalid input, object invalid"
  222. },
  223. "409": {
  224. "description": "not exist"
  225. }
  226. },
  227. "parameters": [
  228. {
  229. "schema": {
  230. "type": "object",
  231. "required": [
  232. "emailB"
  233. ],
  234. "properties": {
  235. "emailB": {
  236. "type": "string"
  237. }
  238. }
  239. },
  240. "in": "body",
  241. "name": "product",
  242. "description": "product"
  243. },
  244. {
  245. "in": "header",
  246. "name": "authorization",
  247. "type": "string"
  248. }
  249. ],
  250. "consumes": [
  251. "application/json"
  252. ],
  253. "tags": [
  254. "KH"
  255. ]
  256. }
  257. },
  258. "/testApp/taomoi": {
  259. "post": {
  260. "summary": "taomoi",
  261. "produces": [
  262. "application/json"
  263. ],
  264. "description": "taomoi",
  265. "operationId": "taomoi",
  266. "responses": {
  267. "201": {
  268. "schema": {
  269. "type": "object",
  270. "properties": {
  271. "field_1": {
  272. "type": "string"
  273. },
  274. "field_2": {
  275. "type": "string"
  276. },
  277. "id": {
  278. "type": "string"
  279. },
  280. "status": {
  281. "type": "string"
  282. }
  283. }
  284. },
  285. "description": "created"
  286. },
  287. "400": {
  288. "description": "invalid input, object invalid"
  289. },
  290. "409": {
  291. "description": "not exist"
  292. }
  293. },
  294. "parameters": [
  295. {
  296. "schema": {
  297. "type": "object",
  298. "required": [
  299. "id",
  300. "emailA",
  301. "emailB",
  302. "create_at",
  303. "update_at",
  304. "listsign",
  305. "contractDetails",
  306. "field_3",
  307. "field_7",
  308. "field_6",
  309. "field_5",
  310. "field_4",
  311. "field_2",
  312. "field_1"
  313. ],
  314. "properties": {
  315. "emailB": {
  316. "type": "string"
  317. },
  318. "emailA": {
  319. "type": "string"
  320. },
  321. "field_3": {
  322. "type": "string"
  323. },
  324. "field_4": {
  325. "type": "string"
  326. },
  327. "update_at": {
  328. "type": "string"
  329. },
  330. "listsign": {
  331. "type": "string"
  332. },
  333. "field_7": {
  334. "type": "string"
  335. },
  336. "field_5": {
  337. "type": "string"
  338. },
  339. "field_6": {
  340. "type": "string"
  341. },
  342. "create_at": {
  343. "type": "string"
  344. },
  345. "contractDetails": {
  346. "type": "string"
  347. }
  348. }
  349. },
  350. "in": "body",
  351. "name": "product",
  352. "description": "product"
  353. },
  354. {
  355. "in": "header",
  356. "name": "authorization",
  357. "type": "string"
  358. }
  359. ],
  360. "consumes": [
  361. "application/json"
  362. ],
  363. "tags": [
  364. "KH"
  365. ]
  366. }
  367. },
  368. "/user": {
  369. "post": {
  370. "summary": "createUser",
  371. "produces": [
  372. "application/json"
  373. ],
  374. "description": "createUser",
  375. "operationId": "createUser",
  376. "responses": {
  377. "201": {
  378. "description": "created"
  379. },
  380. "400": {
  381. "description": "username exist"
  382. }
  383. },
  384. "parameters": [
  385. {
  386. "schema": {
  387. "type": "object",
  388. "required": [
  389. "username",
  390. "password",
  391. "role"
  392. ],
  393. "properties": {
  394. "password": {
  395. "type": "string"
  396. },
  397. "role": {
  398. "type": "string"
  399. },
  400. "username": {
  401. "type": "string"
  402. }
  403. }
  404. },
  405. "in": "body",
  406. "name": "user",
  407. "description": "Roles : KH NVKD TKKD GDS KT 123 123 123 ",
  408. "required": true
  409. }
  410. ],
  411. "consumes": [
  412. "application/json"
  413. ],
  414. "tags": [
  415. "default"
  416. ]
  417. }
  418. },
  419. "/authentication": {
  420. "post": {
  421. "summary": "authentication",
  422. "produces": [
  423. "application/json"
  424. ],
  425. "description": "authentication",
  426. "operationId": "authentication",
  427. "responses": {
  428. "200": {
  429. "schema": {
  430. "type": "object",
  431. "properties": {
  432. "authorization": {
  433. "type": "string",
  434. "enum": [
  435. "eyJleHAiOjE1NjExMDQyMDIsImFsZyI6IkhTNTEyIiwiaWF0IjoxNTYxMTAwNjAyfQ.eyJwdWJsaWNfa2V5IjoiMDM3YTRhZTliZWYwMDhkZGY3YjUwODE0N2ZlNjc0OTFhYmMzZWEyNzkyZmYxMjY0MDgwODAwZTJmODg2Nzc2MGJlIn0.LreIkJoa6Ha1sZXTBN8i_smrDPmCRMu0cGzXjs9qH2Aj9IkHh9iXNj-pT-nYW8f_SNYdkpHR1lxMqpVasvNhqA",
  436. "Incorrect username or password",
  437. "Missing required fields"
  438. ]
  439. },
  440. "status": {
  441. "type": "string",
  442. "enum": [
  443. "Success",
  444. "Failure"
  445. ]
  446. },
  447. "statusCode": {
  448. "type": "number",
  449. "enum": [
  450. 0,
  451. 1
  452. ]
  453. }
  454. }
  455. },
  456. "description": "login success"
  457. }
  458. },
  459. "parameters": [
  460. {
  461. "schema": {
  462. "type": "object",
  463. "required": [
  464. "username",
  465. "password"
  466. ],
  467. "properties": {
  468. "password": {
  469. "type": "string"
  470. },
  471. "username": {
  472. "type": "string"
  473. }
  474. }
  475. },
  476. "in": "body",
  477. "name": "default",
  478. "description": "default",
  479. "required": true
  480. }
  481. ],
  482. "consumes": [
  483. "application/json"
  484. ],
  485. "tags": [
  486. "default"
  487. ]
  488. }
  489. }
  490. },
  491. "host": "178.128.217.110:8000",
  492. "schemes": [
  493. "http"
  494. ],
  495. "swagger": "2.0",
  496. "info": {
  497. "license": {
  498. "name": "Apache 2.0",
  499. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  500. },
  501. "contact": {
  502. "email": "hust.blockchain@gmail.com"
  503. },
  504. "description": "testApp API",
  505. "title": "testApp API",
  506. "version": "1.0.0"
  507. },
  508. "tags": [
  509. {
  510. "name": "KH",
  511. "description": "KH"
  512. },
  513. {
  514. "name": "NVKD",
  515. "description": "NVKD"
  516. },
  517. {
  518. "name": "TKKD",
  519. "description": "TKKD"
  520. },
  521. {
  522. "name": "GDS",
  523. "description": "GDS"
  524. },
  525. {
  526. "name": "KT",
  527. "description": "KT"
  528. },
  529. {
  530. "name": "123",
  531. "description": "123"
  532. },
  533. {
  534. "name": "123",
  535. "description": "123"
  536. },
  537. {
  538. "name": "123",
  539. "description": "123"
  540. }
  541. ]
  542. },
  543. "name": "testApp",
  544. "description": ""
  545. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement