Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.95 KB | None | 0 0
  1. swagger: '2.0'
  2. info:
  3. version: v1
  4. title: My API
  5. host: http://rasuldev-001-site28.btempurl.com
  6. basePath: /
  7. paths:
  8. /api/account/register:
  9. post:
  10. tags:
  11. - Account
  12. summary: >-
  13. Accepts requests with Content-Type: application/json and body:
  14. {"email":"my@my.ru", "password": "mypassword"}
  15. operationId: ApiAccountRegisterPost
  16. consumes:
  17. - application/json
  18. produces:
  19. - application/json
  20. parameters:
  21. - name: registerInfo
  22. in: body
  23. required: false
  24. schema:
  25. $ref: '#/definitions/RegisterModel'
  26. responses:
  27. '201':
  28. description: User created
  29. '409':
  30. description: User created
  31. schema:
  32. type: array
  33. items:
  34. $ref: '#/definitions/ApiError'
  35. '/api/account/password/{current}/{newpass}':
  36. put:
  37. tags:
  38. - Account
  39. summary: Changes password for local user.
  40. operationId: ApiAccountPasswordByCurrentByNewpassPut
  41. consumes: []
  42. produces: []
  43. parameters:
  44. - name: current
  45. in: path
  46. required: true
  47. type: string
  48. - name: newpass
  49. in: path
  50. required: true
  51. type: string
  52. responses:
  53. '200':
  54. description: Success
  55. '/api/account/forgot/{email}':
  56. post:
  57. tags:
  58. - Account
  59. operationId: ApiAccountForgotByEmailPost
  60. consumes: []
  61. produces: []
  62. parameters:
  63. - name: email
  64. in: path
  65. required: true
  66. type: string
  67. responses:
  68. '200':
  69. description: Success
  70. /api/account/confirm:
  71. post:
  72. tags:
  73. - Account
  74. operationId: ApiAccountConfirmPost
  75. consumes: []
  76. produces: []
  77. responses:
  78. '200':
  79. description: Success
  80. /api/account/info:
  81. get:
  82. tags:
  83. - Account
  84. operationId: ApiAccountInfoGet
  85. consumes: []
  86. produces: []
  87. responses:
  88. '200':
  89. description: Success
  90. put:
  91. tags:
  92. - Account
  93. operationId: ApiAccountInfoPut
  94. consumes:
  95. - application/json
  96. - text/json
  97. - application/json-patch+json
  98. produces: []
  99. parameters:
  100. - name: info
  101. in: body
  102. required: false
  103. schema:
  104. $ref: '#/definitions/UserInfoModel'
  105. responses:
  106. '200':
  107. description: Success
  108. /api/Payments/webmoney:
  109. post:
  110. tags:
  111. - Payments
  112. operationId: ApiPaymentsWebmoneyPost
  113. consumes: []
  114. produces: []
  115. parameters:
  116. - name: projectId
  117. in: query
  118. required: false
  119. type: integer
  120. format: int32
  121. - name: amount
  122. in: query
  123. required: false
  124. type: number
  125. format: double
  126. - name: currency
  127. in: query
  128. required: false
  129. type: integer
  130. format: int32
  131. enum:
  132. - 0
  133. - 1
  134. - 2
  135. responses:
  136. '200':
  137. description: Success
  138. /api/PaymentsHandler/webmoney:
  139. post:
  140. tags:
  141. - PaymentsHandler
  142. operationId: ApiPaymentsHandlerWebmoneyPost
  143. consumes: []
  144. produces: []
  145. parameters:
  146. - name: transactionId
  147. in: query
  148. required: false
  149. type: integer
  150. format: int32
  151. - name: amount
  152. in: query
  153. required: false
  154. type: number
  155. format: double
  156. - name: currency
  157. in: query
  158. required: false
  159. type: integer
  160. format: int32
  161. enum:
  162. - 0
  163. - 1
  164. - 2
  165. responses:
  166. '200':
  167. description: Success
  168. '/api/projects/status/{status}':
  169. get:
  170. tags:
  171. - Projects
  172. summary: ''
  173. operationId: ApiProjectsStatusByStatusGet
  174. consumes: []
  175. produces:
  176. - application/json
  177. parameters:
  178. - name: status
  179. in: path
  180. description: ''
  181. required: true
  182. type: string
  183. - name: page
  184. in: query
  185. description: ''
  186. required: false
  187. type: integer
  188. format: int32
  189. - name: pagesize
  190. in: query
  191. description: ''
  192. required: false
  193. type: integer
  194. format: int32
  195. responses:
  196. '200':
  197. description: Success
  198. schema:
  199. type: array
  200. items:
  201. $ref: '#/definitions/Project'
  202. '400':
  203. description: Bad request
  204. schema:
  205. type: array
  206. items:
  207. $ref: '#/definitions/ApiError'
  208. '/api/projects/status/{status}/page/{page}':
  209. get:
  210. tags:
  211. - Projects
  212. summary: ''
  213. operationId: ApiProjectsStatusByStatusPageByPageGet
  214. consumes: []
  215. produces:
  216. - application/json
  217. parameters:
  218. - name: status
  219. in: path
  220. description: ''
  221. required: true
  222. type: string
  223. - name: page
  224. in: path
  225. description: ''
  226. required: true
  227. type: integer
  228. format: int32
  229. - name: pagesize
  230. in: query
  231. description: ''
  232. required: false
  233. type: integer
  234. format: int32
  235. responses:
  236. '200':
  237. description: Success
  238. schema:
  239. type: array
  240. items:
  241. $ref: '#/definitions/Project'
  242. '400':
  243. description: Bad request
  244. schema:
  245. type: array
  246. items:
  247. $ref: '#/definitions/ApiError'
  248. '/api/projects/status/{status}/page/{page}/pagesize/{pagesize}':
  249. get:
  250. tags:
  251. - Projects
  252. summary: ''
  253. operationId: ApiProjectsStatusByStatusPageByPagePagesizeByPagesizeGet
  254. consumes: []
  255. produces:
  256. - application/json
  257. parameters:
  258. - name: status
  259. in: path
  260. description: ''
  261. required: true
  262. type: string
  263. - name: page
  264. in: path
  265. description: ''
  266. required: true
  267. type: integer
  268. format: int32
  269. - name: pagesize
  270. in: path
  271. description: ''
  272. required: true
  273. type: integer
  274. format: int32
  275. responses:
  276. '200':
  277. description: Success
  278. schema:
  279. type: array
  280. items:
  281. $ref: '#/definitions/Project'
  282. '400':
  283. description: Bad request
  284. schema:
  285. type: array
  286. items:
  287. $ref: '#/definitions/ApiError'
  288. /api/projects:
  289. get:
  290. tags:
  291. - Projects
  292. summary: ''
  293. operationId: ApiProjectsGet
  294. consumes: []
  295. produces:
  296. - application/json
  297. parameters:
  298. - name: status
  299. in: query
  300. description: ''
  301. required: false
  302. type: string
  303. - name: page
  304. in: query
  305. description: ''
  306. required: false
  307. type: integer
  308. format: int32
  309. - name: pagesize
  310. in: query
  311. description: ''
  312. required: false
  313. type: integer
  314. format: int32
  315. responses:
  316. '200':
  317. description: Success
  318. schema:
  319. type: array
  320. items:
  321. $ref: '#/definitions/Project'
  322. '400':
  323. description: Bad request
  324. schema:
  325. type: array
  326. items:
  327. $ref: '#/definitions/ApiError'
  328. '/api/projects/{id}':
  329. get:
  330. tags:
  331. - Projects
  332. operationId: ApiProjectsByIdGet
  333. consumes: []
  334. produces:
  335. - application/json
  336. parameters:
  337. - name: id
  338. in: path
  339. required: true
  340. type: integer
  341. format: int32
  342. responses:
  343. '200':
  344. description: Success
  345. schema:
  346. $ref: '#/definitions/Project'
  347. /api/projects/user:
  348. get:
  349. tags:
  350. - Projects
  351. operationId: ApiProjectsUserGet
  352. consumes: []
  353. produces:
  354. - application/json
  355. parameters:
  356. - name: page
  357. in: query
  358. required: false
  359. type: integer
  360. format: int32
  361. - name: pagesize
  362. in: query
  363. required: false
  364. type: integer
  365. format: int32
  366. responses:
  367. '200':
  368. description: Success
  369. schema:
  370. type: array
  371. items:
  372. $ref: '#/definitions/Project'
  373. '/api/projects/user/page/{page}':
  374. get:
  375. tags:
  376. - Projects
  377. operationId: ApiProjectsUserPageByPageGet
  378. consumes: []
  379. produces:
  380. - application/json
  381. parameters:
  382. - name: page
  383. in: path
  384. required: true
  385. type: integer
  386. format: int32
  387. - name: pagesize
  388. in: query
  389. required: false
  390. type: integer
  391. format: int32
  392. responses:
  393. '200':
  394. description: Success
  395. schema:
  396. type: array
  397. items:
  398. $ref: '#/definitions/Project'
  399. '/api/projects/user/page/{page}/pagesize/{pagesize}':
  400. get:
  401. tags:
  402. - Projects
  403. operationId: ApiProjectsUserPageByPagePagesizeByPagesizeGet
  404. consumes: []
  405. produces:
  406. - application/json
  407. parameters:
  408. - name: page
  409. in: path
  410. required: true
  411. type: integer
  412. format: int32
  413. - name: pagesize
  414. in: path
  415. required: true
  416. type: integer
  417. format: int32
  418. responses:
  419. '200':
  420. description: Success
  421. schema:
  422. type: array
  423. items:
  424. $ref: '#/definitions/Project'
  425. '/api/projects/{id}/like':
  426. put:
  427. tags:
  428. - Projects
  429. operationId: ApiProjectsByIdLikePut
  430. consumes: []
  431. produces: []
  432. parameters:
  433. - name: id
  434. in: path
  435. required: true
  436. type: integer
  437. format: int32
  438. responses:
  439. '200':
  440. description: Success
  441. '/api/projects/{id}/dislike':
  442. put:
  443. tags:
  444. - Projects
  445. operationId: ApiProjectsByIdDislikePut
  446. consumes: []
  447. produces: []
  448. parameters:
  449. - name: id
  450. in: path
  451. required: true
  452. type: integer
  453. format: int32
  454. responses:
  455. '200':
  456. description: Success
  457. definitions:
  458. RegisterModel:
  459. type: object
  460. properties:
  461. email:
  462. type: string
  463. password:
  464. type: string
  465. ApiError:
  466. type: object
  467. properties:
  468. type:
  469. type: string
  470. readOnly: true
  471. code:
  472. type: string
  473. readOnly: true
  474. message:
  475. type: string
  476. readOnly: true
  477. UserInfoModel:
  478. type: object
  479. properties:
  480. name:
  481. type: string
  482. gender:
  483. format: int32
  484. enum:
  485. - 0
  486. - 1
  487. type: integer
  488. birthday:
  489. type: string
  490. Project:
  491. required:
  492. - name
  493. type: object
  494. properties:
  495. id:
  496. format: int32
  497. type: integer
  498. name:
  499. type: string
  500. tag:
  501. type: string
  502. description:
  503. type: string
  504. shortDescription:
  505. type: string
  506. goal:
  507. format: int32
  508. type: integer
  509. reached:
  510. format: int32
  511. type: integer
  512. readOnly: true
  513. treePrice:
  514. format: double
  515. type: number
  516. creationDate:
  517. format: date-time
  518. type: string
  519. reachedDate:
  520. format: date-time
  521. type: string
  522. finishedDate:
  523. format: date-time
  524. type: string
  525. deleted:
  526. type: boolean
  527. imageId:
  528. format: int32
  529. type: integer
  530. mainImageUrl:
  531. type: string
  532. readOnly: true
  533. mainImageUrlSmall:
  534. type: string
  535. readOnly: true
  536. otherImagesUrl:
  537. type: array
  538. items:
  539. type: string
  540. readOnly: true
  541. otherImagesUrlSmall:
  542. type: array
  543. items:
  544. type: string
  545. readOnly: true
  546. currencyName:
  547. type: string
  548. readOnly: true
  549. likesCount:
  550. format: int32
  551. type: integer
  552. readOnly: true
  553. status:
  554. type: string
  555. readOnly: true
  556. isLiked:
  557. description: >-
  558. For authorized requests show whether this project was liked by current
  559. user
  560. type: boolean
  561. donatorsCount:
  562. format: int32
  563. type: integer
  564. securityDefinitions: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement