This repository contains the backend API for the Physio App project
You may find the main project on the following repository
Install by putting the php files on your php server
Import the database by importing the physioapp.sql file
Run the following script on your php server to install dependencies
php composer.phar update POST /api/v1/auth/login| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. Your account username |
password |
string |
Required. Your account password |
POST /api/v1/auth/token/{token}/login| Parameter | Type | Description |
|---|---|---|
token |
string |
Required. Your refresh token. |
POST /api/v1/auth/registerPatient users cannot create accounts, therefore should not call this endpoint.
| Parameter | Type | Description |
|---|---|---|
username |
string |
Required. A username for the new account. |
password |
string |
Required. A password for the new account. Must validate against /^(?=.[a-z])(?=.[A-Z])(?=.*\d).+$/' |
email |
string |
Required. An email for the new account. |
displayName |
string |
Required. The name of the new account owner. |
SSN |
string |
Required. The Social Security Number of the new account. |
address |
string |
Required. The address of the new account owner. |
POST /api/v1/auth/logoutManager users do not have an owner, therefore should not call this endpoint.
GET /api/v1/me/creatorPatient users cannot create accounts, therefore should not call this endpoint.
GET /api/v1/me/childrenManager users do not handle appointments, therefore should not call this endpoint.
GET /api/v1/appointmentsManager users do not handle appointments, therefore should not call this endpoint.
GET /api/v1/appointments/historyManager users do not handle appointments, therefore should not call this endpoint.
GET /api/v1/appointments/availabilityOnly patients may call this endpoint.
POST /api/v1/appointments/book| Parameter | Type | Description |
|---|---|---|
timestamp |
int |
Required. The appointment date in timestamp format. |
Only doctors may call this endpoint.
Can only be called if appoinement status is pending.
POST /api/v1/appointments/{appointmentId}/accept| Parameter | Type | Description |
|---|---|---|
appointmentId |
int |
Required. The appointment id. |
Manager users do not handle appointments, therefore should not call this endpoint.
Cancelled appointments cannot be cancelled again.
POST /api/v1/appointments/{appointmentId}/cancel| Parameter | Type | Description |
|---|---|---|
appointmentId |
int |
Required. The appointment id. |
Only doctor users may call this endpoint.
Can only be called on appointments with accepted status.
POST /api/v1/appointments/{appointmentId}/record| Parameter | Type | Description |
|---|---|---|
appointmentId |
int |
Required. The appointment id. |
serviceId |
string |
Required. The id of the service that was provided to the patient. |
details |
string |
Required. Any details about the appointment go here. |
Only managers users may call this endpoint.
POST /api/v1/services/create| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. An id for the new service |
name |
string |
Required. The name of the service. |
description |
string |
Required. The description of the service. |
cost |
int |
Required. The cost of the service. |
GET /api/v1/services