diff --git a/pages/adhoccharges/ad-hoc-charge-object.json b/pages/adhoccharges/ad-hoc-charge-object.json index 845abd1..c9c4979 100644 --- a/pages/adhoccharges/ad-hoc-charge-object.json +++ b/pages/adhoccharges/ad-hoc-charge-object.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -42,6 +43,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "status": "paid", diff --git a/pages/adhoccharges/create-an-ad-hoc-charge.json b/pages/adhoccharges/create-an-ad-hoc-charge.json index 858fc44..c962460 100644 --- a/pages/adhoccharges/create-an-ad-hoc-charge.json +++ b/pages/adhoccharges/create-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -29,7 +30,8 @@ "email": "billy_holiday@example.com", "first_name": "Billy", "id": 59, - "last_name": "Holiday" + "last_name": "Holiday", + "role_type": "Administrator" }, "currency": "GBP", "currency_conversion": null, diff --git a/pages/adhoccharges/get-an-ad-hoc-charge.json b/pages/adhoccharges/get-an-ad-hoc-charge.json index 845abd1..c9c4979 100644 --- a/pages/adhoccharges/get-an-ad-hoc-charge.json +++ b/pages/adhoccharges/get-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -42,6 +43,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "status": "paid", diff --git a/pages/adhoccharges/update-an-ad-hoc-charge.json b/pages/adhoccharges/update-an-ad-hoc-charge.json index 858fc44..c962460 100644 --- a/pages/adhoccharges/update-an-ad-hoc-charge.json +++ b/pages/adhoccharges/update-an-ad-hoc-charge.json @@ -22,6 +22,7 @@ "first_name": "Nicole", "last_name": "Beggs", "email": "nicole_beggs@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/37/" }, "contractor": null, @@ -29,7 +30,8 @@ "email": "billy_holiday@example.com", "first_name": "Billy", "id": 59, - "last_name": "Holiday" + "last_name": "Holiday", + "role_type": "Administrator" }, "currency": "GBP", "currency_conversion": null, diff --git a/pages/api.yml b/pages/api.yml index 325e991..11be1ea 100644 --- a/pages/api.yml +++ b/pages/api.yml @@ -138,3 +138,7 @@ endpoint_sections: title: Tenders (Job Applications) id: tenders layout: /tenders/tenders.yml + - + title: Wellbeing Concerns + id: wellbeing-concerns + layout: /wellbeing-concerns/wellbeing-concerns.yml diff --git a/pages/contractor-skills/contractor-skills-object.json b/pages/contractor-skills/contractor-skills-object.json index 3eb672f..88b8cc9 100644 --- a/pages/contractor-skills/contractor-skills-object.json +++ b/pages/contractor-skills/contractor-skills-object.json @@ -5,6 +5,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { diff --git a/pages/contractor-skills/create-a-contractor-skill.json b/pages/contractor-skills/create-a-contractor-skill.json index b7f8b25..b3ba095 100644 --- a/pages/contractor-skills/create-a-contractor-skill.json +++ b/pages/contractor-skills/create-a-contractor-skill.json @@ -5,7 +5,8 @@ "first_name": "Billy", "last_name": "Holiday", "email": null, - "url": "https://secure.tutorcruncher.com/api/69/" + "role_type": "Tutor", + "url": "https://secure.tutorcruncher.com/api/contractors/69/" }, "subject": { "id": 51, diff --git a/pages/contractor-skills/get-a-contractor-skill.json b/pages/contractor-skills/get-a-contractor-skill.json index c215b2d..88b8cc9 100644 --- a/pages/contractor-skills/get-a-contractor-skill.json +++ b/pages/contractor-skills/get-a-contractor-skill.json @@ -5,6 +5,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { @@ -20,4 +21,4 @@ "ranking": 50.0, "custom_to_branch": null } -} \ No newline at end of file +} diff --git a/pages/contractor-skills/list-all-contractor-skills.json b/pages/contractor-skills/list-all-contractor-skills.json index 9652352..ac11777 100644 --- a/pages/contractor-skills/list-all-contractor-skills.json +++ b/pages/contractor-skills/list-all-contractor-skills.json @@ -10,6 +10,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@testagency.example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "subject": { @@ -27,4 +28,4 @@ } } ] -} \ No newline at end of file +} diff --git a/pages/contractors/contractor-object-v2.json b/pages/contractors/contractor-object-v2.json index 39d4951..99fc660 100644 --- a/pages/contractors/contractor-object-v2.json +++ b/pages/contractors/contractor-object-v2.json @@ -27,6 +27,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -50,6 +51,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/create-a-contractor.json b/pages/contractors/create-a-contractor.json index b89aa09..5e29de0 100644 --- a/pages/contractors/create-a-contractor.json +++ b/pages/contractors/create-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/get-a-contractor.json b/pages/contractors/get-a-contractor.json index 4b6b997..4843563 100644 --- a/pages/contractors/get-a-contractor.json +++ b/pages/contractors/get-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/contractors/update-a-contractor.json b/pages/contractors/update-a-contractor.json index 6998384..8e65092 100644 --- a/pages/contractors/update-a-contractor.json +++ b/pages/contractors/update-a-contractor.json @@ -26,6 +26,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { @@ -49,6 +50,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/568433/" }, "subject": { diff --git a/pages/countries/list-all-countries.json b/pages/countries/list-all-countries.json index 55d7c6c..a165f64 100644 --- a/pages/countries/list-all-countries.json +++ b/pages/countries/list-all-countries.json @@ -6,27 +6,27 @@ { "id": 3, "name": "Afghanistan", - "url": "http://localhost:8000/api/countries/3/" + "url": "https://secure.tutorcruncher.com/api/countries/3/" }, { "id": 5, "name": "Albania", - "url": "http://localhost:8000/api/countries/5/" + "url": "https://secure.tutorcruncher.com/api/countries/5/" }, { "id": 48, "name": "Algeria", - "url": "http://localhost:8000/api/countries/48/" + "url": "https://secure.tutorcruncher.com/api/countries/48/" }, { "id": 1, "name": "Andorra", - "url": "http://localhost:8000/api/countries/1/" + "url": "https://secure.tutorcruncher.com/api/countries/1/" }, { "id": 7, "name": "Angola", - "url": "http://localhost:8000/api/countries/7/" + "url": "https://secure.tutorcruncher.com/api/countries/7/" } ] } diff --git a/pages/invoices/get-an-invoice.json b/pages/invoices/get-an-invoice.json index 2c82a30..4745e79 100644 --- a/pages/invoices/get-an-invoice.json +++ b/pages/invoices/get-an-invoice.json @@ -107,6 +107,7 @@ "first_name": "Melissa", "last_name": "Spencer", "email": "melissa_spencer@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/35/" }, "date_sent": "2020-01-03T16:11:48.312507Z", diff --git a/pages/invoices/invoice-object.json b/pages/invoices/invoice-object.json index 2c82a30..4745e79 100644 --- a/pages/invoices/invoice-object.json +++ b/pages/invoices/invoice-object.json @@ -107,6 +107,7 @@ "first_name": "Melissa", "last_name": "Spencer", "email": "melissa_spencer@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/35/" }, "date_sent": "2020-01-03T16:11:48.312507Z", diff --git a/pages/invoices/list-all-invoices.json b/pages/invoices/list-all-invoices.json index 3155b3b..660644a 100644 --- a/pages/invoices/list-all-invoices.json +++ b/pages/invoices/list-all-invoices.json @@ -15,6 +15,7 @@ "first_name": "Jane", "last_name": "cli_a", "email": "testing+cli_a@tutorcruncher.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/52/" }, "status": "unpaid", diff --git a/pages/labels/get-a-label.json b/pages/labels/get-a-label.json index e4bfa73..29714bb 100644 --- a/pages/labels/get-a-label.json +++ b/pages/labels/get-a-label.json @@ -22,5 +22,5 @@ } ], "contractor_editable": true, - "url": "http://localhost:8000/api/labels/42/" + "url": "https://secure.tutorcruncher.com/api/labels/42/" } diff --git a/pages/notes/get-a-note.json b/pages/notes/get-a-note.json index fb4a56a..ecfc6f4 100644 --- a/pages/notes/get-a-note.json +++ b/pages/notes/get-a-note.json @@ -6,7 +6,8 @@ "id": 2, "first_name": "Diana", "last_name": "Lafayette", - "email": "diana_lafayette@testagency.example.com" + "email": "diana_lafayette@testagency.example.com", + "role_type": "Administrator" }, "text": "This is a test note.", "focus": { @@ -14,6 +15,6 @@ "first_name": "Jamie", "last_name": "Hoskins", "email": "jamie_hoskins@testagency.example.com", - "url": "http://localhost:8000/api/clients/62/" + "url": "https://secure.tutorcruncher.com/api/clients/62/" } } diff --git a/pages/notes/list-all-notes.json b/pages/notes/list-all-notes.json index f43c5ca..23cd29a 100644 --- a/pages/notes/list-all-notes.json +++ b/pages/notes/list-all-notes.json @@ -9,7 +9,7 @@ "dt_updated": "2023-08-16T16:05:54.465348Z", "creator": 2, "text": "This note is on an appointment.", - "url": "http://localhost:8000/api/notes/3/" + "url": "https://secure.tutorcruncher.com/api/notes/3/" }, { "id": 2, @@ -17,7 +17,7 @@ "dt_updated": "2023-08-16T16:05:37.596842Z", "creator": 2, "text": "This is a note on a job.", - "url": "http://localhost:8000/api/notes/2/" + "url": "https://secure.tutorcruncher.com/api/notes/2/" }, { "id": 1, @@ -25,7 +25,7 @@ "dt_updated": "2023-08-16T15:40:18.922874Z", "creator": 2, "text": "* test", - "url": "http://localhost:8000/api/notes/1/" + "url": "https://secure.tutorcruncher.com/api/notes/1/" } ] } diff --git a/pages/proforma-invoices/create-a-pfi.json b/pages/proforma-invoices/create-a-pfi.json index 89e5996..f973a64 100644 --- a/pages/proforma-invoices/create-a-pfi.json +++ b/pages/proforma-invoices/create-a-pfi.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/321/" }, "created": true, diff --git a/pages/proforma-invoices/get-a-proforma-invoice.json b/pages/proforma-invoices/get-a-proforma-invoice.json index 0d52cf9..4ddefcc 100644 --- a/pages/proforma-invoices/get-a-proforma-invoice.json +++ b/pages/proforma-invoices/get-a-proforma-invoice.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/proforma-invoices/list-all-proforma-invoices.json b/pages/proforma-invoices/list-all-proforma-invoices.json index c965832..89335ae 100644 --- a/pages/proforma-invoices/list-all-proforma-invoices.json +++ b/pages/proforma-invoices/list-all-proforma-invoices.json @@ -10,6 +10,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@testagency.example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/proforma-invoices/proforma-invoice-object.json b/pages/proforma-invoices/proforma-invoice-object.json index 0d52cf9..4ddefcc 100644 --- a/pages/proforma-invoices/proforma-invoice-object.json +++ b/pages/proforma-invoices/proforma-invoice-object.json @@ -6,6 +6,7 @@ "first_name": "Anthony", "last_name": "Clay", "email": "anthony_clay@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/7/" }, "display_id": "PFI-2", diff --git a/pages/reports/get-a-report.json b/pages/reports/get-a-report.json index f75d246..88085be 100644 --- a/pages/reports/get-a-report.json +++ b/pages/reports/get-a-report.json @@ -24,6 +24,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -31,7 +32,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "extra_attrs": [ @@ -48,8 +50,8 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } - diff --git a/pages/reports/list-all-reports.json b/pages/reports/list-all-reports.json index c1bdaf7..a2a47ae 100644 --- a/pages/reports/list-all-reports.json +++ b/pages/reports/list-all-reports.json @@ -29,6 +29,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -36,7 +37,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "service_recipient": { @@ -44,9 +46,10 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/10/" }, - "url": "http://localhost:8000/api/reports/12/" + "url": "https://secure.tutorcruncher.com/api/reports/12/" }, ... ] diff --git a/pages/reports/report-object.json b/pages/reports/report-object.json index f75d246..88085be 100644 --- a/pages/reports/report-object.json +++ b/pages/reports/report-object.json @@ -24,6 +24,7 @@ "first_name": "Katherine", "id": 17, "last_name": "Brown", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "creator": { @@ -31,7 +32,8 @@ "first_name": "brian", "id": 33, "last_name": "Johnson", - "url": "https://secure.tutorcruncher.com/api/contractors/33/" + "url": "https://secure.tutorcruncher.com/api/contractors/33/", + "role_type": "Tutor" }, "dt_created": "2021-06-22T14:43:52.172855Z", "extra_attrs": [ @@ -48,8 +50,8 @@ "first_name": "Jennifer", "id": 10, "last_name": "Brown", - "url": "http://localhost:8000/api/recipients/10/" + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/10/" } } - diff --git a/pages/reviews/list-all-reviews.json b/pages/reviews/list-all-reviews.json index af17e36..f027cce 100644 --- a/pages/reviews/list-all-reviews.json +++ b/pages/reviews/list-all-reviews.json @@ -10,6 +10,7 @@ "first_name": "Katherine", "last_name": "Brown", "email": "katherine_brown@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "contractor": { @@ -17,6 +18,7 @@ "first_name": "Brian", "last_name": "Johnston", "email": "brian_johnston@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "invoice": null, diff --git a/pages/reviews/review-object.json b/pages/reviews/review-object.json index b66d5f7..2b2c7b3 100644 --- a/pages/reviews/review-object.json +++ b/pages/reviews/review-object.json @@ -5,6 +5,7 @@ "first_name": "Katherine", "last_name": "Brown", "email": "katherine_brown@example.com", + "role_type": "Client", "url": "https://secure.tutorcruncher.com/api/clients/17/" }, "contractor": { @@ -12,6 +13,7 @@ "first_name": "Brian", "last_name": "Johnston", "email": "brian_johnston@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/52/" }, "invoice": null, diff --git a/pages/tasks/get-a-task.json b/pages/tasks/get-a-task.json index 19faaba..f469a05 100644 --- a/pages/tasks/get-a-task.json +++ b/pages/tasks/get-a-task.json @@ -4,7 +4,8 @@ "id": 59, "first_name": "Melissa", "last_name": "Spencer", - "email": "melissa_spencer@example.com" + "email": "melissa_spencer@example.com", + "role_type": "Administrator" }, "complete": false, "description": "This is an example description of a task.", diff --git a/pages/tenders/accept-a-tender.json b/pages/tenders/accept-a-tender.json index 203be48..91533fa 100644 --- a/pages/tenders/accept-a-tender.json +++ b/pages/tenders/accept-a-tender.json @@ -6,6 +6,7 @@ "first_name": null, "last_name": "Teacherson", "email": "jane_teacherson@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/1985/" }, "created": "2019-01-01T00:00:00Z", diff --git a/pages/tenders/list-all-tenders.json b/pages/tenders/list-all-tenders.json index 5460817..f4fcb87 100644 --- a/pages/tenders/list-all-tenders.json +++ b/pages/tenders/list-all-tenders.json @@ -11,6 +11,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/47/" }, "created": "2020-03-30T14:30:58.848581+01:00", diff --git a/pages/tenders/reject-a-tender.json b/pages/tenders/reject-a-tender.json index b4b0215..061d978 100644 --- a/pages/tenders/reject-a-tender.json +++ b/pages/tenders/reject-a-tender.json @@ -6,6 +6,7 @@ "first_name": null, "last_name": "Teacherson", "email": "jane_teacherson@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/1985/" }, "created": "2019-01-01T00:00:00Z", diff --git a/pages/tenders/tender-object.json b/pages/tenders/tender-object.json index 1c76c05..550327f 100644 --- a/pages/tenders/tender-object.json +++ b/pages/tenders/tender-object.json @@ -6,6 +6,7 @@ "first_name": "James", "last_name": "Higgins", "email": "james_higgins@example.com", + "role_type": "Tutor", "url": "https://secure.tutorcruncher.com/api/contractors/47/" }, "created": "2020-03-30T14:30:58.848581+01:00", diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.json b/pages/wellbeing-concerns/get-a-wellbeing-concern.json new file mode 100644 index 0000000..2367b6e --- /dev/null +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.json @@ -0,0 +1,63 @@ +{ + "id": 2, + "display_name": "WBC-2", + "status": "Unresolved", + "severity": "Severe", + "dt_raised": "2025-04-14T16:26:44.286782+01:00", + "dt_resolved": null, + "creator": { + "id": 58, + "first_name": "Diana", + "last_name": "Lafayette", + "email": "diana_lafayette@testagency.example.com", + "role_type": "Tutor" + }, + "service_recipient": { + "id": 10, + "first_name": "Archie", + "last_name": "Hoskins", + "email": "archie_hoskins@testagency.example.com", + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/10/" + }, + "contractor": { + "id": 58, + "first_name": "Diana", + "last_name": "Lafayette", + "email": "diana_lafayette@testagency.example.com", + "role_type": "Tutor", + "url": "https://secure.tutorcruncher.com/api/contractors/58/" + }, + "service": { + "id": 54, + "name": "Mathematics", + "dft_charge_type": "hourly", + "created": "2025-04-14T16:26:19.877383+01:00", + "dft_charge_rate": "100.00", + "dft_contractor_rate": "75.00", + "last_updated": "2025-04-14T16:26:32.479636+01:00", + "status": "available", + "url": "https://secure.tutorcruncher.com/api/services/54/" + }, + "appointment": { + "id": 586, + "start": "2025-04-14T17:26:00+01:00", + "finish": "2025-04-14T18:26:00+01:00", + "topic": "Lesson 1", + "status": "planned", + "service": { + "id": 54, + "name": "Mathematics", + "dft_charge_type": "hourly", + "created": "2025-04-14T16:26:19.877383+01:00", + "dft_charge_rate": "100.00", + "dft_contractor_rate": "75.00", + "last_updated": "2025-04-14T16:26:32.479636+01:00", + "status": "available", + "url": "https://secure.tutorcruncher.com/api/services/54/" + }, + "url": "https://secure.tutorcruncher.com/api/appointments/586/" + }, + "description": "This should be looked into urgently.", + "resolution_note": "" +} diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.md b/pages/wellbeing-concerns/get-a-wellbeing-concern.md new file mode 100644 index 0000000..7d62c23 --- /dev/null +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.md @@ -0,0 +1,4 @@ +### Get a Wellbeing Concern + +Returns the details of an existing Wellbeing Concern. You only need to specify the unique `id` of +the Wellbeing Concern to get the correct details. diff --git a/pages/wellbeing-concerns/get-a-wellbeing-concern.py b/pages/wellbeing-concerns/get-a-wellbeing-concern.py new file mode 100644 index 0000000..0742a8b --- /dev/null +++ b/pages/wellbeing-concerns/get-a-wellbeing-concern.py @@ -0,0 +1,5 @@ +import pprint, requests + +headers = {'Authorization': 'token '} +r = requests.get('https://secure.tutorcruncher.com/api/wellbeing_concerns//', headers=headers) +pprint.pprint(r.json()) diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.json b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json new file mode 100644 index 0000000..f3041ee --- /dev/null +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.json @@ -0,0 +1,41 @@ +{ + "count": 2, + "next": null, + "previous": null, + "results": [ + { + "id": 2, + "display_name": "WBC-2", + "status": "Unresolved", + "severity": "Severe", + "service_recipient": { + "id": 10, + "first_name": "Archie", + "last_name": "Hoskins", + "email": "archie_hoskins@testagency.example.com", + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/10/" + }, + "dt_raised": "2025-04-14T16:26:44.286782+01:00", + "dt_resolved": null, + "url": "https://secure.tutorcruncher.com/api/wellbeing_concerns/2/" + }, + { + "id": 1, + "display_name": "WBC-1", + "status": "Unresolved", + "severity": "Severe", + "service_recipient": { + "id": 47, + "first_name": "Jessica", + "last_name": "Coles", + "email": "jessica_coles@testagency.example.com", + "role_type": "Student", + "url": "https://secure.tutorcruncher.com/api/recipients/47/" + }, + "dt_raised": "2025-04-14T16:03:50.310174+01:00", + "dt_resolved": null, + "url": "https://secure.tutorcruncher.com/api/wellbeing_concerns/1/" + } + ] +} diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.md b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md new file mode 100644 index 0000000..387d106 --- /dev/null +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.md @@ -0,0 +1,3 @@ +### List all Wellbeing Concerns + +Returns a list of all your Wellbeing Concerns. The Wellbeing Concerns are sorted by id, with the largest `id` first. diff --git a/pages/wellbeing-concerns/list-all-wellbeing-concerns.py b/pages/wellbeing-concerns/list-all-wellbeing-concerns.py new file mode 100644 index 0000000..1f2acb0 --- /dev/null +++ b/pages/wellbeing-concerns/list-all-wellbeing-concerns.py @@ -0,0 +1,5 @@ +import pprint, requests + +headers = {'Authorization': 'token '} +r = requests.get('https://secure.tutorcruncher.com/api/wellbeing_concerns/', headers=headers) +pprint.pprint(r.json()) diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.md b/pages/wellbeing-concerns/wellbeing-concern-object.md new file mode 100644 index 0000000..04fe885 --- /dev/null +++ b/pages/wellbeing-concerns/wellbeing-concern-object.md @@ -0,0 +1,4 @@ +### Wellbeing Concern Object + +Wellbeing Concern objects will contain information about wellbeing concerns that have been raised, +including information about the related users. diff --git a/pages/wellbeing-concerns/wellbeing-concern-object.yml b/pages/wellbeing-concerns/wellbeing-concern-object.yml new file mode 100644 index 0000000..e6790d5 --- /dev/null +++ b/pages/wellbeing-concerns/wellbeing-concern-object.yml @@ -0,0 +1,160 @@ +attributes: + - + name: id + type: integer + description: Unique identifier for the Wellbeing Concern. + - + name: display_name + type: string + description: The display name for the Wellbeing Concern. + - + name: status + type: string + description: The status of the Wellbeing Concern. + - + name: severity + type: string + description: The severity of the Wellbeing Concern. + - + name: dt_raised + type: string + description: The date the Wellbeing Concern was raised. + - + name: dt_resolved + type: string + description: The date the Wellbeing Concern was resolved. + - + name: creator + type: object + description: The Creator of the Wellbeing Concern. + children: + - + name: id + type: integer + description: The ID of the Wellbeing Concern creator. + - + name: first_name + type: string + description: The first name of the Wellbeing Concern creator. + - + name: last_name + type: string + description: The last name of the Wellbeing Concern creator. + - + name: email + type: string + description: The email address of the Wellbeing Concern creator. + - + name: role_type + type: string + description: The role type of the Wellbeing Concern creator. + + - + name: service_recipient + type: object + description: The Student related to the Wellbeing Concern. + children: + - name: id + type: integer + description: The ID of the student related to the Wellbeing Concern. + - name: first_name + type: string + description: The first name of the student related to the Wellbeing Concern. + - name: last_name + type: string + description: The last name of the student related to the Wellbeing Concern. + - name: email + type: string + description: The email address of the student related to the Wellbeing Concern. + - name: url + type: string + description: URL to the Student's object. + - + name: contractor + type: object + description: The Tutor related to the Wellbeing Concern. + children: + - name: id + type: integer + description: The ID of the tutor related to the Wellbeing Concern. + - name: first_name + type: string + description: The first name of the tutor related to the Wellbeing Concern. + - name: last_name + type: string + description: The last name of the tutor related to the Wellbeing Concern. + - name: email + type: string + description: The email address of the tutor related to the Wellbeing Concern. + - name: url + type: string + description: URL to the Tutor's object. + - + name: service + type: object + description: The Service the Wellbeing Concern is related to. + children: + - + name: id + type: integer + description: Unique identifier for the object. + - + name: name + type: string + description: Service's name. + - + name: dft_charge_type + type: string + description: | + Service's default charge type. Check out [Service Object](#service-object) for the types of choices. + - + name: created + type: string + description: Date and time the Service was created. + - + name: dft_charge_rate + type: string + description: Service's default amount Clients will be charged. + - + name: dft_contractor_rate + type: string + description: Service's default amount Contractors will be paided. + - + name: status + type: string + description: Status of the Service. Check out [Service Object](#service-object) for the types of statuses. + - + name: url + type: string + description: URL to the Service object. + - + name: appointment + type: object + description: The Appointment related to the Wellbeing Concern. + children: + - name: id + type: integer + description: Unique identifier for the object. + - name: start + type: string + description: Start date and time for the Appointment. + - name: finish + type: string + description: Finish date and time for the Appointment. + - name: topic + type: string + description: Topic for the Appointment. + - name: status + type: integer + description: | + The status for the Appointment, the status types are `planned`, `awaiting-report`, `complete`, `cancelled`, + and `cancelled-chargeable`. + - name: service + type: object + description: | + Object that contains information about the Service. Attributes in the object are `id`, `name`, + `dft_charge_type`, `created`, `dft_charge_rate`, `dft_conractor_rate`, `last_updated`, `status`, `url`. + - name: url + type: string + description: URL to the Appointment object. + diff --git a/pages/wellbeing-concerns/wellbeing-concerns.yml b/pages/wellbeing-concerns/wellbeing-concerns.yml new file mode 100644 index 0000000..11795f6 --- /dev/null +++ b/pages/wellbeing-concerns/wellbeing-concerns.yml @@ -0,0 +1,24 @@ +sections: + - + title: Wellbeing Concern Object + id: wellbeing-concern-object + description: /wellbeing-concerns/wellbeing-concern-object.md + attributes: /wellbeing-concerns/wellbeing-concern-object.yml + response: /wellbeing-concerns/get-a-wellbeing-concern.json + response_title: OBJECT + - + title: List all Wellbeing Concerns + id: list-all-wellbeing-concerns + description: /wellbeing-concerns/list-all-wellbeing-concerns.md + code: /wellbeing-concerns/list-all-wellbeing-concerns.py + code_type: GET + code_url: /api/wellbeing_concerns/ + response: /wellbeing-concerns/list-all-wellbeing-concerns.json + - + title: Get a Wellbeing Concern + id: get-a-wellbeing-concern + description: /wellbeing-concerns/get-a-wellbeing-concern.md + code: /wellbeing-concerns/get-a-wellbeing-concern.py + code_type: GET + code_url: /api/wellbeing_concerns// + response: /wellbeing-concerns/get-a-wellbeing-concern.json