-
Notifications
You must be signed in to change notification settings - Fork 2
Database API
The overall setup on the server looks similar to this (fetched from this website: https://www.simplifiedcoding.net/android-mysql-tutorial-to-perform-basic-crud-operation/

The mobile application sends an HTTP request to the server through the PHP API. If the request is a valid API request the data is either stored or retrieved from the database.
When changing database structure or API remember the dependencies to the PHP API and the code of the devices using it.
Code:
- Database (on server)
- Java code (and related classes that implement URL)
- PHP code (on server)
-
ClimAppAPI.php(create new version) DbOperation.php
-
Documentation:
-
Database
- Generate new ER diagram and add in Database
- Database API (this)
- Visio
Created on the server hosted by DTU Byg. All parameters are shared preferences, each parameter links to the related preference description.
Base URL: http://localhost/ClimAppAPI/v1/ClimAppApi.php
Localhost will of course be substituted with the global IP address of the server.

- Recommended Alert Limit
- Weather data
- Shared preferences
- Translation procedure
- Prediction of indoor temperature
Testing
Server/database/API
User information
- Acclimatization
- Activity level
- Age
- Age onboarding
- Gender
- Height value
- Unit
- Weight
- Wet Bulb Globe Temperature (WBGT)
Flow controls