JSON API
Get all exercises for a given partner (with pagination) GET /api/v1/exercises Required header: Accept: application/json Required query params: entity Optional query params: per_page, page Example response: "exercises": { "current_page": 1, "data": [ { "partner_exercise_id": ... "partner_exercise_title": ... "clm_id: ..., "user_id": ... "status": "matched", "physiotec_exercise_id": ... "cpt_code": ... }, ... ], "from": 1, "last_page": 1, "next_page_url": ..., "path": "http://localhost:8000/api/v1/exercises", "per_page": 15, "prev_page_url": ..., "to": 1, "total": 1 }
Get exercise by partner_exercise_id GET /api/v1/exercise Required header: Accept: application/json Required query params: entity, partner_exercise_id Example response: { "user_id": 18, "physiotec_exercise_id": 75, "partner_exercise_id": "568537187", "partner_exercise_title": "Fully-configurable national collaboration5976fba34657d", "clm_id": ... }
Add an exercise POST /api/v1/add Required header: Accept: application/json Required body params: entity, partner_exercise_id, partner_exercise_title Optional body params: cpt_code, clm_id, user_id Example response (entity created): HTTP code 201 { success: true } Example response (entity updated): HTTP code 200 { success: true }
Add multiple exercises POST /api/v1/add-bulk Required header: Content-Type: application/xml Required header: Accept: application/json Required GET params: entity, partner_exercise_id, partner_exercise_title Optional body params: cpt_code, clm_id, user_id Example body: <exercises> <exercise> <partner_exercise_id>5051</partner_exercise_id> <partner_exercise_title>Alt. Arm and Leg Lift</partner_exercise_title> </exercise> <exercise> <partner_exercise_id>5060</partner_exercise_id> <partner_exercise_title>Alt. Arm Lift</partner_exercise_title> </exercise> <exercise> <partner_exercise_id>5052</partner_exercise_id> <partner_exercise_title>Angry Cat Stretch</partner_exercise_title> </exercise> <exercise> <partner_exercise_id>5037</partner_exercise_id> <partner_exercise_title>Dead Bug</partner_exercise_title> </exercise> </exercises> Example response (entities created): HTTP code 200 { success: true, added: [...], updated: [...], }
Autologin examples: /partner_login?entity=12 /partner_login?entity=12&clm_id=12 /partner_login?entity=12&clm_id=12&user_id=12