swagger.yaml 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084
  1. definitions:
  2. admin.AccountInfo:
  3. properties:
  4. email:
  5. type: string
  6. password:
  7. type: string
  8. type: object
  9. admin.AdminAuthContainer:
  10. properties:
  11. access_token:
  12. type: string
  13. permission:
  14. $ref: '#/definitions/models.AdminPermission'
  15. type: object
  16. admin.RegisterAdministratorData:
  17. properties:
  18. chargeof:
  19. type: string
  20. email:
  21. type: string
  22. name:
  23. type: string
  24. password:
  25. type: string
  26. phone:
  27. type: string
  28. position:
  29. type: string
  30. team:
  31. type: string
  32. type: object
  33. admin.RegisterArtistData:
  34. properties:
  35. category:
  36. type: string
  37. email:
  38. type: string
  39. name:
  40. type: string
  41. phone:
  42. type: string
  43. team:
  44. type: string
  45. type: object
  46. admin.SettingData:
  47. properties:
  48. commission:
  49. type: number
  50. gas_deposit:
  51. type: number
  52. special_collection:
  53. type: string
  54. type: object
  55. admin.UpdateCuration:
  56. properties:
  57. id:
  58. type: integer
  59. index:
  60. type: integer
  61. type: object
  62. admin.UpdatePermission:
  63. properties:
  64. admin_id:
  65. type: integer
  66. admin_permission:
  67. type: boolean
  68. collection_permission:
  69. type: boolean
  70. log_permission:
  71. type: boolean
  72. system_permission:
  73. type: boolean
  74. user_permission:
  75. type: boolean
  76. type: object
  77. admin.UpdateStatus:
  78. properties:
  79. id:
  80. type: integer
  81. status:
  82. type: string
  83. type: object
  84. common.ActivityItem:
  85. properties:
  86. created_at:
  87. type: string
  88. currency:
  89. type: string
  90. from_address:
  91. type: string
  92. from_user_is_artist:
  93. type: boolean
  94. from_user_name:
  95. type: string
  96. from_user_profile:
  97. type: string
  98. is_cancel:
  99. type: boolean
  100. log_relation_id:
  101. type: integer
  102. log_type:
  103. type: string
  104. price:
  105. type: string
  106. sale_id:
  107. type: integer
  108. sale_uid:
  109. type: string
  110. to_address:
  111. type: string
  112. to_user_is_artist:
  113. type: boolean
  114. to_user_name:
  115. type: string
  116. to_user_profile:
  117. type: string
  118. token_content_url:
  119. type: string
  120. token_id:
  121. type: integer
  122. token_name:
  123. type: string
  124. tx:
  125. type: string
  126. type: object
  127. common.CollectionItem:
  128. properties:
  129. collection_id:
  130. type: integer
  131. collection_name:
  132. type: string
  133. cover_image:
  134. type: string
  135. is_official:
  136. type: boolean
  137. owner_name:
  138. type: string
  139. thumbnail_image:
  140. type: string
  141. total_item:
  142. type: integer
  143. total_volume:
  144. type: number
  145. user_id:
  146. type: integer
  147. type: object
  148. common.ExpItem:
  149. properties:
  150. bid_count:
  151. type: integer
  152. collection_id:
  153. type: integer
  154. collection_name:
  155. type: string
  156. collection_thumbnail_image:
  157. type: string
  158. content_title:
  159. type: string
  160. content_url:
  161. type: string
  162. created_at:
  163. type: string
  164. current_currency:
  165. type: string
  166. current_price:
  167. type: string
  168. end_at:
  169. type: string
  170. fixed_price:
  171. type: string
  172. is_artist:
  173. type: boolean
  174. is_like:
  175. type: boolean
  176. is_official_collection:
  177. type: boolean
  178. item_index:
  179. type: integer
  180. lastest_currency:
  181. type: string
  182. lastest_price:
  183. type: string
  184. likes:
  185. type: integer
  186. owner_name:
  187. type: string
  188. owner_thumbnail_image:
  189. type: string
  190. sale_id:
  191. type: integer
  192. sale_status:
  193. type: string
  194. sale_type:
  195. type: string
  196. start_price:
  197. type: string
  198. token_id:
  199. type: integer
  200. total_count:
  201. type: integer
  202. user_id:
  203. type: integer
  204. type: object
  205. common.Filter:
  206. properties:
  207. category:
  208. type: string
  209. collection_name:
  210. type: string
  211. currency:
  212. type: string
  213. currency_amount_end:
  214. type: string
  215. currency_amount_start:
  216. type: string
  217. limit:
  218. default: -1
  219. type: integer
  220. network:
  221. type: string
  222. offset:
  223. default: -1
  224. type: integer
  225. sale_status:
  226. description: for 개인페이지의 판매중
  227. type: string
  228. sale_type:
  229. type: string
  230. token_name:
  231. type: string
  232. type: object
  233. models.AdminLog:
  234. properties:
  235. action_type:
  236. description: '[ 2] action_type char(10) null:
  237. false primary: false isArray: false auto: false col: char len:
  238. 10 default: []'
  239. type: string
  240. actioned_at:
  241. description: '[ 4] actioned_at timestamp null:
  242. false primary: false isArray: false auto: false col: timestamp len:
  243. -1 default: []'
  244. type: string
  245. admin_id:
  246. description: '[ 1] admin_id ubigint null:
  247. false primary: false isArray: false auto: false col: ubigint len:
  248. -1 default: []'
  249. type: integer
  250. created_at:
  251. description: '[ 5] created_at timestamp null:
  252. false primary: false isArray: false auto: false col: timestamp len:
  253. -1 default: [CURRENT_TIMESTAMP]'
  254. type: string
  255. deleted_at:
  256. description: '[ 7] deleted_at timestamp null:
  257. true primary: false isArray: false auto: false col: timestamp len:
  258. -1 default: []'
  259. type: string
  260. id:
  261. description: '[ 0] id ubigint null:
  262. false primary: true isArray: false auto: true col: ubigint len:
  263. -1 default: []'
  264. type: integer
  265. message:
  266. description: '[ 8] message varchar(256) null:
  267. false primary: false isArray: false auto: false col: varchar len:
  268. 256 default: []'
  269. type: string
  270. sub_action_type:
  271. description: '[ 3] sub_action_type char(8) null:
  272. false primary: false isArray: false auto: false col: char len:
  273. 8 default: []'
  274. type: string
  275. updated_at:
  276. description: '[ 6] updated_at timestamp null:
  277. false primary: false isArray: false auto: false col: timestamp len:
  278. -1 default: [CURRENT_TIMESTAMP]'
  279. type: string
  280. type: object
  281. models.AdminPermission:
  282. properties:
  283. admin:
  284. description: '[ 5] admin tinyint null:
  285. false primary: false isArray: false auto: false col: tinyint len:
  286. -1 default: [0]'
  287. type: integer
  288. admin_id:
  289. description: '[ 1] admin_id ubigint null:
  290. false primary: false isArray: false auto: false col: ubigint len:
  291. -1 default: []'
  292. type: integer
  293. collection:
  294. description: '[ 3] collection tinyint null:
  295. false primary: false isArray: false auto: false col: tinyint len:
  296. -1 default: [0]'
  297. type: integer
  298. created_at:
  299. description: '[ 7] created_at timestamp null:
  300. false primary: false isArray: false auto: false col: timestamp len:
  301. -1 default: [CURRENT_TIMESTAMP]'
  302. type: string
  303. deleted_at:
  304. description: '[ 9] deleted_at timestamp null:
  305. true primary: false isArray: false auto: false col: timestamp len:
  306. -1 default: []'
  307. type: string
  308. id:
  309. description: '[ 0] id ubigint null:
  310. false primary: true isArray: false auto: true col: ubigint len:
  311. -1 default: []'
  312. type: integer
  313. log:
  314. description: '[ 6] log tinyint null:
  315. false primary: false isArray: false auto: false col: tinyint len:
  316. -1 default: [0]'
  317. type: integer
  318. system:
  319. description: '[ 4] system tinyint null:
  320. false primary: false isArray: false auto: false col: tinyint len:
  321. -1 default: [0]'
  322. type: integer
  323. updated_at:
  324. description: '[ 8] updated_at timestamp null:
  325. false primary: false isArray: false auto: false col: timestamp len:
  326. -1 default: [CURRENT_TIMESTAMP]'
  327. type: string
  328. user:
  329. description: '[ 2] user tinyint null:
  330. false primary: false isArray: false auto: false col: tinyint len:
  331. -1 default: [0]'
  332. type: integer
  333. type: object
  334. models.Setting:
  335. properties:
  336. commission:
  337. description: '[ 1] commission double null:
  338. false primary: false isArray: false auto: false col: double len:
  339. -1 default: []'
  340. type: number
  341. created_at:
  342. description: '[ 5] created_at timestamp null:
  343. false primary: false isArray: false auto: false col: timestamp len:
  344. -1 default: [CURRENT_TIMESTAMP]'
  345. type: string
  346. deleted_at:
  347. description: '[ 7] deleted_at timestamp null:
  348. true primary: false isArray: false auto: false col: timestamp len:
  349. -1 default: []'
  350. type: string
  351. gas_deposit:
  352. description: '[ 3] gas_deposit double null:
  353. false primary: false isArray: false auto: false col: double len:
  354. -1 default: []'
  355. type: number
  356. id:
  357. description: '[ 0] id ubigint null:
  358. false primary: true isArray: false auto: true col: ubigint len:
  359. -1 default: []'
  360. type: integer
  361. special_collection:
  362. description: '[ 2] special_collection varchar(128) null:
  363. false primary: false isArray: false auto: false col: varchar len:
  364. 128 default: []'
  365. type: string
  366. treasury_address:
  367. description: '[ 4] treasury_address varchar(256) null:
  368. false primary: false isArray: false auto: false col: varchar len:
  369. 256 default: []'
  370. type: string
  371. updated_at:
  372. description: '[ 6] updated_at timestamp null:
  373. false primary: false isArray: false auto: false col: timestamp len:
  374. -1 default: [CURRENT_TIMESTAMP]'
  375. type: string
  376. type: object
  377. models.Traits:
  378. properties:
  379. created_at:
  380. description: '[ 4] created_at timestamp null:
  381. false primary: false isArray: false auto: false col: timestamp len:
  382. -1 default: [CURRENT_TIMESTAMP]'
  383. type: string
  384. deleted_at:
  385. description: '[ 6] deleted_at timestamp null:
  386. true primary: false isArray: false auto: false col: timestamp len:
  387. -1 default: []'
  388. type: string
  389. id:
  390. description: '[ 0] id ubigint null:
  391. false primary: true isArray: false auto: true col: ubigint len:
  392. -1 default: []'
  393. type: integer
  394. key:
  395. description: '[ 2] key varchar(256) null:
  396. false primary: false isArray: false auto: false col: varchar len:
  397. 256 default: []'
  398. type: string
  399. token_id:
  400. description: '[ 1] token_id ubigint null:
  401. false primary: false isArray: false auto: false col: ubigint len:
  402. -1 default: []'
  403. type: integer
  404. updated_at:
  405. description: '[ 5] updated_at timestamp null:
  406. false primary: false isArray: false auto: false col: timestamp len:
  407. -1 default: [CURRENT_TIMESTAMP]'
  408. type: string
  409. value:
  410. description: '[ 3] value varchar(256) null:
  411. false primary: false isArray: false auto: false col: varchar len:
  412. 256 default: []'
  413. type: string
  414. type: object
  415. sale.BidData:
  416. properties:
  417. bid_price:
  418. type: number
  419. currency:
  420. type: string
  421. sale_id:
  422. type: integer
  423. type: object
  424. sale.RegisterResaleData:
  425. properties:
  426. currency:
  427. type: string
  428. end_at:
  429. type: string
  430. price:
  431. type: number
  432. sale_type:
  433. type: string
  434. start_at:
  435. type: string
  436. start_price:
  437. type: number
  438. token_id:
  439. type: integer
  440. required:
  441. - currency
  442. - sale_type
  443. - token_id
  444. type: object
  445. sale.TargetID:
  446. properties:
  447. id:
  448. type: integer
  449. type: object
  450. token.CollectionData:
  451. properties:
  452. collection_id:
  453. type: integer
  454. is_official:
  455. type: boolean
  456. name:
  457. type: string
  458. thumbnail_image:
  459. type: string
  460. type: object
  461. token.Like:
  462. properties:
  463. is_like:
  464. type: boolean
  465. token_id:
  466. type: integer
  467. required:
  468. - token_id
  469. type: object
  470. token.TokenBaseInfo:
  471. properties:
  472. collection:
  473. items:
  474. $ref: '#/definitions/token.CollectionData'
  475. type: array
  476. commission:
  477. type: number
  478. type: object
  479. user.AuthenticationSNS:
  480. properties:
  481. code:
  482. type: string
  483. type:
  484. type: string
  485. required:
  486. - code
  487. - type
  488. type: object
  489. user.CertificationBody:
  490. properties:
  491. amount:
  492. type: number
  493. currency:
  494. type: string
  495. required:
  496. - amount
  497. - currency
  498. type: object
  499. user.Transfer:
  500. properties:
  501. amount:
  502. type: number
  503. code:
  504. type: string
  505. currency:
  506. type: string
  507. to_address:
  508. type: string
  509. required:
  510. - amount
  511. - code
  512. - currency
  513. - to_address
  514. type: object
  515. view.AdministratorList:
  516. properties:
  517. admin:
  518. type: integer
  519. chargeof:
  520. type: string
  521. collection:
  522. type: integer
  523. created_at:
  524. type: string
  525. email:
  526. type: string
  527. id:
  528. type: integer
  529. log:
  530. type: integer
  531. name:
  532. type: string
  533. phone:
  534. type: string
  535. position:
  536. type: string
  537. status:
  538. type: string
  539. system:
  540. type: integer
  541. team:
  542. type: string
  543. update_at:
  544. type: string
  545. user:
  546. type: integer
  547. type: object
  548. view.CollectionInfo:
  549. properties:
  550. contract_address:
  551. type: string
  552. cover_image:
  553. type: string
  554. curating_number:
  555. type: integer
  556. description:
  557. type: string
  558. highest_sale_price:
  559. type: number
  560. id:
  561. type: integer
  562. is_official:
  563. type: boolean
  564. is_owner:
  565. type: boolean
  566. items:
  567. type: integer
  568. market_cap:
  569. type: number
  570. name:
  571. type: string
  572. recent_trading_day:
  573. type: string
  574. status:
  575. type: string
  576. symbol:
  577. type: string
  578. thumbnail_image:
  579. type: string
  580. total_like_count:
  581. type: integer
  582. total_volume:
  583. type: number
  584. user_name:
  585. type: string
  586. type: object
  587. view.MemberList:
  588. properties:
  589. address:
  590. type: string
  591. check_sum:
  592. type: string
  593. created_at:
  594. type: string
  595. email:
  596. type: string
  597. enc_version:
  598. type: integer
  599. id:
  600. type: integer
  601. name:
  602. type: string
  603. phone:
  604. type: string
  605. status:
  606. type: string
  607. team:
  608. type: string
  609. type: object
  610. view.ResaleBaseData:
  611. properties:
  612. collection_id:
  613. type: integer
  614. collection_is_official:
  615. type: boolean
  616. collection_name:
  617. type: string
  618. collection_thumbnail_image:
  619. type: string
  620. commission:
  621. type: number
  622. content_url:
  623. type: string
  624. description:
  625. type: string
  626. name:
  627. type: string
  628. network:
  629. type: string
  630. royalties:
  631. type: integer
  632. token_id:
  633. type: integer
  634. total_count:
  635. type: integer
  636. type:
  637. type: string
  638. type: object
  639. view.Settings:
  640. properties:
  641. network_commission:
  642. type: number
  643. service_commission:
  644. type: number
  645. type: object
  646. view.SimpleProfile:
  647. properties:
  648. settings:
  649. $ref: '#/definitions/view.Settings'
  650. simple_profile:
  651. $ref: '#/definitions/view.UserBaseData'
  652. type: object
  653. view.TokenBaseData:
  654. properties:
  655. artist_is_official:
  656. type: boolean
  657. artist_name:
  658. type: string
  659. artist_profile_image:
  660. type: string
  661. collection_is_official:
  662. type: boolean
  663. collection_name:
  664. type: string
  665. collection_thumbnail_image:
  666. type: string
  667. content_url:
  668. type: string
  669. description:
  670. type: string
  671. id:
  672. type: integer
  673. index:
  674. type: integer
  675. is_like:
  676. type: boolean
  677. is_owner:
  678. type: boolean
  679. like_count:
  680. type: integer
  681. name:
  682. type: string
  683. network:
  684. type: string
  685. owner_is_official:
  686. type: boolean
  687. royalties:
  688. type: integer
  689. total_count:
  690. type: integer
  691. type:
  692. type: string
  693. uid:
  694. type: string
  695. user_name:
  696. type: string
  697. user_profile_image:
  698. type: string
  699. type: object
  700. view.TokenDetailData:
  701. properties:
  702. token:
  703. $ref: '#/definitions/view.TokenBaseData'
  704. traits:
  705. items:
  706. $ref: '#/definitions/models.Traits'
  707. type: array
  708. type: object
  709. view.TokenOwnerList:
  710. properties:
  711. index:
  712. type: integer
  713. is_official:
  714. type: boolean
  715. name:
  716. type: string
  717. thumbnail_image:
  718. type: string
  719. token_id:
  720. type: integer
  721. total_count:
  722. type: integer
  723. updated_at:
  724. type: string
  725. type: object
  726. view.TokenResaleData:
  727. properties:
  728. token:
  729. $ref: '#/definitions/view.ResaleBaseData'
  730. traits:
  731. items:
  732. $ref: '#/definitions/models.Traits'
  733. type: array
  734. type: object
  735. view.TokenSet:
  736. properties:
  737. collections:
  738. items:
  739. $ref: '#/definitions/view.CollectionInfo'
  740. type: array
  741. curating_list:
  742. items:
  743. $ref: '#/definitions/common.ExpItem'
  744. type: array
  745. explore:
  746. items:
  747. $ref: '#/definitions/common.ExpItem'
  748. type: array
  749. hot_bids:
  750. items:
  751. $ref: '#/definitions/common.ExpItem'
  752. type: array
  753. special_bids:
  754. items:
  755. $ref: '#/definitions/common.ExpItem'
  756. type: array
  757. time_auctions:
  758. items:
  759. $ref: '#/definitions/common.ExpItem'
  760. type: array
  761. type: object
  762. view.UserBaseData:
  763. properties:
  764. address:
  765. type: string
  766. available_eth_balance:
  767. type: number
  768. available_mf_balance:
  769. type: number
  770. available_mr_balance:
  771. type: number
  772. cover_image:
  773. type: string
  774. description:
  775. type: string
  776. email:
  777. type: string
  778. eth_balance:
  779. type: number
  780. is_artist:
  781. type: boolean
  782. mf_balance:
  783. type: number
  784. mr_balance:
  785. type: number
  786. name:
  787. type: string
  788. thumbnail_image:
  789. type: string
  790. twitter:
  791. type: string
  792. user_id:
  793. type: integer
  794. type: object
  795. info:
  796. contact: {}
  797. paths:
  798. /admin/administrator:
  799. get:
  800. consumes:
  801. - application/json
  802. description: 관리자 리스트 가져오기
  803. produces:
  804. - application/json
  805. responses:
  806. "200":
  807. description: OK
  808. schema:
  809. $ref: '#/definitions/view.AdministratorList'
  810. security:
  811. - ApiKeyAuth: []
  812. summary: get administrator list
  813. tags:
  814. - admin
  815. post:
  816. consumes:
  817. - application/json
  818. description: 관리자 등록
  819. parameters:
  820. - description: body struct
  821. in: body
  822. name: RegisterAdministratorData
  823. required: true
  824. schema:
  825. $ref: '#/definitions/admin.RegisterAdministratorData'
  826. produces:
  827. - application/json
  828. responses:
  829. "200":
  830. description: OK
  831. schema:
  832. type: number
  833. security:
  834. - ApiKeyAuth: []
  835. summary: create administrator
  836. tags:
  837. - admin
  838. /admin/administrator/permission:
  839. patch:
  840. consumes:
  841. - application/json
  842. description: 관리자 권한 변경
  843. parameters:
  844. - description: selected target data
  845. in: body
  846. name: UpdatePermission
  847. required: true
  848. schema:
  849. $ref: '#/definitions/admin.UpdatePermission'
  850. produces:
  851. - application/json
  852. responses:
  853. "200":
  854. description: OK
  855. schema:
  856. type: string
  857. security:
  858. - ApiKeyAuth: []
  859. summary: update administrator permmsion
  860. tags:
  861. - admin
  862. /admin/administrator/status:
  863. patch:
  864. consumes:
  865. - application/json
  866. description: 관리자 상태값 변경
  867. parameters:
  868. - description: selected target data
  869. in: body
  870. name: UpdateStatus
  871. required: true
  872. schema:
  873. $ref: '#/definitions/admin.UpdateStatus'
  874. produces:
  875. - application/json
  876. responses:
  877. "200":
  878. description: OK
  879. schema:
  880. type: string
  881. security:
  882. - ApiKeyAuth: []
  883. summary: update administrator status
  884. tags:
  885. - admin
  886. /admin/artist:
  887. get:
  888. consumes:
  889. - application/json
  890. description: 작가 리스트 가져오기
  891. produces:
  892. - application/json
  893. responses:
  894. "200":
  895. description: OK
  896. schema:
  897. $ref: '#/definitions/view.MemberList'
  898. security:
  899. - ApiKeyAuth: []
  900. summary: get artist list
  901. tags:
  902. - admin
  903. post:
  904. consumes:
  905. - application/json
  906. description: 작가 등록
  907. parameters:
  908. - description: body struct
  909. in: body
  910. name: RegisterArtistData
  911. required: true
  912. schema:
  913. $ref: '#/definitions/admin.RegisterArtistData'
  914. produces:
  915. - application/json
  916. responses:
  917. "200":
  918. description: OK
  919. schema:
  920. type: number
  921. security:
  922. - ApiKeyAuth: []
  923. summary: create artist
  924. tags:
  925. - admin
  926. /admin/artist/status:
  927. patch:
  928. consumes:
  929. - application/json
  930. description: 작가 상태값 변경
  931. parameters:
  932. - description: selected target data
  933. in: body
  934. name: UpdateStatus
  935. required: true
  936. schema:
  937. $ref: '#/definitions/admin.UpdateStatus'
  938. produces:
  939. - application/json
  940. responses:
  941. "200":
  942. description: OK
  943. schema:
  944. type: string
  945. security:
  946. - ApiKeyAuth: []
  947. summary: update artist status
  948. tags:
  949. - admin
  950. /admin/auth/signin:
  951. post:
  952. consumes:
  953. - application/json
  954. description: 어드민 로그인
  955. parameters:
  956. - description: body struct
  957. in: body
  958. name: AccountInfo
  959. required: true
  960. schema:
  961. $ref: '#/definitions/admin.AccountInfo'
  962. produces:
  963. - application/json
  964. responses:
  965. "200":
  966. description: OK
  967. schema:
  968. $ref: '#/definitions/admin.AdminAuthContainer'
  969. summary: signin
  970. tags:
  971. - admin
  972. /admin/collection:
  973. get:
  974. consumes:
  975. - application/json
  976. description: 데이터가 쌓인 이후에 진행 예정, 컬렉션 리스트 가져오기
  977. produces:
  978. - application/json
  979. responses:
  980. "200":
  981. description: OK
  982. schema:
  983. items:
  984. $ref: '#/definitions/view.CollectionInfo'
  985. type: array
  986. security:
  987. - ApiKeyAuth: []
  988. summary: get collection list
  989. tags:
  990. - admin
  991. /admin/collection/curation:
  992. patch:
  993. consumes:
  994. - application/json
  995. description: 컬렉션 큐레이션 변경
  996. parameters:
  997. - description: selected target data
  998. in: body
  999. name: UpdateCuration
  1000. required: true
  1001. schema:
  1002. $ref: '#/definitions/admin.UpdateCuration'
  1003. produces:
  1004. - application/json
  1005. responses:
  1006. "200":
  1007. description: OK
  1008. schema:
  1009. type: string
  1010. security:
  1011. - ApiKeyAuth: []
  1012. summary: update collection curation
  1013. tags:
  1014. - admin
  1015. /admin/collection/status:
  1016. patch:
  1017. consumes:
  1018. - application/json
  1019. description: 컬렉션 상태값 변경 (보이기, 숨김)
  1020. parameters:
  1021. - description: selected target data
  1022. in: body
  1023. name: UpdateStatus
  1024. required: true
  1025. schema:
  1026. $ref: '#/definitions/admin.UpdateStatus'
  1027. produces:
  1028. - application/json
  1029. responses:
  1030. "200":
  1031. description: OK
  1032. schema:
  1033. type: string
  1034. security:
  1035. - ApiKeyAuth: []
  1036. summary: update collection status
  1037. tags:
  1038. - admin
  1039. /admin/log:
  1040. get:
  1041. consumes:
  1042. - application/json
  1043. description: 어드민 로그 가져오기
  1044. produces:
  1045. - application/json
  1046. responses:
  1047. "200":
  1048. description: OK
  1049. schema:
  1050. $ref: '#/definitions/models.AdminLog'
  1051. security:
  1052. - ApiKeyAuth: []
  1053. summary: get log list
  1054. tags:
  1055. - admin
  1056. /admin/setting:
  1057. get:
  1058. consumes:
  1059. - application/json
  1060. description: 현재 셋팅 값 가져오기
  1061. produces:
  1062. - application/json
  1063. responses:
  1064. "200":
  1065. description: OK
  1066. schema:
  1067. $ref: '#/definitions/models.Setting'
  1068. security:
  1069. - ApiKeyAuth: []
  1070. summary: get setting list
  1071. tags:
  1072. - admin
  1073. /admin/setting/{type}:
  1074. patch:
  1075. consumes:
  1076. - application/json
  1077. description: 설정 값 변경
  1078. parameters:
  1079. - description: selected target data
  1080. in: body
  1081. name: SettingData
  1082. required: true
  1083. schema:
  1084. $ref: '#/definitions/admin.SettingData'
  1085. - description: 'type: commission, special_collection, gas_deposit'
  1086. in: path
  1087. name: type
  1088. required: true
  1089. type: string
  1090. produces:
  1091. - application/json
  1092. responses:
  1093. "200":
  1094. description: OK
  1095. schema:
  1096. type: string
  1097. security:
  1098. - ApiKeyAuth: []
  1099. summary: update setting value
  1100. tags:
  1101. - admin
  1102. /admin/user:
  1103. get:
  1104. consumes:
  1105. - application/json
  1106. description: 유저 리스트 가져오기
  1107. produces:
  1108. - application/json
  1109. responses:
  1110. "200":
  1111. description: OK
  1112. schema:
  1113. $ref: '#/definitions/view.MemberList'
  1114. security:
  1115. - ApiKeyAuth: []
  1116. summary: get user list
  1117. tags:
  1118. - admin
  1119. /admin/user/status:
  1120. patch:
  1121. consumes:
  1122. - application/json
  1123. description: 유저 상태값 변경
  1124. parameters:
  1125. - description: selected target data
  1126. in: body
  1127. name: UpdateStatus
  1128. required: true
  1129. schema:
  1130. $ref: '#/definitions/admin.UpdateStatus'
  1131. produces:
  1132. - application/json
  1133. responses:
  1134. "200":
  1135. description: OK
  1136. schema:
  1137. type: string
  1138. security:
  1139. - ApiKeyAuth: []
  1140. summary: update user status
  1141. tags:
  1142. - admin
  1143. /collection:
  1144. patch:
  1145. consumes:
  1146. - multipart/form-data
  1147. description: '컬렉션 수정, json struct = {description: string, collection_id: uin64}'
  1148. parameters:
  1149. - description: thumbnail image
  1150. in: formData
  1151. name: thumbnailImage
  1152. required: true
  1153. type: file
  1154. - description: cover image
  1155. in: formData
  1156. name: coverImage
  1157. required: true
  1158. type: file
  1159. - in: formData
  1160. name: json
  1161. type: string
  1162. produces:
  1163. - application/json
  1164. responses:
  1165. "200":
  1166. description: OK
  1167. schema:
  1168. type: string
  1169. security:
  1170. - ApiKeyAuth: []
  1171. summary: update collection
  1172. tags:
  1173. - collection
  1174. post:
  1175. consumes:
  1176. - multipart/form-data
  1177. description: '컬렉션 등록, json struct = {name: string, symbol: string, description:
  1178. string, type: string}'
  1179. parameters:
  1180. - description: thumbnail image
  1181. in: formData
  1182. name: thumbnailImage
  1183. required: true
  1184. type: file
  1185. - description: cover image
  1186. in: formData
  1187. name: coverImage
  1188. required: true
  1189. type: file
  1190. - in: formData
  1191. name: json
  1192. type: string
  1193. produces:
  1194. - application/json
  1195. responses:
  1196. "200":
  1197. description: OK
  1198. schema:
  1199. type: string
  1200. security:
  1201. - ApiKeyAuth: []
  1202. summary: create collection
  1203. tags:
  1204. - collection
  1205. /collection/{collection_name}:
  1206. get:
  1207. consumes:
  1208. - application/json
  1209. description: 컬렉션 페이지에 있는 기본 정보 (탭 데이터는 따로 가져와야 한다.)
  1210. parameters:
  1211. - description: collection name
  1212. in: path
  1213. name: collection_name
  1214. required: true
  1215. type: string
  1216. produces:
  1217. - application/json
  1218. responses:
  1219. "200":
  1220. description: OK
  1221. schema:
  1222. $ref: '#/definitions/view.CollectionInfo'
  1223. summary: get collection info
  1224. tags:
  1225. - collection
  1226. /collection/activity/{collection_name}:
  1227. post:
  1228. consumes:
  1229. - application/json
  1230. description: 컬렉션 페이지 활동 탭
  1231. parameters:
  1232. - description: collection name
  1233. in: path
  1234. name: collection_name
  1235. required: true
  1236. type: string
  1237. produces:
  1238. - application/json
  1239. responses:
  1240. "200":
  1241. description: OK
  1242. schema:
  1243. items:
  1244. $ref: '#/definitions/common.ExpItem'
  1245. type: array
  1246. summary: get activities in collection
  1247. tags:
  1248. - collection
  1249. /collection/duplicate/{name}:
  1250. get:
  1251. consumes:
  1252. - application/json
  1253. description: 컬렉션 이름 중복체크
  1254. parameters:
  1255. - description: check duplicate name
  1256. in: path
  1257. name: name
  1258. required: true
  1259. type: string
  1260. produces:
  1261. - application/json
  1262. responses:
  1263. "200":
  1264. description: OK
  1265. schema:
  1266. type: string
  1267. summary: collection profile name duplicate check.
  1268. tags:
  1269. - collection
  1270. /collection/item/{collection_name}:
  1271. post:
  1272. consumes:
  1273. - application/json
  1274. description: 컬렉션 페이지 아이템 탭
  1275. parameters:
  1276. - description: collection name
  1277. in: path
  1278. name: collection_name
  1279. required: true
  1280. type: string
  1281. - description: filter data
  1282. in: body
  1283. name: common.Filter
  1284. required: true
  1285. schema:
  1286. $ref: '#/definitions/common.Filter'
  1287. produces:
  1288. - application/json
  1289. responses:
  1290. "200":
  1291. description: OK
  1292. schema:
  1293. items:
  1294. $ref: '#/definitions/common.ExpItem'
  1295. type: array
  1296. summary: get items in collection
  1297. tags:
  1298. - collection
  1299. /explore/home:
  1300. post:
  1301. consumes:
  1302. - application/json
  1303. description: 탐색하기 home data
  1304. parameters:
  1305. - description: filter object
  1306. in: body
  1307. name: common.Filter
  1308. required: true
  1309. schema:
  1310. $ref: '#/definitions/common.Filter'
  1311. produces:
  1312. - application/json
  1313. responses:
  1314. "200":
  1315. description: OK
  1316. schema:
  1317. items:
  1318. $ref: '#/definitions/common.ExpItem'
  1319. type: array
  1320. summary: explore filter data
  1321. tags:
  1322. - explore
  1323. /explore/search:
  1324. post:
  1325. consumes:
  1326. - application/json
  1327. description: 필터링중 컬렉션 이름으로 키워드 검색 할 때 사용하며, filter.collectionName이 빈 값인 경우 tvl
  1328. 기준 limit 10개 리턴
  1329. parameters:
  1330. - description: filter object
  1331. in: body
  1332. name: common.Filter
  1333. required: true
  1334. schema:
  1335. $ref: '#/definitions/common.Filter'
  1336. produces:
  1337. - application/json
  1338. responses:
  1339. "200":
  1340. description: OK
  1341. schema:
  1342. type: obejct
  1343. summary: explore collection filter list
  1344. tags:
  1345. - explore
  1346. /health:
  1347. get:
  1348. consumes:
  1349. - application/json
  1350. description: API to check the status of the server
  1351. produces:
  1352. - application/json
  1353. responses:
  1354. "200":
  1355. description: OK
  1356. schema:
  1357. type: string
  1358. summary: API to check the status of the server
  1359. tags:
  1360. - health check
  1361. /home:
  1362. get:
  1363. consumes:
  1364. - application/json
  1365. description: index 페이지 데이터
  1366. produces:
  1367. - application/json
  1368. responses:
  1369. "200":
  1370. description: OK
  1371. schema:
  1372. $ref: '#/definitions/view.TokenSet'
  1373. summary: get index data
  1374. tags:
  1375. - home
  1376. /sale/{sale_id}:
  1377. get:
  1378. consumes:
  1379. - application/json
  1380. description: NFT 판매 상세페이지 데이터 가져오기
  1381. parameters:
  1382. - description: sale id
  1383. in: path
  1384. name: sale_id
  1385. required: true
  1386. type: string
  1387. produces:
  1388. - application/json
  1389. responses:
  1390. "200":
  1391. description: OK
  1392. schema:
  1393. type: obejct
  1394. summary: get detail sale data
  1395. tags:
  1396. - sale
  1397. /sale/auction:
  1398. post:
  1399. consumes:
  1400. - application/json
  1401. description: 최고가 판매
  1402. parameters:
  1403. - description: body struct
  1404. in: body
  1405. name: BidData
  1406. required: true
  1407. schema:
  1408. $ref: '#/definitions/sale.BidData'
  1409. produces:
  1410. - application/json
  1411. responses:
  1412. "200":
  1413. description: OK
  1414. schema:
  1415. type: string
  1416. security:
  1417. - ApiKeyAuth: []
  1418. summary: highest price sell
  1419. tags:
  1420. - sale
  1421. /sale/bid:
  1422. patch:
  1423. consumes:
  1424. - application/json
  1425. description: 입찰 취소하기, 입찰을 다시하려면 취소 후 다시 해야한다.
  1426. parameters:
  1427. - description: body struct
  1428. in: body
  1429. name: TargetID
  1430. required: true
  1431. schema:
  1432. $ref: '#/definitions/sale.TargetID'
  1433. produces:
  1434. - application/json
  1435. responses:
  1436. "200":
  1437. description: OK
  1438. schema:
  1439. type: string
  1440. security:
  1441. - ApiKeyAuth: []
  1442. summary: cancel bid
  1443. tags:
  1444. - sale
  1445. post:
  1446. consumes:
  1447. - application/json
  1448. description: 입찰하기
  1449. parameters:
  1450. - description: body struct
  1451. in: body
  1452. name: BidData
  1453. required: true
  1454. schema:
  1455. $ref: '#/definitions/sale.BidData'
  1456. produces:
  1457. - application/json
  1458. responses:
  1459. "200":
  1460. description: OK
  1461. schema:
  1462. type: string
  1463. security:
  1464. - ApiKeyAuth: []
  1465. summary: create bid
  1466. tags:
  1467. - sale
  1468. /sale/bid/{sale_id}:
  1469. get:
  1470. consumes:
  1471. - application/json
  1472. description: NFT 판매 상세페이지 경매 기록 탭
  1473. parameters:
  1474. - description: sale id
  1475. in: path
  1476. name: sale_id
  1477. required: true
  1478. type: string
  1479. produces:
  1480. - application/json
  1481. responses:
  1482. "200":
  1483. description: OK
  1484. schema:
  1485. type: obejct
  1486. security:
  1487. - ApiKeyAuth: []
  1488. summary: get bid history
  1489. tags:
  1490. - sale
  1491. /sale/buy:
  1492. post:
  1493. consumes:
  1494. - application/json
  1495. description: 아이템 즉시 구매
  1496. parameters:
  1497. - description: body struct
  1498. in: body
  1499. name: BidData
  1500. required: true
  1501. schema:
  1502. $ref: '#/definitions/sale.BidData'
  1503. produces:
  1504. - application/json
  1505. responses:
  1506. "200":
  1507. description: OK
  1508. schema:
  1509. type: string
  1510. security:
  1511. - ApiKeyAuth: []
  1512. summary: buy now item
  1513. tags:
  1514. - sale
  1515. /sale/resale:
  1516. post:
  1517. consumes:
  1518. - application/json
  1519. description: NFT 구입 후 재등록 API
  1520. parameters:
  1521. - description: body struct
  1522. in: body
  1523. name: RegisterResaleData
  1524. required: true
  1525. schema:
  1526. $ref: '#/definitions/sale.RegisterResaleData'
  1527. produces:
  1528. - application/json
  1529. responses:
  1530. "200":
  1531. description: OK
  1532. schema:
  1533. type: string
  1534. security:
  1535. - ApiKeyAuth: []
  1536. summary: create resale
  1537. tags:
  1538. - sale
  1539. /sale/status:
  1540. patch:
  1541. consumes:
  1542. - application/json
  1543. description: 등록한 오너인 경우에만 실행가능, 판매하지 않고 판매를 강제 종료시킨다.
  1544. parameters:
  1545. - description: selected target id
  1546. in: body
  1547. name: TargetID
  1548. required: true
  1549. schema:
  1550. $ref: '#/definitions/sale.TargetID'
  1551. produces:
  1552. - application/json
  1553. responses:
  1554. "200":
  1555. description: OK
  1556. schema:
  1557. type: string
  1558. security:
  1559. - ApiKeyAuth: []
  1560. summary: update sale statue for cancel
  1561. tags:
  1562. - sale
  1563. /token:
  1564. post:
  1565. consumes:
  1566. - multipart/form-data
  1567. description: NFT 생성과 동시에 판매 등록
  1568. parameters:
  1569. - description: content image
  1570. in: formData
  1571. name: contentImage
  1572. required: true
  1573. type: file
  1574. - in: formData
  1575. name: json
  1576. type: string
  1577. produces:
  1578. - application/json
  1579. responses:
  1580. "200":
  1581. description: OK
  1582. schema:
  1583. type: string
  1584. security:
  1585. - ApiKeyAuth: []
  1586. summary: create NFT
  1587. tags:
  1588. - token
  1589. /token/{token_id}:
  1590. get:
  1591. consumes:
  1592. - application/json
  1593. description: 토큰 상세페이지
  1594. parameters:
  1595. - description: token id
  1596. in: path
  1597. name: token_id
  1598. required: true
  1599. type: string
  1600. produces:
  1601. - application/json
  1602. responses:
  1603. "200":
  1604. description: OK
  1605. schema:
  1606. $ref: '#/definitions/view.TokenDetailData'
  1607. summary: get token detail
  1608. tags:
  1609. - token
  1610. /token/baseinfo:
  1611. get:
  1612. consumes:
  1613. - application/json
  1614. description: 아이템 생성 시 내가 만든 컬렉션 리스트와, 사이트 커미션 수수료 정보 가져오기
  1615. parameters:
  1616. - description: erc721, erc1155
  1617. in: query
  1618. name: type
  1619. required: true
  1620. type: string
  1621. produces:
  1622. - application/json
  1623. responses:
  1624. "200":
  1625. description: OK
  1626. schema:
  1627. $ref: '#/definitions/token.TokenBaseInfo'
  1628. security:
  1629. - ApiKeyAuth: []
  1630. summary: get token base info
  1631. tags:
  1632. - token
  1633. /token/like:
  1634. patch:
  1635. consumes:
  1636. - application/json
  1637. description: 토큰 좋아요 기능
  1638. parameters:
  1639. - description: selected target id
  1640. in: body
  1641. name: Like
  1642. required: true
  1643. schema:
  1644. $ref: '#/definitions/token.Like'
  1645. produces:
  1646. - application/json
  1647. responses:
  1648. "200":
  1649. description: OK
  1650. schema:
  1651. type: string
  1652. security:
  1653. - ApiKeyAuth: []
  1654. summary: update token like count
  1655. tags:
  1656. - token
  1657. /token/log/{token_id}:
  1658. get:
  1659. consumes:
  1660. - application/json
  1661. description: NFT 판매 페이지 기록 탭
  1662. parameters:
  1663. - description: token id
  1664. in: path
  1665. name: token_id
  1666. required: true
  1667. type: string
  1668. produces:
  1669. - application/json
  1670. responses:
  1671. "200":
  1672. description: OK
  1673. schema:
  1674. $ref: '#/definitions/common.ActivityItem'
  1675. summary: get token log
  1676. tags:
  1677. - token
  1678. /token/owner:
  1679. get:
  1680. consumes:
  1681. - application/json
  1682. description: NFT 1155타입의 소유자 탭
  1683. parameters:
  1684. - description: type
  1685. in: query
  1686. name: token_uid
  1687. required: true
  1688. type: string
  1689. produces:
  1690. - application/json
  1691. responses:
  1692. "200":
  1693. description: OK
  1694. schema:
  1695. $ref: '#/definitions/view.TokenOwnerList'
  1696. summary: get owner list
  1697. tags:
  1698. - token
  1699. /token/resaleinfo/{token_id}:
  1700. get:
  1701. consumes:
  1702. - application/json
  1703. description: 토큰 재판매 시 설정해야하는 기본 데이터
  1704. parameters:
  1705. - description: token id
  1706. in: path
  1707. name: token_id
  1708. required: true
  1709. type: string
  1710. produces:
  1711. - application/json
  1712. responses:
  1713. "200":
  1714. description: OK
  1715. schema:
  1716. $ref: '#/definitions/view.TokenResaleData'
  1717. security:
  1718. - ApiKeyAuth: []
  1719. summary: get resale data
  1720. tags:
  1721. - token
  1722. /user/activity/{name}:
  1723. get:
  1724. consumes:
  1725. - application/json
  1726. description: 유저 프로필 활동 탭
  1727. parameters:
  1728. - description: user profile name
  1729. in: path
  1730. name: name
  1731. required: true
  1732. type: string
  1733. produces:
  1734. - application/json
  1735. responses:
  1736. "200":
  1737. description: OK
  1738. schema:
  1739. items:
  1740. $ref: '#/definitions/common.ActivityItem'
  1741. type: array
  1742. summary: user activity list
  1743. tags:
  1744. - user
  1745. /user/authenticate:
  1746. post:
  1747. consumes:
  1748. - application/json
  1749. description: redirect url 호출이후 받은 코드로 기존유저라면 로그인, 새로운 유저라면 가입 후 로그인
  1750. parameters:
  1751. - description: oauth data
  1752. in: body
  1753. name: AuthenticationSNS
  1754. required: true
  1755. schema:
  1756. $ref: '#/definitions/user.AuthenticationSNS'
  1757. produces:
  1758. - application/json
  1759. responses:
  1760. "200":
  1761. description: OK
  1762. schema:
  1763. type: string
  1764. summary: sign-in
  1765. tags:
  1766. - user
  1767. /user/authenticate/temp:
  1768. get:
  1769. consumes:
  1770. - application/json
  1771. description: SNS로그인 테스트 이전에 동일한 로직으로 유저 회원가입, 세션 획득을 위한 임시 함수, 입력된 이메일이 없으면
  1772. 회원가입 이후 로그인, 있으면 로그인
  1773. parameters:
  1774. - description: email
  1775. in: query
  1776. name: email
  1777. required: true
  1778. type: string
  1779. produces:
  1780. - application/json
  1781. responses:
  1782. "200":
  1783. description: OK
  1784. schema:
  1785. type: string
  1786. summary: temp user authentication
  1787. tags:
  1788. - user
  1789. /user/bid:
  1790. post:
  1791. consumes:
  1792. - application/json
  1793. description: 유저 경매 히스토리
  1794. produces:
  1795. - application/json
  1796. responses:
  1797. "200":
  1798. description: OK
  1799. schema:
  1800. items:
  1801. $ref: '#/definitions/common.ExpItem'
  1802. type: array
  1803. security:
  1804. - ApiKeyAuth: []
  1805. summary: user bid list
  1806. tags:
  1807. - user
  1808. /user/certification/code:
  1809. post:
  1810. consumes:
  1811. - application/json
  1812. description: 출금하기 2차 인증
  1813. parameters:
  1814. - description: 'currency: mf, mr, eth'
  1815. in: body
  1816. name: CertificationBody
  1817. required: true
  1818. schema:
  1819. $ref: '#/definitions/user.CertificationBody'
  1820. produces:
  1821. - application/json
  1822. responses:
  1823. "200":
  1824. description: OK
  1825. schema:
  1826. type: string
  1827. summary: send certification code
  1828. tags:
  1829. - user
  1830. /user/collection/{name}:
  1831. post:
  1832. consumes:
  1833. - application/json
  1834. description: 유저 프로필 컬렉션 탭
  1835. parameters:
  1836. - description: filter object
  1837. in: body
  1838. name: common.Filter
  1839. required: true
  1840. schema:
  1841. $ref: '#/definitions/common.Filter'
  1842. - description: user profile name
  1843. in: path
  1844. name: name
  1845. required: true
  1846. type: string
  1847. produces:
  1848. - application/json
  1849. responses:
  1850. "200":
  1851. description: OK
  1852. schema:
  1853. items:
  1854. $ref: '#/definitions/common.CollectionItem'
  1855. type: array
  1856. security:
  1857. - ApiKeyAuth: []
  1858. summary: collection list
  1859. tags:
  1860. - user
  1861. /user/duplicate/{name}:
  1862. get:
  1863. consumes:
  1864. - application/json
  1865. description: 유저 이름 중복체크
  1866. parameters:
  1867. - description: check duplicate name
  1868. in: path
  1869. name: name
  1870. required: true
  1871. type: string
  1872. produces:
  1873. - application/json
  1874. responses:
  1875. "200":
  1876. description: OK
  1877. schema:
  1878. type: string
  1879. summary: User profile name duplicate check.
  1880. tags:
  1881. - user
  1882. /user/like/{name}:
  1883. post:
  1884. consumes:
  1885. - application/json
  1886. description: 유저 프로필 좋아요 탭
  1887. parameters:
  1888. - description: filter object
  1889. in: body
  1890. name: common.Filter
  1891. required: true
  1892. schema:
  1893. $ref: '#/definitions/common.Filter'
  1894. - description: user profile name
  1895. in: path
  1896. name: name
  1897. required: true
  1898. type: string
  1899. produces:
  1900. - application/json
  1901. responses:
  1902. "200":
  1903. description: OK
  1904. schema:
  1905. items:
  1906. $ref: '#/definitions/common.ExpItem'
  1907. type: array
  1908. summary: user like list
  1909. tags:
  1910. - user
  1911. /user/onsale/{name}:
  1912. post:
  1913. consumes:
  1914. - application/json
  1915. description: 판매중인 NFT 리스트
  1916. parameters:
  1917. - description: filter object
  1918. in: body
  1919. name: common.Filter
  1920. required: true
  1921. schema:
  1922. $ref: '#/definitions/common.Filter'
  1923. - description: user profile name
  1924. in: path
  1925. name: name
  1926. required: true
  1927. type: string
  1928. produces:
  1929. - application/json
  1930. responses:
  1931. "200":
  1932. description: OK
  1933. schema:
  1934. items:
  1935. $ref: '#/definitions/common.ExpItem'
  1936. type: array
  1937. security:
  1938. - ApiKeyAuth: []
  1939. summary: onesale list
  1940. tags:
  1941. - user
  1942. /user/owned:
  1943. post:
  1944. consumes:
  1945. - application/json
  1946. description: 보유중인 NFT 리스트
  1947. parameters:
  1948. - description: filter object
  1949. in: body
  1950. name: common.Filter
  1951. required: true
  1952. schema:
  1953. $ref: '#/definitions/common.Filter'
  1954. produces:
  1955. - application/json
  1956. responses:
  1957. "200":
  1958. description: OK
  1959. schema:
  1960. items:
  1961. $ref: '#/definitions/common.ExpItem'
  1962. type: array
  1963. security:
  1964. - ApiKeyAuth: []
  1965. summary: owned list
  1966. tags:
  1967. - user
  1968. /user/profile:
  1969. get:
  1970. consumes:
  1971. - application/json
  1972. description: 헤더, 프로필 편집에 사용할 데이터
  1973. produces:
  1974. - application/json
  1975. responses:
  1976. "200":
  1977. description: OK
  1978. schema:
  1979. $ref: '#/definitions/view.SimpleProfile'
  1980. security:
  1981. - ApiKeyAuth: []
  1982. summary: user simple profile data
  1983. tags:
  1984. - user
  1985. patch:
  1986. consumes:
  1987. - multipart/form-data
  1988. description: 유저 정보 업데이트
  1989. parameters:
  1990. - description: thumbnail image
  1991. in: formData
  1992. name: thumbnailImage
  1993. required: true
  1994. type: file
  1995. - description: cover image
  1996. in: formData
  1997. name: coverImage
  1998. required: true
  1999. type: file
  2000. - in: formData
  2001. name: json
  2002. type: string
  2003. produces:
  2004. - application/json
  2005. responses:
  2006. "200":
  2007. description: OK
  2008. schema:
  2009. type: string
  2010. security:
  2011. - ApiKeyAuth: []
  2012. summary: update user profile
  2013. tags:
  2014. - user
  2015. /user/profile/{name}:
  2016. get:
  2017. consumes:
  2018. - application/json
  2019. description: 유저 기본 정보 가져오기
  2020. parameters:
  2021. - description: user profile name
  2022. in: path
  2023. name: name
  2024. required: true
  2025. type: string
  2026. produces:
  2027. - application/json
  2028. responses:
  2029. "200":
  2030. description: OK
  2031. schema:
  2032. type: string
  2033. summary: user basic profile data
  2034. tags:
  2035. - user
  2036. /user/redirect/url:
  2037. get:
  2038. consumes:
  2039. - application/json
  2040. description: SNS 로그인 버튼 클릭시 redirect_url을 받는 API, {type=google, kakao}
  2041. parameters:
  2042. - description: type
  2043. in: query
  2044. name: type
  2045. required: true
  2046. type: string
  2047. produces:
  2048. - application/json
  2049. responses:
  2050. "200":
  2051. description: OK
  2052. schema:
  2053. type: string
  2054. summary: sns redirect url
  2055. tags:
  2056. - user
  2057. /user/transfer:
  2058. post:
  2059. consumes:
  2060. - application/json
  2061. description: 출금하기
  2062. parameters:
  2063. - description: 'currency: mf1, mr, eth'
  2064. in: body
  2065. name: Transfer
  2066. required: true
  2067. schema:
  2068. $ref: '#/definitions/user.Transfer'
  2069. produces:
  2070. - application/json
  2071. responses:
  2072. "200":
  2073. description: OK
  2074. schema:
  2075. type: string
  2076. summary: token transfer
  2077. tags:
  2078. - user
  2079. securityDefinitions:
  2080. ApiKeyAuth:
  2081. in: header
  2082. name: Authorization
  2083. type: apiKey
  2084. swagger: "2.0"