MyAirCoach
Patient
Controller for single patient identified by token header
API | Description |
---|---|
POST api/v1/patient/update |
Updates the specified patient identified by token header |
GET api/v1/patient |
Gets the patient identified by token header |
GET api/v1/patient/height |
Gets the height of the patient identified by token header |
GET api/v1/patient/age |
Gets the age of the patient identified by token header |
POST api/v1/patient/times/store |
Set the patient times |
GET api/v1/patient/times/get |
Gets the patient times identified by token header |
POST api/v1/patient/reminders/store |
Turn on/off reminders for patient |
GET api/v1/patient/reminders/get |
Gets the patient times identified by token header |
GET api/v1/patient/devices?DeviceTypeId={DeviceTypeId}&Id={Id}&Status={Status} |
Gets the devices based on the query |
POST api/v1/patient/device/create |
Creates a new device |
POST api/v1/patient/device/update |
Updates the information about the device |
Admin
API | Description |
---|---|
POST api/v1/administrator/healthprofessional/create |
Todo: Update with correct information. Need userAccountId! |
GET api/v1/administrator/healthprofessionals |
Todo: Update with correct information |
GET api/v1/administrator/healthprofessional/{id} |
Todo: Update with correct information |
GET api/v1/administrator/user/{userAccountId}/username |
Gets the username from the user account identifier for the health professional |
POST api/v1/administrator/healthprofessional/update |
Todo: Update with correct information |
DELETE api/v1/administrator/healthprofessional/delete/{id} |
Todo: Update with correct information |
Authentication
Controls the authentication for users
API | Description |
---|---|
POST api/v1/authentication/login |
Logins the specified user. |
POST api/v1/authentication/logout |
Logouts the user based on token header. |
GET api/v1/authentication/ping |
Ping the server to see if the token are alive. |
ThirdPartyAPI
Questionnaire
API | Description |
---|---|
POST api/v1/questionnaire/send |
Stores the questionnaire meta data and answers |
GET api/v1/questionnaire/get?qid={qid}&date={date}&timingEvent={timingEvent}&offset={offset} |
Retrive a questionnaire meta data and answers. Filtering based on the query parameters. |
GET api/v1/questionnaire/value/{questionnaireId}/period?value={value}&type={type}&offset={offset} |
Retrive a collection of questionnaires over a period. |
GET api/v1/questionnaire/get/patient?PatientId={PatientId}&Qid={Qid}&Date={Date}&TimingEvent={TimingEvent}&Offset={Offset} |
Get questionnaire answers based on date |
HealthProfessional
Development
UserAccount
API | Description |
---|---|
POST api/v1/user/create |
Creates a user account from the specified user information. |
POST api/v1/user/update |
Updates the specified user account. |
GET api/v1/user/permission |
Gets the permission for the user, use Token in header. |
GET api/v1/user/id |
Gets the user identifier from token in header. |
GET api/v1/user/{userAccountId}/username |
Gets the username of the user account identifier |
DELETE api/v1/user/delete/{id} |
No documentation available. |
POST api/v1/user/password/recovery |
Passwords the recovery. |
POST api/v1/user/password/update |
Updates the password. |
POST api/v1/user/password/verification |
Verify email and set a new password |
Observation
Overall handle for observations
Measurement
API | Description |
---|---|
GET api/v1/measurement/{operation}/{typeId}/period?Value={Value}&Type={Type}&GroupedBy={GroupedBy}&Order={Order}&Offset={Offset} |
Gets a collection of measurements based on query for a period |
GET api/v1/measurement/{operation}/{typeId}/between?StartTime={StartTime}&EndTime={EndTime}&Order={Order}&Offset={Offset} |
Gets a collection of measurements based on query between two timestamps |
GET api/v1/measurement/{operation}/{typeId}/taken?taken={taken}&order={order}&offset={offset} |
Gets a collection of measurements based on query between two timestamps |
CAMI
Dashboard
Overall handle for dashboard
API | Description |
---|---|
GET api/v1/dashboard?offset={offset} |
Gets the latest observations for each device type |