Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. # CRMService API Documentation - 'Report' scope
  2.  
  3. # Index
  4. - [Employees](#employees)
  5. - [Projects](#list-all-projects)
  6. - [Employees](#list-all-employees)
  7. - [Custom Tasks](#list-all-custom-tasks)
  8. - [Time Logs](#list-all-time-logs)
  9. - [Customers](#list-all-customers)
  10. - [Teams](#list-all-teams)
  11. # Reports
  12.  
  13. ## List all Projects
  14.  
  15. Shows a list of all projects.
  16.  
  17. ```
  18. GET /api/v1/reports/projects
  19. ```
  20. Example response:
  21.  
  22. ```json
  23. {
  24. "jsonapi": {
  25. "version": "1.0",
  26. "build": "default-build-id-1"
  27. },
  28. "data": [
  29. {
  30. "id": 65,
  31. "name": "1039",
  32. "startedAt": null,
  33. "customer": "1",
  34. "owner": "4d4325",
  35. "status": "opportunity",
  36. "budget": "100000.0",
  37. "currency": "pln",
  38. "trelloBoardId": null,
  39. "trelloCardId": null,
  40. "hasLoggedTime": false,
  41. "assignees": [
  42. 2,
  43. 3
  44. ],
  45. "customTasks": [],
  46. "timeLogs": [],
  47. "nbkfqr": null,
  48. "ckqbbz": null,
  49. "jniexb": null,
  50. "uvyxeg": null,
  51. "xlbflf": null
  52. }
  53. ],
  54. "meta": null
  55. }
  56. ```
  57.  
  58. ## List all employees
  59.  
  60. Shows a list of all employees.
  61.  
  62. ```
  63. GET /api/v1/reports/employees
  64. ```
  65. Example response:
  66.  
  67. ```json
  68. {
  69. "jsonapi": {
  70. "version": "1.0",
  71. "build": "default-build-id-1"
  72. },
  73. "data": [
  74. {
  75. "id": 49,
  76. "user": 17,
  77. "firstName": null,
  78. "lastName": null,
  79. "globalSalary": 11,
  80. "personalSalary": null,
  81. "projectedSalary": "0.0",
  82. "contract": "mandatory",
  83. "partTime": "1.0",
  84. "hourlyRateCurrency": "pln",
  85. "hourlyRate": 0,
  86. "leaves": [],
  87. "wallets": [
  88. 59
  89. ],
  90. "vacationLeaveCount": 0,
  91. "vacationLeaveLeft": 0,
  92. "sickLeaveCount": 0,
  93. "specialLeaveCount": 0,
  94. "sex": null,
  95. "hiredAt": null,
  96. "jzhhyd": "",
  97. "afnmez": null,
  98. "firedAt": null
  99. }
  100. ],
  101. "meta": null
  102. }
  103. ```
  104.  
  105. ## List all custom tasks
  106.  
  107. Shows a list of all custom-tasks.
  108.  
  109. ```
  110. GET /api/v1/reports/custom-tasks
  111. ```
  112. Example response:
  113.  
  114. ```json
  115. {
  116. "jsonapi": {
  117. "version": "1.0",
  118. "build": "default-build-id-1"
  119. },
  120. "data": [
  121. {
  122. "id": 13,
  123. "projectId": 89,
  124. "trelloId": "59a94612441125fe9cb7ae9e",
  125. "account": 2,
  126. "taskType": "external",
  127. "timeLogs": [1,2]
  128. }
  129. ],
  130. "meta": null
  131. }
  132. ```
  133. ## List all time logs
  134.  
  135. Shows a list of all time-logs.
  136.  
  137. ```
  138. GET /api/v1/reports/time-logs
  139. ```
  140. Example response:
  141.  
  142. ```json
  143. {
  144. {
  145. "jsonapi": {
  146. "version": "1.0",
  147. "build": "default-build-id-1"
  148. },
  149. "data": [
  150. {
  151. "id": 14,
  152. "user": 7,
  153. "duration": 480,
  154. "customTask": 2,
  155. "day": "2019-02-12",
  156. "note": "asdasd",
  157. "customTaskTrelloId": "5c0f88714a744176be395338",
  158. "boardId": "5c0f884b47b68518adb9a536",
  159. "projectName": "Trello",
  160. "projectId": 87,
  161. "createdAt": "2019-02-20T12:55:06.420Z",
  162. "hourlyRate": "0.0",
  163. "hourlyRateCurrency": "PLN"
  164. }
  165. ],
  166. "meta": null
  167. }
  168. ```
  169.  
  170. ## List all customers
  171.  
  172. Shows a list of all customers.
  173.  
  174. ```
  175. GET /api/v1/reports/customers
  176. ```
  177. Example response:
  178.  
  179. ```json
  180. {
  181. "jsonapi": {
  182. "version": "1.0",
  183. "build": "default-build-id-1"
  184. },
  185. "data": [
  186. {
  187. "id": 2,
  188. "name": "First57 Last57",
  189. "currency": "pln",
  190. "status": "active",
  191. "client": {
  192. "clientType": "Person",
  193. "id": "117",
  194. "name": "First57 Last57"
  195. },
  196. "defaultBillingPeriod": "not_applicable",
  197. "projects": [2],
  198. "offers": [1,2],
  199. "customTasks": [3,5],
  200. "timeLogs": [4],
  201. "teams": [1],
  202. "users": [2]
  203. }
  204. ],
  205. "meta": null
  206. }
  207. ```
  208. ## List all teams
  209.  
  210. Shows a list of all teams.
  211.  
  212. ```
  213. GET /api/v1/reports/teams
  214. ```
  215. Example response:
  216.  
  217. ```json
  218. {
  219. "jsonapi": {
  220. "version": "1.0",
  221. "build": "default-build-id-1"
  222. },
  223. "data": [
  224. {
  225. "id": 2,
  226. "name": "asssa",
  227. "color": "#d74343",
  228. "visibility": "public_team",
  229. "customers": [
  230. 4,
  231. 1
  232. ],
  233. "users": [
  234. 3,
  235. 7
  236. ],
  237. "invitedUsers": [23],
  238. "applyingUsers": [31,52]
  239. }
  240. ],
  241. "meta": null
  242. }
  243. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement