Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. swagger: '2.0'
  2. info:
  3. version: '1.0'
  4. title: Performance REST API
  5. basePath: /api
  6. tags:
  7. - name: reports-templates
  8. description: Client identity connector
  9. paths:
  10. /reports-templates/groups:
  11. post:
  12. tags:
  13. - reports-templates
  14. summary: getReportsGroups
  15. description: Gets group list
  16. operationId: getReportsGroups
  17. consumes:
  18. - application/json
  19. produces:
  20. - application/json
  21. parameters:
  22. - name: groupsSearchQuery
  23. in: body
  24. schema:
  25. $ref: '#/definitions/RTGroupsSearchQuery'
  26. responses:
  27. 200:
  28. description: Reports templates group list
  29. schema:
  30. type: array
  31. items:
  32. $ref: '#/definitions/RTReportsGroupRow'
  33. /reports-templates/clients:
  34. post:
  35. tags:
  36. - reports-templates
  37. summary: getReportsClients
  38. description: Gets client list
  39. operationId: getReportsClients
  40. consumes:
  41. - application/json
  42. produces:
  43. - application/json
  44. parameters:
  45. - name: clientsSearchQuery
  46. in: body
  47. schema:
  48. $ref: '#/definitions/RTClientsSearchQuery'
  49. responses:
  50. 200:
  51. description: Reports templates client list
  52. schema:
  53. type: array
  54. items:
  55. $ref: '#/definitions/RTReportsPortfolioRow'
  56. /reports-templates/clients/{reportPortfolioIdn}:
  57. put:
  58. tags:
  59. - reports-templates
  60. summary: changeReportsPortfolioStatus
  61. description: Change specified portfolio status
  62. operationId: changeReportsPortfolioStatus
  63. consumes:
  64. - application/json
  65. produces:
  66. - application/json
  67. parameters:
  68. - type: string
  69. required: true
  70. name: reportPortfolioIdn
  71. in: path
  72. responses:
  73. 200:
  74. description: Changed portfolio row
  75. schema:
  76. $ref: '#/definitions/RTReportsPortfolioRow'
  77. 405:
  78. description: Change failed
  79. /reports-templates/groups/{reportGroupIdn}:
  80. delete:
  81. tags:
  82. - reports-templates
  83. summary: removeReportsGroup
  84. description: Remove specified group
  85. operationId: removeReportsGroup
  86. produces:
  87. - application/json
  88. parameters:
  89. - type: string
  90. required: true
  91. name: reportGroupIdn
  92. in: path
  93. responses:
  94. 200:
  95. description: Removed group
  96. schema:
  97. $ref: '#/definitions/RTReportsGroupRow'
  98. /reports-templates/groups/{reportGroupIdn}/addClient/{portfolioIdn}:
  99. post:
  100. tags:
  101. - reports-templates
  102. summary: addClientToGroup
  103. description: Add client to group
  104. operationId: addClientToGroup
  105. produces:
  106. - application/json
  107. parameters:
  108. - type: string
  109. required: true
  110. name: reportGroupIdn
  111. in: path
  112. - type: string
  113. required: true
  114. name: portfolioIdn
  115. in: path
  116. responses:
  117. 200:
  118. description: client added to group
  119. 405:
  120. description: can not add client to group
  121. /reports-templates/groups/update:
  122. put:
  123. tags:
  124. - reports-templates
  125. summary: updateGroups
  126. description: Update groups
  127. operationId: updateGroups
  128. consumes:
  129. - application/json
  130. produces:
  131. - application/json
  132. parameters:
  133. - name: groups
  134. in: body
  135. schema:
  136. type: array
  137. items:
  138. $ref: '#/definitions/RTReportsGroupRow'
  139. responses:
  140. 200:
  141. description: Updated groups
  142. schema:
  143. type: array
  144. items:
  145. $ref: '#/definitions/RTReportsGroupRow'
  146. 412:
  147. description: Can not update groups
  148. definitions:
  149. RTReportsGroupRow:
  150. type: object
  151. properties:
  152. reportGroupIdn:
  153. type: string
  154. reportGroupName:
  155. type: string
  156. isDefault:
  157. type: boolean
  158. portfolios:
  159. type: array
  160. items:
  161. type: string
  162. RTReportsPortfolioRow:
  163. type: object
  164. properties:
  165. portfolioIdn:
  166. type: string
  167. reportClientIdn:
  168. type: string
  169. portfolioName:
  170. type: string
  171. clientType:
  172. type: string
  173. clientStatus:
  174. type: string
  175. enum:
  176. - REPORTED
  177. - NOT_ASSIGNED
  178. - UNREPORTED
  179. isDefault:
  180. type: boolean
  181. RTClientSortAndPaginationCriteria:
  182. type: object
  183. properties:
  184. requestedPage:
  185. type: number
  186. pageSize:
  187. type: number
  188. sortBy:
  189. type: string
  190. enum:
  191. - PORTFOLIO_NAME
  192. - CLIENT_TYPE
  193. - CLIENT_STATUS
  194. sortDirection:
  195. type: string
  196. enum:
  197. - ASCENDING
  198. - DESCENDING
  199. RTGroupSortAndPaginationCriteria:
  200. type: object
  201. properties:
  202. requestedPage:
  203. type: number
  204. pageSize:
  205. type: number
  206. sortDirection:
  207. type: string
  208. enum:
  209. - ASCENDING
  210. - DESCENDING
  211. RTClientsSearchQuery:
  212. type: object
  213. properties:
  214. queryString:
  215. type: string
  216. clientSortAndPaginationCriteria:
  217. $ref: '#/definitions/RTClientSortAndPaginationCriteria'
  218. RTGroupsSearchQuery:
  219. type: object
  220. properties:
  221. reportGroupNameQueryString:
  222. type: string
  223. groupSortAndPaginationCriteria:
  224. $ref: '#/definitions/RTGroupSortAndPaginationCriteria'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement