-
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 API string (and related classes that implement URL, any or all of these)
- 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
- Database update triggers
Current API version v1
Created on the server hosted by DTU Byg. All parameters are shared preferences, each parameter links to the related preference description.
Base URL: https://climapp.byg.dtu.dk/ClimAppAPI/v1/ClimAppApi.php
Localhost has been replaced by the DNS provided by DTU Byg IT.

- 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