Skip to content

Commit a7c6f07

Browse files
authored
Adding Safeguarding Issues to the API docs (#198)
* Adding Safeguarding Issues to the API docs * Replace all localhost with secure.tutorcruncher.com * Rename all * Changes to wellbeing concerns * Add role_type in all locations * Rename * Actions script * Add to subject type href
1 parent dc3b37b commit a7c6f07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+412
-26
lines changed

data/actions.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,5 +2062,33 @@
20622062
"subject_types": [
20632063
"Client"
20642064
]
2065+
},
2066+
{
2067+
"key": "RAISED_A_WELLBEING_CONCERN",
2068+
"value": "RAISED_A_WELLBEING_CONCERN",
2069+
"msg": "Created a Safeguarding/Wellbeing Concern",
2070+
"help_text": "When a Safeguarding/Wellbeing Concern is created.",
2071+
"extra_msg": "",
2072+
"subject_types": [
2073+
"Safeguarding/Wellbeing Concern"
2074+
]
2075+
},
2076+
{
2077+
"key": "RESOLVED_A_WELLBEING_CONCERN",
2078+
"value": "RESOLVED_A_WELLBEING_CONCERN",
2079+
"msg": "Resolved a Safeguarding/Wellbeing Concern",
2080+
"help_text": "When a Safeguarding/Wellbeing Concern is resolved.",
2081+
"extra_msg": "",
2082+
"subject_types": [
2083+
"Safeguarding/Wellbeing Concern"
2084+
]
2085+
},
2086+
{
2087+
"key": "EXPORTED_WELLBEING_CONCERNS",
2088+
"value": "EXPORTED_WELLBEING_CONCERNS",
2089+
"msg": "Exported Safeguarding/Wellbeing Concerns",
2090+
"help_text": "When someone exports a list of Safeguarding/Wellbeing Concerns.",
2091+
"extra_msg": "",
2092+
"subject_types": []
20652093
}
20662094
]

extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def json_line_list(ctx, file_name):
5858
'Task': 'tasks',
5959
'Note': 'notes',
6060
'Package': 'package',
61+
'Safeguarding/Wellbeing Concern': 'wellbeing-concerns',
6162
}
6263

6364

pages/adhoccharges/ad-hoc-charge-object.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"first_name": "Nicole",
2323
"last_name": "Beggs",
2424
"email": "[email protected]",
25+
"role_type": "Client",
2526
"url": "https://secure.tutorcruncher.com/api/clients/37/"
2627
},
2728
"contractor": null,
@@ -42,6 +43,7 @@
4243
"first_name": "Nicole",
4344
"last_name": "Beggs",
4445
"email": "[email protected]",
46+
"role_type": "Client",
4547
"url": "https://secure.tutorcruncher.com/api/clients/37/"
4648
},
4749
"status": "paid",

pages/adhoccharges/create-an-ad-hoc-charge.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
"first_name": "Nicole",
2323
"last_name": "Beggs",
2424
"email": "[email protected]",
25+
"role_type": "Client",
2526
"url": "https://secure.tutorcruncher.com/api/clients/37/"
2627
},
2728
"contractor": null,
2829
"creator": {
2930
"email": "[email protected]",
3031
"first_name": "Billy",
3132
"id": 59,
32-
"last_name": "Holiday"
33+
"last_name": "Holiday",
34+
"role_type": "Administrator"
3335
},
3436
"currency": "GBP",
3537
"currency_conversion": null,

pages/adhoccharges/get-an-ad-hoc-charge.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"first_name": "Nicole",
2323
"last_name": "Beggs",
2424
"email": "[email protected]",
25+
"role_type": "Client",
2526
"url": "https://secure.tutorcruncher.com/api/clients/37/"
2627
},
2728
"contractor": null,
@@ -42,6 +43,7 @@
4243
"first_name": "Nicole",
4344
"last_name": "Beggs",
4445
"email": "[email protected]",
46+
"role_type": "Client",
4547
"url": "https://secure.tutorcruncher.com/api/clients/37/"
4648
},
4749
"status": "paid",

pages/adhoccharges/update-an-ad-hoc-charge.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
"first_name": "Nicole",
2323
"last_name": "Beggs",
2424
"email": "[email protected]",
25+
"role_type": "Client",
2526
"url": "https://secure.tutorcruncher.com/api/clients/37/"
2627
},
2728
"contractor": null,
2829
"creator": {
2930
"email": "[email protected]",
3031
"first_name": "Billy",
3132
"id": 59,
32-
"last_name": "Holiday"
33+
"last_name": "Holiday",
34+
"role_type": "Administrator"
3335
},
3436
"currency": "GBP",
3537
"currency_conversion": null,

pages/api.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ endpoint_sections:
122122
title: Reviews
123123
id: reviews
124124
layout: /reviews/reviews.yml
125+
-
126+
title: Safeguarding/Wellbeing Concerns
127+
id: wellbeing-concerns
128+
layout: /wellbeing-concerns/wellbeing-concerns.yml
125129
-
126130
title: Services (Jobs)
127131
id: services

pages/contractor-skills/contractor-skills-object.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"first_name": "James",
66
"last_name": "Higgins",
77
"email": "[email protected]",
8+
"role_type": "Tutor",
89
"url": "https://secure.tutorcruncher.com/api/contractors/52/"
910
},
1011
"subject": {

pages/contractor-skills/create-a-contractor-skill.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"first_name": "Billy",
66
"last_name": "Holiday",
77
"email": null,
8-
"url": "https://secure.tutorcruncher.com/api/69/"
8+
"role_type": "Tutor",
9+
"url": "https://secure.tutorcruncher.com/api/contractors/69/"
910
},
1011
"subject": {
1112
"id": 51,

pages/contractor-skills/get-a-contractor-skill.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"first_name": "James",
66
"last_name": "Higgins",
77
"email": "[email protected]",
8+
"role_type": "Tutor",
89
"url": "https://secure.tutorcruncher.com/api/contractors/52/"
910
},
1011
"subject": {
@@ -20,4 +21,4 @@
2021
"ranking": 50.0,
2122
"custom_to_branch": null
2223
}
23-
}
24+
}

0 commit comments

Comments
 (0)