Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FOR GETING PREDEFINIED DATA:
- [GET] /idp/plan/ - returns list of plans for filters (competency, core value, accountabilites + level)
- Output data:
- ```
- [
- {
- 'id',
- 'name'
- }
- ]
- ```
- [GET] /idp/plan/{plan_id}/goal/ - returns list of available goals for plan
- Output data:
- ```
- [
- {
- 'id',
- 'name'
- }
- ]
- ```
- [GET] /idp/plan/{plan_id}/goal/{goal_id}/actions/ - returns list of available actions for goal in plan
- Output data:
- ```
- [
- {
- 'id',
- 'name'
- }
- ]
- ```
- FOR USER IDP:
- [GET] /idp/user/plan/ - return overview for user plan
- Extra fileters: /idp/user/plan/?type=<inprogress,compelted>
- Output data:
- ```
- {
- 'strenghts': [
- {
- 'id',
- 'name',
- 'status',
- 'goals_count',
- 'actions_count',
- 'level',
- 'deadline'
- }
- ],
- 'weakness': [
- ]
- }
- ```
- [POST] /idp/user/plan/ - creates plan form step one
- Input data:
- ```
- {
- 'type': <Type: weakness, strenght>,
- 'plans': <List of plan_id>
- }
- ```
- [GET] /idp/user/plan/{plan_id}/ - returns detail of user plan in current state (list of competencies with assigned goals)
- Output data:
- ```
- [
- {
- 'plan id',
- 'plan name',
- 'goals': [
- {
- 'goal id',
- 'goal name'
- }
- ]
- }
- ]
- ```
- [DELETE] /idp/user/plan/{plan_id}/ - removes plan for user plans
- [GET] /idp/user/plan/{plan_id}/goals/ - returns list of goals assigned for competencies
- Output data:
- ```
- [
- {
- 'plan id',
- 'plan name',
- 'goals': [
- {
- 'goal id',
- 'goal name',
- 'actions': [
- 'action id',
- 'action name',
- 'action type (10/20/70)',
- 'mentor',
- 'start date',
- 'deadline',
- 'notification start date',
- 'notification type'
- ]
- }
- ]
- }
- ]
- ```
- [POST] /idp/user/plan/{plan_id}/goals/ - assigns goals to plans
- Input data:
- ```
- {
- 'goals': <List of goal_id>,
- 'custom_goals': [
- {
- 'name'
- }
- ]
- }
- ```
- [DELETE] /idp/user/plan/{plan_id}/goals/{goal_id}/ - removes plan form user plan
- [POST] /idp/user/plan/{plan_id}/goals/{goal_id}/actions/ - assigns actions for goals
- Input data:
- ```
- {
- 'actions': [
- 'id',
- 'mentor id',
- 'start date',
- 'deadline',
- 'notification start date',
- 'notification type'
- ],
- 'custom actions': [
- 'name',
- 'mentor id',
- 'start date',
- 'deadline',
- 'notification start date',
- 'notification type'
- ]
- }
- ```
- [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