swagger.json 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/admin/administrator": {
  8. "get": {
  9. "security": [
  10. {
  11. "ApiKeyAuth": []
  12. }
  13. ],
  14. "description": "관리자 리스트 가져오기",
  15. "consumes": [
  16. "application/json"
  17. ],
  18. "produces": [
  19. "application/json"
  20. ],
  21. "tags": [
  22. "admin"
  23. ],
  24. "summary": "get administrator list",
  25. "responses": {
  26. "200": {
  27. "description": "OK",
  28. "schema": {
  29. "$ref": "#/definitions/view.AdministratorList"
  30. }
  31. }
  32. }
  33. },
  34. "post": {
  35. "security": [
  36. {
  37. "ApiKeyAuth": []
  38. }
  39. ],
  40. "description": "관리자 등록",
  41. "consumes": [
  42. "application/json"
  43. ],
  44. "produces": [
  45. "application/json"
  46. ],
  47. "tags": [
  48. "admin"
  49. ],
  50. "summary": "create administrator",
  51. "parameters": [
  52. {
  53. "description": "body struct",
  54. "name": "RegisterAdministratorData",
  55. "in": "body",
  56. "required": true,
  57. "schema": {
  58. "$ref": "#/definitions/admin.RegisterAdministratorData"
  59. }
  60. }
  61. ],
  62. "responses": {
  63. "200": {
  64. "description": "OK",
  65. "schema": {
  66. "type": "number"
  67. }
  68. }
  69. }
  70. }
  71. },
  72. "/admin/administrator/permission": {
  73. "patch": {
  74. "security": [
  75. {
  76. "ApiKeyAuth": []
  77. }
  78. ],
  79. "description": "관리자 권한 변경",
  80. "consumes": [
  81. "application/json"
  82. ],
  83. "produces": [
  84. "application/json"
  85. ],
  86. "tags": [
  87. "admin"
  88. ],
  89. "summary": "update administrator permmsion",
  90. "parameters": [
  91. {
  92. "description": "selected target data",
  93. "name": "UpdatePermission",
  94. "in": "body",
  95. "required": true,
  96. "schema": {
  97. "$ref": "#/definitions/admin.UpdatePermission"
  98. }
  99. }
  100. ],
  101. "responses": {
  102. "200": {
  103. "description": "OK",
  104. "schema": {
  105. "type": "string"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/admin/administrator/status": {
  112. "patch": {
  113. "security": [
  114. {
  115. "ApiKeyAuth": []
  116. }
  117. ],
  118. "description": "관리자 상태값 변경",
  119. "consumes": [
  120. "application/json"
  121. ],
  122. "produces": [
  123. "application/json"
  124. ],
  125. "tags": [
  126. "admin"
  127. ],
  128. "summary": "update administrator status",
  129. "parameters": [
  130. {
  131. "description": "selected target data",
  132. "name": "UpdateStatus",
  133. "in": "body",
  134. "required": true,
  135. "schema": {
  136. "$ref": "#/definitions/admin.UpdateStatus"
  137. }
  138. }
  139. ],
  140. "responses": {
  141. "200": {
  142. "description": "OK",
  143. "schema": {
  144. "type": "string"
  145. }
  146. }
  147. }
  148. }
  149. },
  150. "/admin/artist": {
  151. "get": {
  152. "security": [
  153. {
  154. "ApiKeyAuth": []
  155. }
  156. ],
  157. "description": "작가 리스트 가져오기",
  158. "consumes": [
  159. "application/json"
  160. ],
  161. "produces": [
  162. "application/json"
  163. ],
  164. "tags": [
  165. "admin"
  166. ],
  167. "summary": "get artist list",
  168. "responses": {
  169. "200": {
  170. "description": "OK",
  171. "schema": {
  172. "$ref": "#/definitions/view.MemberList"
  173. }
  174. }
  175. }
  176. },
  177. "post": {
  178. "security": [
  179. {
  180. "ApiKeyAuth": []
  181. }
  182. ],
  183. "description": "작가 등록",
  184. "consumes": [
  185. "application/json"
  186. ],
  187. "produces": [
  188. "application/json"
  189. ],
  190. "tags": [
  191. "admin"
  192. ],
  193. "summary": "create artist",
  194. "parameters": [
  195. {
  196. "description": "body struct",
  197. "name": "RegisterArtistData",
  198. "in": "body",
  199. "required": true,
  200. "schema": {
  201. "$ref": "#/definitions/admin.RegisterArtistData"
  202. }
  203. }
  204. ],
  205. "responses": {
  206. "200": {
  207. "description": "OK",
  208. "schema": {
  209. "type": "number"
  210. }
  211. }
  212. }
  213. }
  214. },
  215. "/admin/artist/status": {
  216. "patch": {
  217. "security": [
  218. {
  219. "ApiKeyAuth": []
  220. }
  221. ],
  222. "description": "작가 상태값 변경",
  223. "consumes": [
  224. "application/json"
  225. ],
  226. "produces": [
  227. "application/json"
  228. ],
  229. "tags": [
  230. "admin"
  231. ],
  232. "summary": "update artist status",
  233. "parameters": [
  234. {
  235. "description": "selected target data",
  236. "name": "UpdateStatus",
  237. "in": "body",
  238. "required": true,
  239. "schema": {
  240. "$ref": "#/definitions/admin.UpdateStatus"
  241. }
  242. }
  243. ],
  244. "responses": {
  245. "200": {
  246. "description": "OK",
  247. "schema": {
  248. "type": "string"
  249. }
  250. }
  251. }
  252. }
  253. },
  254. "/admin/auth/signin": {
  255. "post": {
  256. "description": "어드민 로그인",
  257. "consumes": [
  258. "application/json"
  259. ],
  260. "produces": [
  261. "application/json"
  262. ],
  263. "tags": [
  264. "admin"
  265. ],
  266. "summary": "signin",
  267. "parameters": [
  268. {
  269. "description": "body struct",
  270. "name": "AccountInfo",
  271. "in": "body",
  272. "required": true,
  273. "schema": {
  274. "$ref": "#/definitions/admin.AccountInfo"
  275. }
  276. }
  277. ],
  278. "responses": {
  279. "200": {
  280. "description": "OK",
  281. "schema": {
  282. "$ref": "#/definitions/admin.AdminAuthContainer"
  283. }
  284. }
  285. }
  286. }
  287. },
  288. "/admin/collection": {
  289. "get": {
  290. "security": [
  291. {
  292. "ApiKeyAuth": []
  293. }
  294. ],
  295. "description": "데이터가 쌓인 이후에 진행 예정, 컬렉션 리스트 가져오기",
  296. "consumes": [
  297. "application/json"
  298. ],
  299. "produces": [
  300. "application/json"
  301. ],
  302. "tags": [
  303. "admin"
  304. ],
  305. "summary": "get collection list",
  306. "responses": {
  307. "200": {
  308. "description": "OK",
  309. "schema": {
  310. "type": "array",
  311. "items": {
  312. "$ref": "#/definitions/view.CollectionInfo"
  313. }
  314. }
  315. }
  316. }
  317. }
  318. },
  319. "/admin/collection/curation": {
  320. "patch": {
  321. "security": [
  322. {
  323. "ApiKeyAuth": []
  324. }
  325. ],
  326. "description": "컬렉션 큐레이션 변경",
  327. "consumes": [
  328. "application/json"
  329. ],
  330. "produces": [
  331. "application/json"
  332. ],
  333. "tags": [
  334. "admin"
  335. ],
  336. "summary": "update collection curation",
  337. "parameters": [
  338. {
  339. "description": "selected target data",
  340. "name": "UpdateCuration",
  341. "in": "body",
  342. "required": true,
  343. "schema": {
  344. "$ref": "#/definitions/admin.UpdateCuration"
  345. }
  346. }
  347. ],
  348. "responses": {
  349. "200": {
  350. "description": "OK",
  351. "schema": {
  352. "type": "string"
  353. }
  354. }
  355. }
  356. }
  357. },
  358. "/admin/collection/status": {
  359. "patch": {
  360. "security": [
  361. {
  362. "ApiKeyAuth": []
  363. }
  364. ],
  365. "description": "컬렉션 상태값 변경 (보이기, 숨김)",
  366. "consumes": [
  367. "application/json"
  368. ],
  369. "produces": [
  370. "application/json"
  371. ],
  372. "tags": [
  373. "admin"
  374. ],
  375. "summary": "update collection status",
  376. "parameters": [
  377. {
  378. "description": "selected target data",
  379. "name": "UpdateStatus",
  380. "in": "body",
  381. "required": true,
  382. "schema": {
  383. "$ref": "#/definitions/admin.UpdateStatus"
  384. }
  385. }
  386. ],
  387. "responses": {
  388. "200": {
  389. "description": "OK",
  390. "schema": {
  391. "type": "string"
  392. }
  393. }
  394. }
  395. }
  396. },
  397. "/admin/log": {
  398. "get": {
  399. "security": [
  400. {
  401. "ApiKeyAuth": []
  402. }
  403. ],
  404. "description": "어드민 로그 가져오기",
  405. "consumes": [
  406. "application/json"
  407. ],
  408. "produces": [
  409. "application/json"
  410. ],
  411. "tags": [
  412. "admin"
  413. ],
  414. "summary": "get log list",
  415. "responses": {
  416. "200": {
  417. "description": "OK",
  418. "schema": {
  419. "$ref": "#/definitions/models.AdminLog"
  420. }
  421. }
  422. }
  423. }
  424. },
  425. "/admin/setting": {
  426. "get": {
  427. "security": [
  428. {
  429. "ApiKeyAuth": []
  430. }
  431. ],
  432. "description": "현재 셋팅 값 가져오기",
  433. "consumes": [
  434. "application/json"
  435. ],
  436. "produces": [
  437. "application/json"
  438. ],
  439. "tags": [
  440. "admin"
  441. ],
  442. "summary": "get setting list",
  443. "responses": {
  444. "200": {
  445. "description": "OK",
  446. "schema": {
  447. "$ref": "#/definitions/models.Setting"
  448. }
  449. }
  450. }
  451. }
  452. },
  453. "/admin/setting/{type}": {
  454. "patch": {
  455. "security": [
  456. {
  457. "ApiKeyAuth": []
  458. }
  459. ],
  460. "description": "설정 값 변경",
  461. "consumes": [
  462. "application/json"
  463. ],
  464. "produces": [
  465. "application/json"
  466. ],
  467. "tags": [
  468. "admin"
  469. ],
  470. "summary": "update setting value",
  471. "parameters": [
  472. {
  473. "description": "selected target data",
  474. "name": "SettingData",
  475. "in": "body",
  476. "required": true,
  477. "schema": {
  478. "$ref": "#/definitions/admin.SettingData"
  479. }
  480. },
  481. {
  482. "type": "string",
  483. "description": "type: commission, special_collection, gas_deposit",
  484. "name": "type",
  485. "in": "path",
  486. "required": true
  487. }
  488. ],
  489. "responses": {
  490. "200": {
  491. "description": "OK",
  492. "schema": {
  493. "type": "string"
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "/admin/user": {
  500. "get": {
  501. "security": [
  502. {
  503. "ApiKeyAuth": []
  504. }
  505. ],
  506. "description": "유저 리스트 가져오기",
  507. "consumes": [
  508. "application/json"
  509. ],
  510. "produces": [
  511. "application/json"
  512. ],
  513. "tags": [
  514. "admin"
  515. ],
  516. "summary": "get user list",
  517. "responses": {
  518. "200": {
  519. "description": "OK",
  520. "schema": {
  521. "$ref": "#/definitions/view.MemberList"
  522. }
  523. }
  524. }
  525. }
  526. },
  527. "/admin/user/status": {
  528. "patch": {
  529. "security": [
  530. {
  531. "ApiKeyAuth": []
  532. }
  533. ],
  534. "description": "유저 상태값 변경",
  535. "consumes": [
  536. "application/json"
  537. ],
  538. "produces": [
  539. "application/json"
  540. ],
  541. "tags": [
  542. "admin"
  543. ],
  544. "summary": "update user status",
  545. "parameters": [
  546. {
  547. "description": "selected target data",
  548. "name": "UpdateStatus",
  549. "in": "body",
  550. "required": true,
  551. "schema": {
  552. "$ref": "#/definitions/admin.UpdateStatus"
  553. }
  554. }
  555. ],
  556. "responses": {
  557. "200": {
  558. "description": "OK",
  559. "schema": {
  560. "type": "string"
  561. }
  562. }
  563. }
  564. }
  565. },
  566. "/collection": {
  567. "post": {
  568. "security": [
  569. {
  570. "ApiKeyAuth": []
  571. }
  572. ],
  573. "description": "컬렉션 등록, json struct = {name: string, symbol: string, description: string, type: string}",
  574. "consumes": [
  575. "multipart/form-data"
  576. ],
  577. "produces": [
  578. "application/json"
  579. ],
  580. "tags": [
  581. "collection"
  582. ],
  583. "summary": "create collection",
  584. "parameters": [
  585. {
  586. "type": "file",
  587. "description": "thumbnail image",
  588. "name": "thumbnailImage",
  589. "in": "formData",
  590. "required": true
  591. },
  592. {
  593. "type": "file",
  594. "description": "cover image",
  595. "name": "coverImage",
  596. "in": "formData",
  597. "required": true
  598. },
  599. {
  600. "type": "string",
  601. "name": "json",
  602. "in": "formData"
  603. }
  604. ],
  605. "responses": {
  606. "200": {
  607. "description": "OK",
  608. "schema": {
  609. "type": "string"
  610. }
  611. }
  612. }
  613. },
  614. "patch": {
  615. "security": [
  616. {
  617. "ApiKeyAuth": []
  618. }
  619. ],
  620. "description": "컬렉션 수정, json struct = {description: string, collection_id: uin64}",
  621. "consumes": [
  622. "multipart/form-data"
  623. ],
  624. "produces": [
  625. "application/json"
  626. ],
  627. "tags": [
  628. "collection"
  629. ],
  630. "summary": "update collection",
  631. "parameters": [
  632. {
  633. "type": "file",
  634. "description": "thumbnail image",
  635. "name": "thumbnailImage",
  636. "in": "formData",
  637. "required": true
  638. },
  639. {
  640. "type": "file",
  641. "description": "cover image",
  642. "name": "coverImage",
  643. "in": "formData",
  644. "required": true
  645. },
  646. {
  647. "type": "string",
  648. "name": "json",
  649. "in": "formData"
  650. }
  651. ],
  652. "responses": {
  653. "200": {
  654. "description": "OK",
  655. "schema": {
  656. "type": "string"
  657. }
  658. }
  659. }
  660. }
  661. },
  662. "/collection/activity/{collection_name}": {
  663. "post": {
  664. "description": "컬렉션 페이지 활동 탭",
  665. "consumes": [
  666. "application/json"
  667. ],
  668. "produces": [
  669. "application/json"
  670. ],
  671. "tags": [
  672. "collection"
  673. ],
  674. "summary": "get activities in collection",
  675. "parameters": [
  676. {
  677. "type": "string",
  678. "description": "collection name",
  679. "name": "collection_name",
  680. "in": "path",
  681. "required": true
  682. }
  683. ],
  684. "responses": {
  685. "200": {
  686. "description": "OK",
  687. "schema": {
  688. "type": "array",
  689. "items": {
  690. "$ref": "#/definitions/common.ExpItem"
  691. }
  692. }
  693. }
  694. }
  695. }
  696. },
  697. "/collection/duplicate/{name}": {
  698. "get": {
  699. "description": "컬렉션 이름 중복체크",
  700. "consumes": [
  701. "application/json"
  702. ],
  703. "produces": [
  704. "application/json"
  705. ],
  706. "tags": [
  707. "collection"
  708. ],
  709. "summary": "collection profile name duplicate check.",
  710. "parameters": [
  711. {
  712. "type": "string",
  713. "description": "check duplicate name",
  714. "name": "name",
  715. "in": "path",
  716. "required": true
  717. }
  718. ],
  719. "responses": {
  720. "200": {
  721. "description": "OK",
  722. "schema": {
  723. "type": "string"
  724. }
  725. }
  726. }
  727. }
  728. },
  729. "/collection/item/{collection_name}": {
  730. "post": {
  731. "description": "컬렉션 페이지 아이템 탭",
  732. "consumes": [
  733. "application/json"
  734. ],
  735. "produces": [
  736. "application/json"
  737. ],
  738. "tags": [
  739. "collection"
  740. ],
  741. "summary": "get items in collection",
  742. "parameters": [
  743. {
  744. "type": "string",
  745. "description": "collection name",
  746. "name": "collection_name",
  747. "in": "path",
  748. "required": true
  749. },
  750. {
  751. "description": "filter data",
  752. "name": "common.Filter",
  753. "in": "body",
  754. "required": true,
  755. "schema": {
  756. "$ref": "#/definitions/common.Filter"
  757. }
  758. }
  759. ],
  760. "responses": {
  761. "200": {
  762. "description": "OK",
  763. "schema": {
  764. "type": "array",
  765. "items": {
  766. "$ref": "#/definitions/common.ExpItem"
  767. }
  768. }
  769. }
  770. }
  771. }
  772. },
  773. "/collection/{collection_name}": {
  774. "get": {
  775. "description": "컬렉션 페이지에 있는 기본 정보 (탭 데이터는 따로 가져와야 한다.)",
  776. "consumes": [
  777. "application/json"
  778. ],
  779. "produces": [
  780. "application/json"
  781. ],
  782. "tags": [
  783. "collection"
  784. ],
  785. "summary": "get collection info",
  786. "parameters": [
  787. {
  788. "type": "string",
  789. "description": "collection name",
  790. "name": "collection_name",
  791. "in": "path",
  792. "required": true
  793. }
  794. ],
  795. "responses": {
  796. "200": {
  797. "description": "OK",
  798. "schema": {
  799. "$ref": "#/definitions/view.CollectionInfo"
  800. }
  801. }
  802. }
  803. }
  804. },
  805. "/explore/home": {
  806. "post": {
  807. "description": "탐색하기 home data",
  808. "consumes": [
  809. "application/json"
  810. ],
  811. "produces": [
  812. "application/json"
  813. ],
  814. "tags": [
  815. "explore"
  816. ],
  817. "summary": "explore filter data",
  818. "parameters": [
  819. {
  820. "description": "filter object",
  821. "name": "common.Filter",
  822. "in": "body",
  823. "required": true,
  824. "schema": {
  825. "$ref": "#/definitions/common.Filter"
  826. }
  827. }
  828. ],
  829. "responses": {
  830. "200": {
  831. "description": "OK",
  832. "schema": {
  833. "type": "array",
  834. "items": {
  835. "$ref": "#/definitions/common.ExpItem"
  836. }
  837. }
  838. }
  839. }
  840. }
  841. },
  842. "/explore/search": {
  843. "post": {
  844. "description": "필터링중 컬렉션 이름으로 키워드 검색 할 때 사용하며, filter.collectionName이 빈 값인 경우 tvl 기준 limit 10개 리턴",
  845. "consumes": [
  846. "application/json"
  847. ],
  848. "produces": [
  849. "application/json"
  850. ],
  851. "tags": [
  852. "explore"
  853. ],
  854. "summary": "explore collection filter list",
  855. "parameters": [
  856. {
  857. "description": "filter object",
  858. "name": "common.Filter",
  859. "in": "body",
  860. "required": true,
  861. "schema": {
  862. "$ref": "#/definitions/common.Filter"
  863. }
  864. }
  865. ],
  866. "responses": {
  867. "200": {
  868. "description": "OK",
  869. "schema": {
  870. "type": "obejct"
  871. }
  872. }
  873. }
  874. }
  875. },
  876. "/health": {
  877. "get": {
  878. "description": "API to check the status of the server",
  879. "consumes": [
  880. "application/json"
  881. ],
  882. "produces": [
  883. "application/json"
  884. ],
  885. "tags": [
  886. "health check"
  887. ],
  888. "summary": "API to check the status of the server",
  889. "responses": {
  890. "200": {
  891. "description": "OK",
  892. "schema": {
  893. "type": "string"
  894. }
  895. }
  896. }
  897. }
  898. },
  899. "/home": {
  900. "get": {
  901. "description": "index 페이지 데이터",
  902. "consumes": [
  903. "application/json"
  904. ],
  905. "produces": [
  906. "application/json"
  907. ],
  908. "tags": [
  909. "home"
  910. ],
  911. "summary": "get index data",
  912. "responses": {
  913. "200": {
  914. "description": "OK",
  915. "schema": {
  916. "$ref": "#/definitions/view.TokenSet"
  917. }
  918. }
  919. }
  920. }
  921. },
  922. "/sale/auction": {
  923. "post": {
  924. "security": [
  925. {
  926. "ApiKeyAuth": []
  927. }
  928. ],
  929. "description": "최고가 판매",
  930. "consumes": [
  931. "application/json"
  932. ],
  933. "produces": [
  934. "application/json"
  935. ],
  936. "tags": [
  937. "sale"
  938. ],
  939. "summary": "highest price sell",
  940. "parameters": [
  941. {
  942. "description": "body struct",
  943. "name": "BidData",
  944. "in": "body",
  945. "required": true,
  946. "schema": {
  947. "$ref": "#/definitions/sale.BidData"
  948. }
  949. }
  950. ],
  951. "responses": {
  952. "200": {
  953. "description": "OK",
  954. "schema": {
  955. "type": "string"
  956. }
  957. }
  958. }
  959. }
  960. },
  961. "/sale/bid": {
  962. "post": {
  963. "security": [
  964. {
  965. "ApiKeyAuth": []
  966. }
  967. ],
  968. "description": "입찰하기",
  969. "consumes": [
  970. "application/json"
  971. ],
  972. "produces": [
  973. "application/json"
  974. ],
  975. "tags": [
  976. "sale"
  977. ],
  978. "summary": "create bid",
  979. "parameters": [
  980. {
  981. "description": "body struct",
  982. "name": "BidData",
  983. "in": "body",
  984. "required": true,
  985. "schema": {
  986. "$ref": "#/definitions/sale.BidData"
  987. }
  988. }
  989. ],
  990. "responses": {
  991. "200": {
  992. "description": "OK",
  993. "schema": {
  994. "type": "string"
  995. }
  996. }
  997. }
  998. },
  999. "patch": {
  1000. "security": [
  1001. {
  1002. "ApiKeyAuth": []
  1003. }
  1004. ],
  1005. "description": "입찰 취소하기, 입찰을 다시하려면 취소 후 다시 해야한다.",
  1006. "consumes": [
  1007. "application/json"
  1008. ],
  1009. "produces": [
  1010. "application/json"
  1011. ],
  1012. "tags": [
  1013. "sale"
  1014. ],
  1015. "summary": "cancel bid",
  1016. "parameters": [
  1017. {
  1018. "description": "body struct",
  1019. "name": "TargetID",
  1020. "in": "body",
  1021. "required": true,
  1022. "schema": {
  1023. "$ref": "#/definitions/sale.TargetID"
  1024. }
  1025. }
  1026. ],
  1027. "responses": {
  1028. "200": {
  1029. "description": "OK",
  1030. "schema": {
  1031. "type": "string"
  1032. }
  1033. }
  1034. }
  1035. }
  1036. },
  1037. "/sale/bid/{sale_id}": {
  1038. "get": {
  1039. "security": [
  1040. {
  1041. "ApiKeyAuth": []
  1042. }
  1043. ],
  1044. "description": "NFT 판매 상세페이지 경매 기록 탭",
  1045. "consumes": [
  1046. "application/json"
  1047. ],
  1048. "produces": [
  1049. "application/json"
  1050. ],
  1051. "tags": [
  1052. "sale"
  1053. ],
  1054. "summary": "get bid history",
  1055. "parameters": [
  1056. {
  1057. "type": "string",
  1058. "description": "sale id",
  1059. "name": "sale_id",
  1060. "in": "path",
  1061. "required": true
  1062. }
  1063. ],
  1064. "responses": {
  1065. "200": {
  1066. "description": "OK",
  1067. "schema": {
  1068. "type": "obejct"
  1069. }
  1070. }
  1071. }
  1072. }
  1073. },
  1074. "/sale/buy": {
  1075. "post": {
  1076. "security": [
  1077. {
  1078. "ApiKeyAuth": []
  1079. }
  1080. ],
  1081. "description": "아이템 즉시 구매",
  1082. "consumes": [
  1083. "application/json"
  1084. ],
  1085. "produces": [
  1086. "application/json"
  1087. ],
  1088. "tags": [
  1089. "sale"
  1090. ],
  1091. "summary": "buy now item",
  1092. "parameters": [
  1093. {
  1094. "description": "body struct",
  1095. "name": "BidData",
  1096. "in": "body",
  1097. "required": true,
  1098. "schema": {
  1099. "$ref": "#/definitions/sale.BidData"
  1100. }
  1101. }
  1102. ],
  1103. "responses": {
  1104. "200": {
  1105. "description": "OK",
  1106. "schema": {
  1107. "type": "string"
  1108. }
  1109. }
  1110. }
  1111. }
  1112. },
  1113. "/sale/resale": {
  1114. "post": {
  1115. "security": [
  1116. {
  1117. "ApiKeyAuth": []
  1118. }
  1119. ],
  1120. "description": "NFT 구입 후 재등록 API",
  1121. "consumes": [
  1122. "application/json"
  1123. ],
  1124. "produces": [
  1125. "application/json"
  1126. ],
  1127. "tags": [
  1128. "sale"
  1129. ],
  1130. "summary": "create resale",
  1131. "parameters": [
  1132. {
  1133. "description": "body struct",
  1134. "name": "RegisterResaleData",
  1135. "in": "body",
  1136. "required": true,
  1137. "schema": {
  1138. "$ref": "#/definitions/sale.RegisterResaleData"
  1139. }
  1140. }
  1141. ],
  1142. "responses": {
  1143. "200": {
  1144. "description": "OK",
  1145. "schema": {
  1146. "type": "string"
  1147. }
  1148. }
  1149. }
  1150. }
  1151. },
  1152. "/sale/status": {
  1153. "patch": {
  1154. "security": [
  1155. {
  1156. "ApiKeyAuth": []
  1157. }
  1158. ],
  1159. "description": "등록한 오너인 경우에만 실행가능, 판매하지 않고 판매를 강제 종료시킨다.",
  1160. "consumes": [
  1161. "application/json"
  1162. ],
  1163. "produces": [
  1164. "application/json"
  1165. ],
  1166. "tags": [
  1167. "sale"
  1168. ],
  1169. "summary": "update sale statue for cancel",
  1170. "parameters": [
  1171. {
  1172. "description": "selected target id",
  1173. "name": "TargetID",
  1174. "in": "body",
  1175. "required": true,
  1176. "schema": {
  1177. "$ref": "#/definitions/sale.TargetID"
  1178. }
  1179. }
  1180. ],
  1181. "responses": {
  1182. "200": {
  1183. "description": "OK",
  1184. "schema": {
  1185. "type": "string"
  1186. }
  1187. }
  1188. }
  1189. }
  1190. },
  1191. "/sale/{sale_id}": {
  1192. "get": {
  1193. "description": "NFT 판매 상세페이지 데이터 가져오기",
  1194. "consumes": [
  1195. "application/json"
  1196. ],
  1197. "produces": [
  1198. "application/json"
  1199. ],
  1200. "tags": [
  1201. "sale"
  1202. ],
  1203. "summary": "get detail sale data",
  1204. "parameters": [
  1205. {
  1206. "type": "string",
  1207. "description": "sale id",
  1208. "name": "sale_id",
  1209. "in": "path",
  1210. "required": true
  1211. }
  1212. ],
  1213. "responses": {
  1214. "200": {
  1215. "description": "OK",
  1216. "schema": {
  1217. "type": "obejct"
  1218. }
  1219. }
  1220. }
  1221. }
  1222. },
  1223. "/token": {
  1224. "post": {
  1225. "security": [
  1226. {
  1227. "ApiKeyAuth": []
  1228. }
  1229. ],
  1230. "description": "NFT 생성과 동시에 판매 등록",
  1231. "consumes": [
  1232. "multipart/form-data"
  1233. ],
  1234. "produces": [
  1235. "application/json"
  1236. ],
  1237. "tags": [
  1238. "token"
  1239. ],
  1240. "summary": "create NFT",
  1241. "parameters": [
  1242. {
  1243. "type": "file",
  1244. "description": "content image",
  1245. "name": "contentImage",
  1246. "in": "formData",
  1247. "required": true
  1248. },
  1249. {
  1250. "type": "string",
  1251. "name": "json",
  1252. "in": "formData"
  1253. }
  1254. ],
  1255. "responses": {
  1256. "200": {
  1257. "description": "OK",
  1258. "schema": {
  1259. "type": "string"
  1260. }
  1261. }
  1262. }
  1263. }
  1264. },
  1265. "/token/baseinfo": {
  1266. "get": {
  1267. "security": [
  1268. {
  1269. "ApiKeyAuth": []
  1270. }
  1271. ],
  1272. "description": "아이템 생성 시 내가 만든 컬렉션 리스트와, 사이트 커미션 수수료 정보 가져오기",
  1273. "consumes": [
  1274. "application/json"
  1275. ],
  1276. "produces": [
  1277. "application/json"
  1278. ],
  1279. "tags": [
  1280. "token"
  1281. ],
  1282. "summary": "get token base info",
  1283. "parameters": [
  1284. {
  1285. "type": "string",
  1286. "description": "erc721, erc1155",
  1287. "name": "type",
  1288. "in": "query",
  1289. "required": true
  1290. }
  1291. ],
  1292. "responses": {
  1293. "200": {
  1294. "description": "OK",
  1295. "schema": {
  1296. "$ref": "#/definitions/token.TokenBaseInfo"
  1297. }
  1298. }
  1299. }
  1300. }
  1301. },
  1302. "/token/like": {
  1303. "patch": {
  1304. "security": [
  1305. {
  1306. "ApiKeyAuth": []
  1307. }
  1308. ],
  1309. "description": "토큰 좋아요 기능",
  1310. "consumes": [
  1311. "application/json"
  1312. ],
  1313. "produces": [
  1314. "application/json"
  1315. ],
  1316. "tags": [
  1317. "token"
  1318. ],
  1319. "summary": "update token like count",
  1320. "parameters": [
  1321. {
  1322. "description": "selected target id",
  1323. "name": "Like",
  1324. "in": "body",
  1325. "required": true,
  1326. "schema": {
  1327. "$ref": "#/definitions/token.Like"
  1328. }
  1329. }
  1330. ],
  1331. "responses": {
  1332. "200": {
  1333. "description": "OK",
  1334. "schema": {
  1335. "type": "string"
  1336. }
  1337. }
  1338. }
  1339. }
  1340. },
  1341. "/token/log/{token_id}": {
  1342. "get": {
  1343. "description": "NFT 판매 페이지 기록 탭",
  1344. "consumes": [
  1345. "application/json"
  1346. ],
  1347. "produces": [
  1348. "application/json"
  1349. ],
  1350. "tags": [
  1351. "token"
  1352. ],
  1353. "summary": "get token log",
  1354. "parameters": [
  1355. {
  1356. "type": "string",
  1357. "description": "token id",
  1358. "name": "token_id",
  1359. "in": "path",
  1360. "required": true
  1361. }
  1362. ],
  1363. "responses": {
  1364. "200": {
  1365. "description": "OK",
  1366. "schema": {
  1367. "$ref": "#/definitions/common.ActivityItem"
  1368. }
  1369. }
  1370. }
  1371. }
  1372. },
  1373. "/token/owner": {
  1374. "get": {
  1375. "description": "NFT 1155타입의 소유자 탭",
  1376. "consumes": [
  1377. "application/json"
  1378. ],
  1379. "produces": [
  1380. "application/json"
  1381. ],
  1382. "tags": [
  1383. "token"
  1384. ],
  1385. "summary": "get owner list",
  1386. "parameters": [
  1387. {
  1388. "type": "string",
  1389. "description": "type",
  1390. "name": "token_uid",
  1391. "in": "query",
  1392. "required": true
  1393. }
  1394. ],
  1395. "responses": {
  1396. "200": {
  1397. "description": "OK",
  1398. "schema": {
  1399. "$ref": "#/definitions/view.TokenOwnerList"
  1400. }
  1401. }
  1402. }
  1403. }
  1404. },
  1405. "/token/resaleinfo/{token_id}": {
  1406. "get": {
  1407. "security": [
  1408. {
  1409. "ApiKeyAuth": []
  1410. }
  1411. ],
  1412. "description": "토큰 재판매 시 설정해야하는 기본 데이터",
  1413. "consumes": [
  1414. "application/json"
  1415. ],
  1416. "produces": [
  1417. "application/json"
  1418. ],
  1419. "tags": [
  1420. "token"
  1421. ],
  1422. "summary": "get resale data",
  1423. "parameters": [
  1424. {
  1425. "type": "string",
  1426. "description": "token id",
  1427. "name": "token_id",
  1428. "in": "path",
  1429. "required": true
  1430. }
  1431. ],
  1432. "responses": {
  1433. "200": {
  1434. "description": "OK",
  1435. "schema": {
  1436. "$ref": "#/definitions/view.TokenResaleData"
  1437. }
  1438. }
  1439. }
  1440. }
  1441. },
  1442. "/token/{token_id}": {
  1443. "get": {
  1444. "description": "토큰 상세페이지",
  1445. "consumes": [
  1446. "application/json"
  1447. ],
  1448. "produces": [
  1449. "application/json"
  1450. ],
  1451. "tags": [
  1452. "token"
  1453. ],
  1454. "summary": "get token detail",
  1455. "parameters": [
  1456. {
  1457. "type": "string",
  1458. "description": "token id",
  1459. "name": "token_id",
  1460. "in": "path",
  1461. "required": true
  1462. }
  1463. ],
  1464. "responses": {
  1465. "200": {
  1466. "description": "OK",
  1467. "schema": {
  1468. "$ref": "#/definitions/view.TokenDetailData"
  1469. }
  1470. }
  1471. }
  1472. }
  1473. },
  1474. "/user/activity/{name}": {
  1475. "get": {
  1476. "description": "유저 프로필 활동 탭",
  1477. "consumes": [
  1478. "application/json"
  1479. ],
  1480. "produces": [
  1481. "application/json"
  1482. ],
  1483. "tags": [
  1484. "user"
  1485. ],
  1486. "summary": "user activity list",
  1487. "parameters": [
  1488. {
  1489. "type": "string",
  1490. "description": "user profile name",
  1491. "name": "name",
  1492. "in": "path",
  1493. "required": true
  1494. }
  1495. ],
  1496. "responses": {
  1497. "200": {
  1498. "description": "OK",
  1499. "schema": {
  1500. "type": "array",
  1501. "items": {
  1502. "$ref": "#/definitions/common.ActivityItem"
  1503. }
  1504. }
  1505. }
  1506. }
  1507. }
  1508. },
  1509. "/user/authenticate": {
  1510. "post": {
  1511. "description": "redirect url 호출이후 받은 코드로 기존유저라면 로그인, 새로운 유저라면 가입 후 로그인",
  1512. "consumes": [
  1513. "application/json"
  1514. ],
  1515. "produces": [
  1516. "application/json"
  1517. ],
  1518. "tags": [
  1519. "user"
  1520. ],
  1521. "summary": "sign-in",
  1522. "parameters": [
  1523. {
  1524. "description": "oauth data",
  1525. "name": "AuthenticationSNS",
  1526. "in": "body",
  1527. "required": true,
  1528. "schema": {
  1529. "$ref": "#/definitions/user.AuthenticationSNS"
  1530. }
  1531. }
  1532. ],
  1533. "responses": {
  1534. "200": {
  1535. "description": "OK",
  1536. "schema": {
  1537. "type": "string"
  1538. }
  1539. }
  1540. }
  1541. }
  1542. },
  1543. "/user/authenticate/temp": {
  1544. "get": {
  1545. "description": "SNS로그인 테스트 이전에 동일한 로직으로 유저 회원가입, 세션 획득을 위한 임시 함수, 입력된 이메일이 없으면 회원가입 이후 로그인, 있으면 로그인",
  1546. "consumes": [
  1547. "application/json"
  1548. ],
  1549. "produces": [
  1550. "application/json"
  1551. ],
  1552. "tags": [
  1553. "user"
  1554. ],
  1555. "summary": "temp user authentication",
  1556. "parameters": [
  1557. {
  1558. "type": "string",
  1559. "description": "email",
  1560. "name": "email",
  1561. "in": "query",
  1562. "required": true
  1563. }
  1564. ],
  1565. "responses": {
  1566. "200": {
  1567. "description": "OK",
  1568. "schema": {
  1569. "type": "string"
  1570. }
  1571. }
  1572. }
  1573. }
  1574. },
  1575. "/user/bid": {
  1576. "post": {
  1577. "security": [
  1578. {
  1579. "ApiKeyAuth": []
  1580. }
  1581. ],
  1582. "description": "유저 경매 히스토리",
  1583. "consumes": [
  1584. "application/json"
  1585. ],
  1586. "produces": [
  1587. "application/json"
  1588. ],
  1589. "tags": [
  1590. "user"
  1591. ],
  1592. "summary": "user bid list",
  1593. "responses": {
  1594. "200": {
  1595. "description": "OK",
  1596. "schema": {
  1597. "type": "array",
  1598. "items": {
  1599. "$ref": "#/definitions/common.ExpItem"
  1600. }
  1601. }
  1602. }
  1603. }
  1604. }
  1605. },
  1606. "/user/certification/code": {
  1607. "post": {
  1608. "description": "출금하기 2차 인증",
  1609. "consumes": [
  1610. "application/json"
  1611. ],
  1612. "produces": [
  1613. "application/json"
  1614. ],
  1615. "tags": [
  1616. "user"
  1617. ],
  1618. "summary": "send certification code",
  1619. "parameters": [
  1620. {
  1621. "description": "currency: mf, mr, eth",
  1622. "name": "CertificationBody",
  1623. "in": "body",
  1624. "required": true,
  1625. "schema": {
  1626. "$ref": "#/definitions/user.CertificationBody"
  1627. }
  1628. }
  1629. ],
  1630. "responses": {
  1631. "200": {
  1632. "description": "OK",
  1633. "schema": {
  1634. "type": "string"
  1635. }
  1636. }
  1637. }
  1638. }
  1639. },
  1640. "/user/collection/{name}": {
  1641. "post": {
  1642. "security": [
  1643. {
  1644. "ApiKeyAuth": []
  1645. }
  1646. ],
  1647. "description": "유저 프로필 컬렉션 탭",
  1648. "consumes": [
  1649. "application/json"
  1650. ],
  1651. "produces": [
  1652. "application/json"
  1653. ],
  1654. "tags": [
  1655. "user"
  1656. ],
  1657. "summary": "collection list",
  1658. "parameters": [
  1659. {
  1660. "description": "filter object",
  1661. "name": "common.Filter",
  1662. "in": "body",
  1663. "required": true,
  1664. "schema": {
  1665. "$ref": "#/definitions/common.Filter"
  1666. }
  1667. },
  1668. {
  1669. "type": "string",
  1670. "description": "user profile name",
  1671. "name": "name",
  1672. "in": "path",
  1673. "required": true
  1674. }
  1675. ],
  1676. "responses": {
  1677. "200": {
  1678. "description": "OK",
  1679. "schema": {
  1680. "type": "array",
  1681. "items": {
  1682. "$ref": "#/definitions/common.CollectionItem"
  1683. }
  1684. }
  1685. }
  1686. }
  1687. }
  1688. },
  1689. "/user/duplicate/{name}": {
  1690. "get": {
  1691. "description": "유저 이름 중복체크",
  1692. "consumes": [
  1693. "application/json"
  1694. ],
  1695. "produces": [
  1696. "application/json"
  1697. ],
  1698. "tags": [
  1699. "user"
  1700. ],
  1701. "summary": "User profile name duplicate check.",
  1702. "parameters": [
  1703. {
  1704. "type": "string",
  1705. "description": "check duplicate name",
  1706. "name": "name",
  1707. "in": "path",
  1708. "required": true
  1709. }
  1710. ],
  1711. "responses": {
  1712. "200": {
  1713. "description": "OK",
  1714. "schema": {
  1715. "type": "string"
  1716. }
  1717. }
  1718. }
  1719. }
  1720. },
  1721. "/user/like/{name}": {
  1722. "post": {
  1723. "description": "유저 프로필 좋아요 탭",
  1724. "consumes": [
  1725. "application/json"
  1726. ],
  1727. "produces": [
  1728. "application/json"
  1729. ],
  1730. "tags": [
  1731. "user"
  1732. ],
  1733. "summary": "user like list",
  1734. "parameters": [
  1735. {
  1736. "description": "filter object",
  1737. "name": "common.Filter",
  1738. "in": "body",
  1739. "required": true,
  1740. "schema": {
  1741. "$ref": "#/definitions/common.Filter"
  1742. }
  1743. },
  1744. {
  1745. "type": "string",
  1746. "description": "user profile name",
  1747. "name": "name",
  1748. "in": "path",
  1749. "required": true
  1750. }
  1751. ],
  1752. "responses": {
  1753. "200": {
  1754. "description": "OK",
  1755. "schema": {
  1756. "type": "array",
  1757. "items": {
  1758. "$ref": "#/definitions/common.ExpItem"
  1759. }
  1760. }
  1761. }
  1762. }
  1763. }
  1764. },
  1765. "/user/onsale/{name}": {
  1766. "post": {
  1767. "security": [
  1768. {
  1769. "ApiKeyAuth": []
  1770. }
  1771. ],
  1772. "description": "판매중인 NFT 리스트",
  1773. "consumes": [
  1774. "application/json"
  1775. ],
  1776. "produces": [
  1777. "application/json"
  1778. ],
  1779. "tags": [
  1780. "user"
  1781. ],
  1782. "summary": "onesale list",
  1783. "parameters": [
  1784. {
  1785. "description": "filter object",
  1786. "name": "common.Filter",
  1787. "in": "body",
  1788. "required": true,
  1789. "schema": {
  1790. "$ref": "#/definitions/common.Filter"
  1791. }
  1792. },
  1793. {
  1794. "type": "string",
  1795. "description": "user profile name",
  1796. "name": "name",
  1797. "in": "path",
  1798. "required": true
  1799. }
  1800. ],
  1801. "responses": {
  1802. "200": {
  1803. "description": "OK",
  1804. "schema": {
  1805. "type": "array",
  1806. "items": {
  1807. "$ref": "#/definitions/common.ExpItem"
  1808. }
  1809. }
  1810. }
  1811. }
  1812. }
  1813. },
  1814. "/user/owned": {
  1815. "post": {
  1816. "security": [
  1817. {
  1818. "ApiKeyAuth": []
  1819. }
  1820. ],
  1821. "description": "보유중인 NFT 리스트",
  1822. "consumes": [
  1823. "application/json"
  1824. ],
  1825. "produces": [
  1826. "application/json"
  1827. ],
  1828. "tags": [
  1829. "user"
  1830. ],
  1831. "summary": "owned list",
  1832. "parameters": [
  1833. {
  1834. "description": "filter object",
  1835. "name": "common.Filter",
  1836. "in": "body",
  1837. "required": true,
  1838. "schema": {
  1839. "$ref": "#/definitions/common.Filter"
  1840. }
  1841. }
  1842. ],
  1843. "responses": {
  1844. "200": {
  1845. "description": "OK",
  1846. "schema": {
  1847. "type": "array",
  1848. "items": {
  1849. "$ref": "#/definitions/common.ExpItem"
  1850. }
  1851. }
  1852. }
  1853. }
  1854. }
  1855. },
  1856. "/user/profile": {
  1857. "get": {
  1858. "security": [
  1859. {
  1860. "ApiKeyAuth": []
  1861. }
  1862. ],
  1863. "description": "헤더, 프로필 편집에 사용할 데이터",
  1864. "consumes": [
  1865. "application/json"
  1866. ],
  1867. "produces": [
  1868. "application/json"
  1869. ],
  1870. "tags": [
  1871. "user"
  1872. ],
  1873. "summary": "user simple profile data",
  1874. "responses": {
  1875. "200": {
  1876. "description": "OK",
  1877. "schema": {
  1878. "$ref": "#/definitions/view.SimpleProfile"
  1879. }
  1880. }
  1881. }
  1882. },
  1883. "patch": {
  1884. "security": [
  1885. {
  1886. "ApiKeyAuth": []
  1887. }
  1888. ],
  1889. "description": "유저 정보 업데이트",
  1890. "consumes": [
  1891. "multipart/form-data"
  1892. ],
  1893. "produces": [
  1894. "application/json"
  1895. ],
  1896. "tags": [
  1897. "user"
  1898. ],
  1899. "summary": "update user profile",
  1900. "parameters": [
  1901. {
  1902. "type": "file",
  1903. "description": "thumbnail image",
  1904. "name": "thumbnailImage",
  1905. "in": "formData",
  1906. "required": true
  1907. },
  1908. {
  1909. "type": "file",
  1910. "description": "cover image",
  1911. "name": "coverImage",
  1912. "in": "formData",
  1913. "required": true
  1914. },
  1915. {
  1916. "type": "string",
  1917. "name": "json",
  1918. "in": "formData"
  1919. }
  1920. ],
  1921. "responses": {
  1922. "200": {
  1923. "description": "OK",
  1924. "schema": {
  1925. "type": "string"
  1926. }
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "/user/profile/{name}": {
  1932. "get": {
  1933. "description": "유저 기본 정보 가져오기",
  1934. "consumes": [
  1935. "application/json"
  1936. ],
  1937. "produces": [
  1938. "application/json"
  1939. ],
  1940. "tags": [
  1941. "user"
  1942. ],
  1943. "summary": "user basic profile data",
  1944. "parameters": [
  1945. {
  1946. "type": "string",
  1947. "description": "user profile name",
  1948. "name": "name",
  1949. "in": "path",
  1950. "required": true
  1951. }
  1952. ],
  1953. "responses": {
  1954. "200": {
  1955. "description": "OK",
  1956. "schema": {
  1957. "type": "string"
  1958. }
  1959. }
  1960. }
  1961. }
  1962. },
  1963. "/user/redirect/url": {
  1964. "get": {
  1965. "description": "SNS 로그인 버튼 클릭시 redirect_url을 받는 API, {type=google, kakao}",
  1966. "consumes": [
  1967. "application/json"
  1968. ],
  1969. "produces": [
  1970. "application/json"
  1971. ],
  1972. "tags": [
  1973. "user"
  1974. ],
  1975. "summary": "sns redirect url",
  1976. "parameters": [
  1977. {
  1978. "type": "string",
  1979. "description": "type",
  1980. "name": "type",
  1981. "in": "query",
  1982. "required": true
  1983. }
  1984. ],
  1985. "responses": {
  1986. "200": {
  1987. "description": "OK",
  1988. "schema": {
  1989. "type": "string"
  1990. }
  1991. }
  1992. }
  1993. }
  1994. },
  1995. "/user/transfer": {
  1996. "post": {
  1997. "description": "출금하기",
  1998. "consumes": [
  1999. "application/json"
  2000. ],
  2001. "produces": [
  2002. "application/json"
  2003. ],
  2004. "tags": [
  2005. "user"
  2006. ],
  2007. "summary": "token transfer",
  2008. "parameters": [
  2009. {
  2010. "description": "currency: mf1, mr, eth",
  2011. "name": "Transfer",
  2012. "in": "body",
  2013. "required": true,
  2014. "schema": {
  2015. "$ref": "#/definitions/user.Transfer"
  2016. }
  2017. }
  2018. ],
  2019. "responses": {
  2020. "200": {
  2021. "description": "OK",
  2022. "schema": {
  2023. "type": "string"
  2024. }
  2025. }
  2026. }
  2027. }
  2028. }
  2029. },
  2030. "definitions": {
  2031. "admin.AccountInfo": {
  2032. "type": "object",
  2033. "properties": {
  2034. "email": {
  2035. "type": "string"
  2036. },
  2037. "password": {
  2038. "type": "string"
  2039. }
  2040. }
  2041. },
  2042. "admin.AdminAuthContainer": {
  2043. "type": "object",
  2044. "properties": {
  2045. "access_token": {
  2046. "type": "string"
  2047. },
  2048. "permission": {
  2049. "$ref": "#/definitions/models.AdminPermission"
  2050. }
  2051. }
  2052. },
  2053. "admin.RegisterAdministratorData": {
  2054. "type": "object",
  2055. "properties": {
  2056. "chargeof": {
  2057. "type": "string"
  2058. },
  2059. "email": {
  2060. "type": "string"
  2061. },
  2062. "name": {
  2063. "type": "string"
  2064. },
  2065. "password": {
  2066. "type": "string"
  2067. },
  2068. "phone": {
  2069. "type": "string"
  2070. },
  2071. "position": {
  2072. "type": "string"
  2073. },
  2074. "team": {
  2075. "type": "string"
  2076. }
  2077. }
  2078. },
  2079. "admin.RegisterArtistData": {
  2080. "type": "object",
  2081. "properties": {
  2082. "category": {
  2083. "type": "string"
  2084. },
  2085. "email": {
  2086. "type": "string"
  2087. },
  2088. "name": {
  2089. "type": "string"
  2090. },
  2091. "phone": {
  2092. "type": "string"
  2093. },
  2094. "team": {
  2095. "type": "string"
  2096. }
  2097. }
  2098. },
  2099. "admin.SettingData": {
  2100. "type": "object",
  2101. "properties": {
  2102. "commission": {
  2103. "type": "number"
  2104. },
  2105. "gas_deposit": {
  2106. "type": "number"
  2107. },
  2108. "special_collection": {
  2109. "type": "string"
  2110. }
  2111. }
  2112. },
  2113. "admin.UpdateCuration": {
  2114. "type": "object",
  2115. "properties": {
  2116. "id": {
  2117. "type": "integer"
  2118. },
  2119. "index": {
  2120. "type": "integer"
  2121. }
  2122. }
  2123. },
  2124. "admin.UpdatePermission": {
  2125. "type": "object",
  2126. "properties": {
  2127. "admin_id": {
  2128. "type": "integer"
  2129. },
  2130. "admin_permission": {
  2131. "type": "boolean"
  2132. },
  2133. "collection_permission": {
  2134. "type": "boolean"
  2135. },
  2136. "log_permission": {
  2137. "type": "boolean"
  2138. },
  2139. "system_permission": {
  2140. "type": "boolean"
  2141. },
  2142. "user_permission": {
  2143. "type": "boolean"
  2144. }
  2145. }
  2146. },
  2147. "admin.UpdateStatus": {
  2148. "type": "object",
  2149. "properties": {
  2150. "id": {
  2151. "type": "integer"
  2152. },
  2153. "status": {
  2154. "type": "string"
  2155. }
  2156. }
  2157. },
  2158. "common.ActivityItem": {
  2159. "type": "object",
  2160. "properties": {
  2161. "created_at": {
  2162. "type": "string"
  2163. },
  2164. "currency": {
  2165. "type": "string"
  2166. },
  2167. "from_address": {
  2168. "type": "string"
  2169. },
  2170. "from_user_is_artist": {
  2171. "type": "boolean"
  2172. },
  2173. "from_user_name": {
  2174. "type": "string"
  2175. },
  2176. "from_user_profile": {
  2177. "type": "string"
  2178. },
  2179. "is_cancel": {
  2180. "type": "boolean"
  2181. },
  2182. "log_relation_id": {
  2183. "type": "integer"
  2184. },
  2185. "log_type": {
  2186. "type": "string"
  2187. },
  2188. "price": {
  2189. "type": "string"
  2190. },
  2191. "sale_id": {
  2192. "type": "integer"
  2193. },
  2194. "sale_uid": {
  2195. "type": "string"
  2196. },
  2197. "to_address": {
  2198. "type": "string"
  2199. },
  2200. "to_user_is_artist": {
  2201. "type": "boolean"
  2202. },
  2203. "to_user_name": {
  2204. "type": "string"
  2205. },
  2206. "to_user_profile": {
  2207. "type": "string"
  2208. },
  2209. "token_content_url": {
  2210. "type": "string"
  2211. },
  2212. "token_id": {
  2213. "type": "integer"
  2214. },
  2215. "token_name": {
  2216. "type": "string"
  2217. },
  2218. "tx": {
  2219. "type": "string"
  2220. }
  2221. }
  2222. },
  2223. "common.CollectionItem": {
  2224. "type": "object",
  2225. "properties": {
  2226. "collection_id": {
  2227. "type": "integer"
  2228. },
  2229. "collection_name": {
  2230. "type": "string"
  2231. },
  2232. "cover_image": {
  2233. "type": "string"
  2234. },
  2235. "is_official": {
  2236. "type": "boolean"
  2237. },
  2238. "owner_name": {
  2239. "type": "string"
  2240. },
  2241. "thumbnail_image": {
  2242. "type": "string"
  2243. },
  2244. "total_item": {
  2245. "type": "integer"
  2246. },
  2247. "total_volume": {
  2248. "type": "number"
  2249. },
  2250. "user_id": {
  2251. "type": "integer"
  2252. }
  2253. }
  2254. },
  2255. "common.ExpItem": {
  2256. "type": "object",
  2257. "properties": {
  2258. "bid_count": {
  2259. "type": "integer"
  2260. },
  2261. "collection_id": {
  2262. "type": "integer"
  2263. },
  2264. "collection_name": {
  2265. "type": "string"
  2266. },
  2267. "collection_thumbnail_image": {
  2268. "type": "string"
  2269. },
  2270. "content_title": {
  2271. "type": "string"
  2272. },
  2273. "content_url": {
  2274. "type": "string"
  2275. },
  2276. "created_at": {
  2277. "type": "string"
  2278. },
  2279. "current_currency": {
  2280. "type": "string"
  2281. },
  2282. "current_price": {
  2283. "type": "string"
  2284. },
  2285. "end_at": {
  2286. "type": "string"
  2287. },
  2288. "fixed_price": {
  2289. "type": "string"
  2290. },
  2291. "is_artist": {
  2292. "type": "boolean"
  2293. },
  2294. "is_like": {
  2295. "type": "boolean"
  2296. },
  2297. "is_official_collection": {
  2298. "type": "boolean"
  2299. },
  2300. "item_index": {
  2301. "type": "integer"
  2302. },
  2303. "lastest_currency": {
  2304. "type": "string"
  2305. },
  2306. "lastest_price": {
  2307. "type": "string"
  2308. },
  2309. "likes": {
  2310. "type": "integer"
  2311. },
  2312. "owner_name": {
  2313. "type": "string"
  2314. },
  2315. "owner_thumbnail_image": {
  2316. "type": "string"
  2317. },
  2318. "sale_id": {
  2319. "type": "integer"
  2320. },
  2321. "sale_status": {
  2322. "type": "string"
  2323. },
  2324. "sale_type": {
  2325. "type": "string"
  2326. },
  2327. "start_price": {
  2328. "type": "string"
  2329. },
  2330. "token_id": {
  2331. "type": "integer"
  2332. },
  2333. "total_count": {
  2334. "type": "integer"
  2335. },
  2336. "user_id": {
  2337. "type": "integer"
  2338. }
  2339. }
  2340. },
  2341. "common.Filter": {
  2342. "type": "object",
  2343. "properties": {
  2344. "category": {
  2345. "type": "string"
  2346. },
  2347. "collection_name": {
  2348. "type": "string"
  2349. },
  2350. "currency": {
  2351. "type": "string"
  2352. },
  2353. "currency_amount_end": {
  2354. "type": "string"
  2355. },
  2356. "currency_amount_start": {
  2357. "type": "string"
  2358. },
  2359. "limit": {
  2360. "type": "integer",
  2361. "default": -1
  2362. },
  2363. "network": {
  2364. "type": "string"
  2365. },
  2366. "offset": {
  2367. "type": "integer",
  2368. "default": -1
  2369. },
  2370. "sale_status": {
  2371. "description": "for 개인페이지의 판매중",
  2372. "type": "string"
  2373. },
  2374. "sale_type": {
  2375. "type": "string"
  2376. },
  2377. "token_name": {
  2378. "type": "string"
  2379. }
  2380. }
  2381. },
  2382. "models.AdminLog": {
  2383. "type": "object",
  2384. "properties": {
  2385. "action_type": {
  2386. "description": "[ 2] action_type char(10) null: false primary: false isArray: false auto: false col: char len: 10 default: []",
  2387. "type": "string"
  2388. },
  2389. "actioned_at": {
  2390. "description": "[ 4] actioned_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2391. "type": "string"
  2392. },
  2393. "admin_id": {
  2394. "description": "[ 1] admin_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2395. "type": "integer"
  2396. },
  2397. "created_at": {
  2398. "description": "[ 5] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2399. "type": "string"
  2400. },
  2401. "deleted_at": {
  2402. "description": "[ 7] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2403. "type": "string"
  2404. },
  2405. "id": {
  2406. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2407. "type": "integer"
  2408. },
  2409. "message": {
  2410. "description": "[ 8] message varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2411. "type": "string"
  2412. },
  2413. "sub_action_type": {
  2414. "description": "[ 3] sub_action_type char(8) null: false primary: false isArray: false auto: false col: char len: 8 default: []",
  2415. "type": "string"
  2416. },
  2417. "updated_at": {
  2418. "description": "[ 6] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2419. "type": "string"
  2420. }
  2421. }
  2422. },
  2423. "models.AdminPermission": {
  2424. "type": "object",
  2425. "properties": {
  2426. "admin": {
  2427. "description": "[ 5] admin tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2428. "type": "integer"
  2429. },
  2430. "admin_id": {
  2431. "description": "[ 1] admin_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2432. "type": "integer"
  2433. },
  2434. "collection": {
  2435. "description": "[ 3] collection tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2436. "type": "integer"
  2437. },
  2438. "created_at": {
  2439. "description": "[ 7] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2440. "type": "string"
  2441. },
  2442. "deleted_at": {
  2443. "description": "[ 9] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2444. "type": "string"
  2445. },
  2446. "id": {
  2447. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2448. "type": "integer"
  2449. },
  2450. "log": {
  2451. "description": "[ 6] log tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2452. "type": "integer"
  2453. },
  2454. "system": {
  2455. "description": "[ 4] system tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2456. "type": "integer"
  2457. },
  2458. "updated_at": {
  2459. "description": "[ 8] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2460. "type": "string"
  2461. },
  2462. "user": {
  2463. "description": "[ 2] user tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [0]",
  2464. "type": "integer"
  2465. }
  2466. }
  2467. },
  2468. "models.Setting": {
  2469. "type": "object",
  2470. "properties": {
  2471. "commission": {
  2472. "description": "[ 1] commission double null: false primary: false isArray: false auto: false col: double len: -1 default: []",
  2473. "type": "number"
  2474. },
  2475. "created_at": {
  2476. "description": "[ 5] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2477. "type": "string"
  2478. },
  2479. "deleted_at": {
  2480. "description": "[ 7] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2481. "type": "string"
  2482. },
  2483. "gas_deposit": {
  2484. "description": "[ 3] gas_deposit double null: false primary: false isArray: false auto: false col: double len: -1 default: []",
  2485. "type": "number"
  2486. },
  2487. "id": {
  2488. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2489. "type": "integer"
  2490. },
  2491. "special_collection": {
  2492. "description": "[ 2] special_collection varchar(128) null: false primary: false isArray: false auto: false col: varchar len: 128 default: []",
  2493. "type": "string"
  2494. },
  2495. "treasury_address": {
  2496. "description": "[ 4] treasury_address varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2497. "type": "string"
  2498. },
  2499. "updated_at": {
  2500. "description": "[ 6] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2501. "type": "string"
  2502. }
  2503. }
  2504. },
  2505. "models.Traits": {
  2506. "type": "object",
  2507. "properties": {
  2508. "created_at": {
  2509. "description": "[ 4] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2510. "type": "string"
  2511. },
  2512. "deleted_at": {
  2513. "description": "[ 6] deleted_at timestamp null: true primary: false isArray: false auto: false col: timestamp len: -1 default: []",
  2514. "type": "string"
  2515. },
  2516. "id": {
  2517. "description": "[ 0] id ubigint null: false primary: true isArray: false auto: true col: ubigint len: -1 default: []",
  2518. "type": "integer"
  2519. },
  2520. "key": {
  2521. "description": "[ 2] key varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2522. "type": "string"
  2523. },
  2524. "token_id": {
  2525. "description": "[ 1] token_id ubigint null: false primary: false isArray: false auto: false col: ubigint len: -1 default: []",
  2526. "type": "integer"
  2527. },
  2528. "updated_at": {
  2529. "description": "[ 5] updated_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]",
  2530. "type": "string"
  2531. },
  2532. "value": {
  2533. "description": "[ 3] value varchar(256) null: false primary: false isArray: false auto: false col: varchar len: 256 default: []",
  2534. "type": "string"
  2535. }
  2536. }
  2537. },
  2538. "sale.BidData": {
  2539. "type": "object",
  2540. "properties": {
  2541. "bid_price": {
  2542. "type": "number"
  2543. },
  2544. "currency": {
  2545. "type": "string"
  2546. },
  2547. "sale_id": {
  2548. "type": "integer"
  2549. }
  2550. }
  2551. },
  2552. "sale.RegisterResaleData": {
  2553. "type": "object",
  2554. "required": [
  2555. "currency",
  2556. "sale_type",
  2557. "token_id"
  2558. ],
  2559. "properties": {
  2560. "currency": {
  2561. "type": "string"
  2562. },
  2563. "end_at": {
  2564. "type": "string"
  2565. },
  2566. "price": {
  2567. "type": "number"
  2568. },
  2569. "sale_type": {
  2570. "type": "string"
  2571. },
  2572. "start_at": {
  2573. "type": "string"
  2574. },
  2575. "start_price": {
  2576. "type": "number"
  2577. },
  2578. "token_id": {
  2579. "type": "integer"
  2580. }
  2581. }
  2582. },
  2583. "sale.TargetID": {
  2584. "type": "object",
  2585. "properties": {
  2586. "id": {
  2587. "type": "integer"
  2588. }
  2589. }
  2590. },
  2591. "token.CollectionData": {
  2592. "type": "object",
  2593. "properties": {
  2594. "collection_id": {
  2595. "type": "integer"
  2596. },
  2597. "is_official": {
  2598. "type": "boolean"
  2599. },
  2600. "name": {
  2601. "type": "string"
  2602. },
  2603. "thumbnail_image": {
  2604. "type": "string"
  2605. }
  2606. }
  2607. },
  2608. "token.Like": {
  2609. "type": "object",
  2610. "required": [
  2611. "token_id"
  2612. ],
  2613. "properties": {
  2614. "is_like": {
  2615. "type": "boolean"
  2616. },
  2617. "token_id": {
  2618. "type": "integer"
  2619. }
  2620. }
  2621. },
  2622. "token.TokenBaseInfo": {
  2623. "type": "object",
  2624. "properties": {
  2625. "collection": {
  2626. "type": "array",
  2627. "items": {
  2628. "$ref": "#/definitions/token.CollectionData"
  2629. }
  2630. },
  2631. "commission": {
  2632. "type": "number"
  2633. }
  2634. }
  2635. },
  2636. "user.AuthenticationSNS": {
  2637. "type": "object",
  2638. "required": [
  2639. "code",
  2640. "type"
  2641. ],
  2642. "properties": {
  2643. "code": {
  2644. "type": "string"
  2645. },
  2646. "type": {
  2647. "type": "string"
  2648. }
  2649. }
  2650. },
  2651. "user.CertificationBody": {
  2652. "type": "object",
  2653. "required": [
  2654. "amount",
  2655. "currency"
  2656. ],
  2657. "properties": {
  2658. "amount": {
  2659. "type": "number"
  2660. },
  2661. "currency": {
  2662. "type": "string"
  2663. }
  2664. }
  2665. },
  2666. "user.Transfer": {
  2667. "type": "object",
  2668. "required": [
  2669. "amount",
  2670. "code",
  2671. "currency",
  2672. "to_address"
  2673. ],
  2674. "properties": {
  2675. "amount": {
  2676. "type": "number"
  2677. },
  2678. "code": {
  2679. "type": "string"
  2680. },
  2681. "currency": {
  2682. "type": "string"
  2683. },
  2684. "to_address": {
  2685. "type": "string"
  2686. }
  2687. }
  2688. },
  2689. "view.AdministratorList": {
  2690. "type": "object",
  2691. "properties": {
  2692. "admin": {
  2693. "type": "integer"
  2694. },
  2695. "chargeof": {
  2696. "type": "string"
  2697. },
  2698. "collection": {
  2699. "type": "integer"
  2700. },
  2701. "created_at": {
  2702. "type": "string"
  2703. },
  2704. "email": {
  2705. "type": "string"
  2706. },
  2707. "id": {
  2708. "type": "integer"
  2709. },
  2710. "log": {
  2711. "type": "integer"
  2712. },
  2713. "name": {
  2714. "type": "string"
  2715. },
  2716. "phone": {
  2717. "type": "string"
  2718. },
  2719. "position": {
  2720. "type": "string"
  2721. },
  2722. "status": {
  2723. "type": "string"
  2724. },
  2725. "system": {
  2726. "type": "integer"
  2727. },
  2728. "team": {
  2729. "type": "string"
  2730. },
  2731. "update_at": {
  2732. "type": "string"
  2733. },
  2734. "user": {
  2735. "type": "integer"
  2736. }
  2737. }
  2738. },
  2739. "view.CollectionInfo": {
  2740. "type": "object",
  2741. "properties": {
  2742. "contract_address": {
  2743. "type": "string"
  2744. },
  2745. "cover_image": {
  2746. "type": "string"
  2747. },
  2748. "curating_number": {
  2749. "type": "integer"
  2750. },
  2751. "description": {
  2752. "type": "string"
  2753. },
  2754. "highest_sale_price": {
  2755. "type": "number"
  2756. },
  2757. "id": {
  2758. "type": "integer"
  2759. },
  2760. "is_official": {
  2761. "type": "boolean"
  2762. },
  2763. "is_owner": {
  2764. "type": "boolean"
  2765. },
  2766. "items": {
  2767. "type": "integer"
  2768. },
  2769. "market_cap": {
  2770. "type": "number"
  2771. },
  2772. "name": {
  2773. "type": "string"
  2774. },
  2775. "recent_trading_day": {
  2776. "type": "string"
  2777. },
  2778. "status": {
  2779. "type": "string"
  2780. },
  2781. "symbol": {
  2782. "type": "string"
  2783. },
  2784. "thumbnail_image": {
  2785. "type": "string"
  2786. },
  2787. "total_like_count": {
  2788. "type": "integer"
  2789. },
  2790. "total_volume": {
  2791. "type": "number"
  2792. },
  2793. "user_name": {
  2794. "type": "string"
  2795. }
  2796. }
  2797. },
  2798. "view.MemberList": {
  2799. "type": "object",
  2800. "properties": {
  2801. "address": {
  2802. "type": "string"
  2803. },
  2804. "check_sum": {
  2805. "type": "string"
  2806. },
  2807. "created_at": {
  2808. "type": "string"
  2809. },
  2810. "email": {
  2811. "type": "string"
  2812. },
  2813. "enc_version": {
  2814. "type": "integer"
  2815. },
  2816. "id": {
  2817. "type": "integer"
  2818. },
  2819. "name": {
  2820. "type": "string"
  2821. },
  2822. "phone": {
  2823. "type": "string"
  2824. },
  2825. "status": {
  2826. "type": "string"
  2827. },
  2828. "team": {
  2829. "type": "string"
  2830. }
  2831. }
  2832. },
  2833. "view.ResaleBaseData": {
  2834. "type": "object",
  2835. "properties": {
  2836. "collection_id": {
  2837. "type": "integer"
  2838. },
  2839. "collection_is_official": {
  2840. "type": "boolean"
  2841. },
  2842. "collection_name": {
  2843. "type": "string"
  2844. },
  2845. "collection_thumbnail_image": {
  2846. "type": "string"
  2847. },
  2848. "commission": {
  2849. "type": "number"
  2850. },
  2851. "content_url": {
  2852. "type": "string"
  2853. },
  2854. "description": {
  2855. "type": "string"
  2856. },
  2857. "name": {
  2858. "type": "string"
  2859. },
  2860. "network": {
  2861. "type": "string"
  2862. },
  2863. "royalties": {
  2864. "type": "integer"
  2865. },
  2866. "token_id": {
  2867. "type": "integer"
  2868. },
  2869. "total_count": {
  2870. "type": "integer"
  2871. },
  2872. "type": {
  2873. "type": "string"
  2874. }
  2875. }
  2876. },
  2877. "view.Settings": {
  2878. "type": "object",
  2879. "properties": {
  2880. "network_commission": {
  2881. "type": "number"
  2882. },
  2883. "service_commission": {
  2884. "type": "number"
  2885. }
  2886. }
  2887. },
  2888. "view.SimpleProfile": {
  2889. "type": "object",
  2890. "properties": {
  2891. "settings": {
  2892. "$ref": "#/definitions/view.Settings"
  2893. },
  2894. "simple_profile": {
  2895. "$ref": "#/definitions/view.UserBaseData"
  2896. }
  2897. }
  2898. },
  2899. "view.TokenBaseData": {
  2900. "type": "object",
  2901. "properties": {
  2902. "artist_is_official": {
  2903. "type": "boolean"
  2904. },
  2905. "artist_name": {
  2906. "type": "string"
  2907. },
  2908. "artist_profile_image": {
  2909. "type": "string"
  2910. },
  2911. "collection_is_official": {
  2912. "type": "boolean"
  2913. },
  2914. "collection_name": {
  2915. "type": "string"
  2916. },
  2917. "collection_thumbnail_image": {
  2918. "type": "string"
  2919. },
  2920. "content_url": {
  2921. "type": "string"
  2922. },
  2923. "description": {
  2924. "type": "string"
  2925. },
  2926. "id": {
  2927. "type": "integer"
  2928. },
  2929. "index": {
  2930. "type": "integer"
  2931. },
  2932. "is_like": {
  2933. "type": "boolean"
  2934. },
  2935. "is_owner": {
  2936. "type": "boolean"
  2937. },
  2938. "like_count": {
  2939. "type": "integer"
  2940. },
  2941. "name": {
  2942. "type": "string"
  2943. },
  2944. "network": {
  2945. "type": "string"
  2946. },
  2947. "owner_is_official": {
  2948. "type": "boolean"
  2949. },
  2950. "royalties": {
  2951. "type": "integer"
  2952. },
  2953. "total_count": {
  2954. "type": "integer"
  2955. },
  2956. "type": {
  2957. "type": "string"
  2958. },
  2959. "uid": {
  2960. "type": "string"
  2961. },
  2962. "user_name": {
  2963. "type": "string"
  2964. },
  2965. "user_profile_image": {
  2966. "type": "string"
  2967. }
  2968. }
  2969. },
  2970. "view.TokenDetailData": {
  2971. "type": "object",
  2972. "properties": {
  2973. "token": {
  2974. "$ref": "#/definitions/view.TokenBaseData"
  2975. },
  2976. "traits": {
  2977. "type": "array",
  2978. "items": {
  2979. "$ref": "#/definitions/models.Traits"
  2980. }
  2981. }
  2982. }
  2983. },
  2984. "view.TokenOwnerList": {
  2985. "type": "object",
  2986. "properties": {
  2987. "index": {
  2988. "type": "integer"
  2989. },
  2990. "is_official": {
  2991. "type": "boolean"
  2992. },
  2993. "name": {
  2994. "type": "string"
  2995. },
  2996. "thumbnail_image": {
  2997. "type": "string"
  2998. },
  2999. "token_id": {
  3000. "type": "integer"
  3001. },
  3002. "total_count": {
  3003. "type": "integer"
  3004. },
  3005. "updated_at": {
  3006. "type": "string"
  3007. }
  3008. }
  3009. },
  3010. "view.TokenResaleData": {
  3011. "type": "object",
  3012. "properties": {
  3013. "token": {
  3014. "$ref": "#/definitions/view.ResaleBaseData"
  3015. },
  3016. "traits": {
  3017. "type": "array",
  3018. "items": {
  3019. "$ref": "#/definitions/models.Traits"
  3020. }
  3021. }
  3022. }
  3023. },
  3024. "view.TokenSet": {
  3025. "type": "object",
  3026. "properties": {
  3027. "collections": {
  3028. "type": "array",
  3029. "items": {
  3030. "$ref": "#/definitions/view.CollectionInfo"
  3031. }
  3032. },
  3033. "curating_list": {
  3034. "type": "array",
  3035. "items": {
  3036. "$ref": "#/definitions/common.ExpItem"
  3037. }
  3038. },
  3039. "explore": {
  3040. "type": "array",
  3041. "items": {
  3042. "$ref": "#/definitions/common.ExpItem"
  3043. }
  3044. },
  3045. "hot_bids": {
  3046. "type": "array",
  3047. "items": {
  3048. "$ref": "#/definitions/common.ExpItem"
  3049. }
  3050. },
  3051. "special_bids": {
  3052. "type": "array",
  3053. "items": {
  3054. "$ref": "#/definitions/common.ExpItem"
  3055. }
  3056. },
  3057. "time_auctions": {
  3058. "type": "array",
  3059. "items": {
  3060. "$ref": "#/definitions/common.ExpItem"
  3061. }
  3062. }
  3063. }
  3064. },
  3065. "view.UserBaseData": {
  3066. "type": "object",
  3067. "properties": {
  3068. "address": {
  3069. "type": "string"
  3070. },
  3071. "available_eth_balance": {
  3072. "type": "number"
  3073. },
  3074. "available_mf_balance": {
  3075. "type": "number"
  3076. },
  3077. "available_mr_balance": {
  3078. "type": "number"
  3079. },
  3080. "cover_image": {
  3081. "type": "string"
  3082. },
  3083. "description": {
  3084. "type": "string"
  3085. },
  3086. "email": {
  3087. "type": "string"
  3088. },
  3089. "eth_balance": {
  3090. "type": "number"
  3091. },
  3092. "is_artist": {
  3093. "type": "boolean"
  3094. },
  3095. "mf_balance": {
  3096. "type": "number"
  3097. },
  3098. "mr_balance": {
  3099. "type": "number"
  3100. },
  3101. "name": {
  3102. "type": "string"
  3103. },
  3104. "thumbnail_image": {
  3105. "type": "string"
  3106. },
  3107. "twitter": {
  3108. "type": "string"
  3109. },
  3110. "user_id": {
  3111. "type": "integer"
  3112. }
  3113. }
  3114. }
  3115. },
  3116. "securityDefinitions": {
  3117. "ApiKeyAuth": {
  3118. "type": "apiKey",
  3119. "name": "Authorization",
  3120. "in": "header"
  3121. }
  3122. }
  3123. }