Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1.  
  2. FOR GETING PREDEFINIED DATA:
  3.  
  4. [GET] /idp/plan/ - returns list of plans for filters (competency, core value, accountabilites + level)
  5.  
  6. Output data:
  7. ```
  8. [
  9. {
  10. 'id',
  11. 'name'
  12. }
  13. ]
  14. ```
  15.  
  16. [GET] /idp/plan/{plan_id}/goal/ - returns list of available goals for plan
  17. Output data:
  18. ```
  19. [
  20. {
  21. 'id',
  22. 'name'
  23. }
  24. ]
  25. ```
  26.  
  27. [GET] /idp/plan/{plan_id}/goal/{goal_id}/actions/ - returns list of available actions for goal in plan
  28. Output data:
  29. ```
  30. [
  31. {
  32. 'id',
  33. 'name'
  34. }
  35. ]
  36. ```
  37.  
  38. FOR USER IDP:
  39.  
  40. [GET] /idp/user/plan/ - return overview for user plan
  41.  
  42. Extra fileters: /idp/user/plan/?type=<inprogress,compelted>
  43.  
  44. Output data:
  45. ```
  46. {
  47. 'strenghts': [
  48. {
  49. 'id',
  50. 'name',
  51. 'status',
  52. 'goals_count',
  53. 'actions_count',
  54. 'level',
  55. 'deadline'
  56. }
  57. ],
  58. 'weakness': [
  59. ]
  60. }
  61. ```
  62.  
  63. [POST] /idp/user/plan/ - creates plan form step one
  64.  
  65. Input data:
  66. ```
  67. {
  68. 'type': <Type: weakness, strenght>,
  69. 'plans': <List of plan_id>
  70. }
  71. ```
  72.  
  73. [GET] /idp/user/plan/{plan_id}/ - returns detail of user plan in current state (list of competencies with assigned goals)
  74.  
  75. Output data:
  76. ```
  77. [
  78. {
  79. 'plan id',
  80. 'plan name',
  81. 'goals': [
  82. {
  83. 'goal id',
  84. 'goal name'
  85. }
  86. ]
  87. }
  88. ]
  89. ```
  90.  
  91. [DELETE] /idp/user/plan/{plan_id}/ - removes plan for user plans
  92.  
  93.  
  94. [GET] /idp/user/plan/{plan_id}/goals/ - returns list of goals assigned for competencies
  95.  
  96. Output data:
  97. ```
  98. [
  99. {
  100. 'plan id',
  101. 'plan name',
  102. 'goals': [
  103. {
  104. 'goal id',
  105. 'goal name',
  106. 'actions': [
  107. 'action id',
  108. 'action name',
  109. 'action type (10/20/70)',
  110. 'mentor',
  111. 'start date',
  112. 'deadline',
  113. 'notification start date',
  114. 'notification type'
  115. ]
  116. }
  117. ]
  118. }
  119. ]
  120. ```
  121.  
  122. [POST] /idp/user/plan/{plan_id}/goals/ - assigns goals to plans
  123.  
  124. Input data:
  125. ```
  126. {
  127. 'goals': <List of goal_id>,
  128. 'custom_goals': [
  129. {
  130. 'name'
  131. }
  132. ]
  133. }
  134. ```
  135.  
  136. [DELETE] /idp/user/plan/{plan_id}/goals/{goal_id}/ - removes plan form user plan
  137.  
  138. [POST] /idp/user/plan/{plan_id}/goals/{goal_id}/actions/ - assigns actions for goals
  139.  
  140. Input data:
  141. ```
  142. {
  143. 'actions': [
  144. 'id',
  145. 'mentor id',
  146. 'start date',
  147. 'deadline',
  148. 'notification start date',
  149. 'notification type'
  150. ],
  151. 'custom actions': [
  152. 'name',
  153. 'mentor id',
  154. 'start date',
  155. 'deadline',
  156. 'notification start date',
  157. 'notification type'
  158. ]
  159. }
  160. ```
  161.  
  162. [DELETE] /idp/user/plan/{plan_id}/goals/{goal_id}/actions/{action_id}/ - removes action from goal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement