{"openapi":"3.0.1","info":{"title":"API V1","version":"v1"},"paths":{"/api/v1/centers/{id}":{"get":{"summary":"Retrieves a center","tags":["Centers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"center found","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["name"]}}}}}}},"/api/v1/centers/":{"get":{"summary":"Retrieves a all active center","tags":["Centers"],"parameters":[{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"center found","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}}},"required":["name"]}}}}}}},"/api/v1/parents/{parent_id}/children":{"post":{"summary":"Creates a child","tags":["Children"],"parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"child created","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"child":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"birthdate":{"type":"string"},"gender":{"type":"string"}},"required":["first_name","last_name"]}},"required":["child"]}}}}},"get":{"summary":"Retrieves parent's children","tags":["Children"],"parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"child found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"birthdate":{"type":"string"},"gender":{"type":"string"}},"required":["first_name","last_name"]}}}}}}}},"/api/v1/children/{id}":{"put":{"summary":"Updates a child","tags":["Children"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"child updated","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","child":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"birthdate":{"type":"string"},"gender":{"type":"string"}},"required":["first_name","last_name"]},"required":["child"]}}}}},"get":{"summary":"Retrieves a child","tags":["Children"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"child found","content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"birthdate":{"type":"string"},"gender":{"type":"string"}},"required":["first_name","last_name"]}}}}}}},"/api/v1/children/{id}/therapists":{"get":{"summary":"Retrieves child's therapists","tags":["Children"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"therapists found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["email","first_name","last_name"]}}}}}}}},"/api/v1/children/{id}/schedule":{"get":{"summary":"Retrieves child's schedule","tags":["Children"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"schedule found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"start_date":{"type":"datetime"},"duration":{"type":"integer"},"is_all_day":{"type":"boolean"},"recurring":{"type":"boolean"},"event_details":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"}}},"recurrence_instances":{"type":"array","items":{"type":"datetime"}}},"required":["id","start_date","is_all_day","recurring","event_details","recurrence_instances"]}}}}}}}},"/api/v1/children/{id}/assign_therapist_request/{therapist_id}":{"post":{"summary":"request to Assign therapist to child","tags":["Children"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"therapist_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"assign request created","content":{}}}}},"/api/v1/exercises":{"post":{"summary":"Creates a exercise","tags":["Exercies"],"parameters":[{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"exercise created","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"exercise":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"instructions":{"type":"string"},"skill_id":{"type":"integer"},"attachments_attributes":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"}}}}},"required":["title"]}},"required":["exercise"]}}}}},"get":{"summary":"Retrieves all exercises","tags":["Exercies"],"parameters":[{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"exercise found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"instructions":{"type":"string","nullable":true},"owner":{"type":"object"},"skill":{"type":"object","nullable":true,"properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"attachments_attributes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"integer"},"file":{"type":"object","properties":{"url":{"type":"string"}}},"attachment_type":{"type":"string"}}}}},"required":["title"]}}}}}}}},"/api/v1/exercises/{id}":{"put":{"summary":"Updates a exercise","tags":["Exercies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"exercise updated","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"exercise":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"instructions":{"type":"string"},"skill_id":{"type":"integer"},"attachments_attributes":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"}}}}},"required":["title"]}},"required":["exercise"]}}}}},"get":{"summary":"Retrieves a exercise","tags":["Exercies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"exercise found","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"instructions":{"type":"string","nullable":true},"owner":{"type":"object"},"skill":{"type":"object","nullable":true,"properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"attachments_attributes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"integer"},"file":{"type":"object","properties":{"url":{"type":"string"}}},"attachment_type":{"type":"string"}}}}},"required":["title"]}}}}}}},"/api/v1/parent_auth":{"post":{"summary":"Parent Sign Up","tags":["Parents"],"parameters":[],"responses":{"200":{"description":"Parent Signed Up","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"},"password_confirmation":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["email","password","password_confirmation","first_name","last_name"]}},"required":["parent"]}}}}}},"/api/v1/parent_auth/sign_in":{"post":{"summary":"Parent Sign In","tags":["Parents"],"parameters":[],"responses":{"200":{"description":"Parent Signed In","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]}}}}}},"/api/v1/parents/{id}":{"get":{"summary":"Retrieves a parent","tags":["Parents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"parent found","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["email","first_name","last_name"]}}}}}},"put":{"summary":"Updates a parent","tags":["Parents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"parent updated","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["first_name","last_name"]}},"required":["parent"]}}}}}},"/api/v1/parents":{"get":{"summary":"Retrieves all parents","tags":["Parents"],"parameters":[{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"parents found","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"required":["email","first_name","last_name"]}}}}}}}},"/api/v1/therapist_auth":{"post":{"summary":"Therapist Sign Up","tags":["Therapists"],"parameters":[],"responses":{"200":{"description":"therapist sign up","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"therapist":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"},"password_confirmation":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["first_name","last_name"]}},"required":["therapist"]}}}}}},"/api/v1/therapist_auth/sign_in":{"post":{"summary":"Therapist Sign In","tags":["Therapists"],"parameters":[],"responses":{"200":{"description":"Therapist Signed In","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"}},"required":["email","password"]}}}}}},"/api/v1/therapists/{id}":{"get":{"summary":"Retrieves a therapist","tags":["Therapists"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"therapist found","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["email","first_name","last_name"]}}}}}},"put":{"summary":"Updates a therapist","tags":["Therapists"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"therapist updated","content":{}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"therapist":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"}},"required":["first_name","last_name"]}},"required":["therapist"]}}}}}},"/api/v1/therapists":{"get":{"summary":"Retrieves all therapists","tags":["Therapists"],"parameters":[{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"therapists found","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"required":["email","first_name","last_name"]}}}}}}}},"/api/v1/accept_assign_therapist_request/{child_id}":{"post":{"summary":"Accept assign request from child","tags":["Therapists"],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"assign request accepted","content":{}}}}},"/api/v1/therapists/{id}/children":{"get":{"summary":"Retrieves therapist's children","tags":["Therapists"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"access-token","in":"header","schema":{"type":"string"}},{"name":"client","in":"header","schema":{"type":"string"}},{"name":"uid","in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"children found","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"birthdate":{"type":"string"},"gender":{"type":"string"}},"required":["first_name","last_name"]}}}}}}}}},"servers":[{"url":"https://{defaultHost}","variables":{"defaultHost":{"default":"www.example.com"}}}]}