API Gravidanza Mobile App

download API Gravidanza Mobile App

of 3

Transcript of API Gravidanza Mobile App

  • 7/28/2019 API Gravidanza Mobile App

    1/3

    API GRAVIDANZA mobile app

    METHOD

    1. all server calls have to be done in POST method

    2. ENDPOINTBase urli shttp://pinkup.com(in alpha and beta version of website it is

    not possible to send post if you dont send header credential)UPDATE:

    /mobile/gravidanza/update//// if data doesnt exist it is still send

    GET:

    /mobile/gravidanza/get///

    dataupdate not mandatory

    FORMAT

    1. Day/hour formatDay format to device: yyyyMMddHHmmss, if data refers only to day,

    default hour is 00:00:00 so correct format will be yyyyMMdd000000

    2. Boolean format0 for false, 1 for true

    3. Status formatstarts to an integer value of -1 if data is not set, increasing according to

    possible value

    TABLES ()

    Note: if you refer to gravidanza.db check this sqlite:https://www.dropbox.com/s/ypgar2s316xmyfy/gravidanza.db

    CALENDARIO (calendar)

    - Saint of the day (not sync)- Appointment (not sync)- Notes (sync)- Mood (sync 6 status + not set) (umore)- Nausea (sync 3 states + not set) (nausea)- Constipation (sync on/off) (stitichezza)- Backache (sync on/off) (mal di schiena)- Sleepiness (sync on/off) (sonno)- Stomachache (sync on/off) (bruciori di stomaco)

    - Frequent urination (sync on/off) (minzione frequente)- Desire (sync on/off) voglie

    - Weight measurement (sync)

    http://pinkup.com/http://pinkup.com/http://pinkup.com/https://www.dropbox.com/s/ypgar2s316xmyfy/gravidanza.dbhttps://www.dropbox.com/s/ypgar2s316xmyfy/gravidanza.dbhttp://pinkup.com/
  • 7/28/2019 API Gravidanza Mobile App

    2/3

    Notes table on gravidanza.db becomes tabella giorno (days table) with thoseentities

    - idgiorno (int)- deviceid (char)

    - datagiorno (day)- nota (text)- umore (status)- nausee (status)- stitichezza (boolean)- schiena (boolean)

    - sonno (boolean)- bruciori (boolean)- minzione (boolean)- voglie (boolean)- dataultimoagg (date/day)- deleted (boolean)

    for Pesata (weight measurement) refer to Bilancia table

    OTHER

    Consigli (not sync)

    Dubbi e informazioni (not sync)

    Nomi

    As preferiti (favourites) table on gravidanza.db

    Ospedali (not sync)

    Contraziometro

    As contrazioni table on gravidanza.db

    Bilancia

    As pesate table on gravidanza.db

    Reminder integratori

    As reminder table on gravidanza.db

  • 7/28/2019 API Gravidanza Mobile App

    3/3

    IMPOSTAZIONI (settings)

    Opzioni table becomes impostazioni table

    Gravidanza.db references:

    - nome_madre (char) (mothers name)- cognome_madre (char) (mothers surname)remove previous fields, import on login phase

    - nome_padre (char) (fathers name)- cognome_padre (char) (fathers surname)

    - nome_bambino (char) (childs name)just set those fields, by now there is not possibility to set these variables

    - sesso_bambino (default status non lo so = 2 (I dont know) Femmina = 0

    (female) Maschio = 1 (male)) (childern gender)

    - durata_ciclo (int) (cycle duration)

    - data_um (day)

    - data_presuntoparto (day)

    - data_presuntoconcep (day)

    - data_ultrasuoni (day)

    - settimane_ultrasuoni (day)

    - giorni_ultrasuoni (int)

    - peso_pregravidico (float in KG)

    - altezza (int in cm)

    - withings (boolean linked = 1 not linked = 0) if linked, save withings

    autocode on application, just this boolean has to be passed to web app- dataultimoagg (day/hours)

    - generali (sync childs name and gender)- calendario (sync all data: durata ciclo (cycle duration), data ultima

    mestruazione (last cycle date), data presunta parto (estimated birth date),

    data presunta concepimento (estimated conception date), data ultrasuoni

    (ultrasound date), epoca gestazionale (gestation duration)

    Impostazioni bilancia (scale settings)

    Sync: height and weight to calculate body mass index