Skip to content
Testing and visualisation tool for observations
Branch: master
Clone or download
Latest commit 95c88a0 May 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildkite first commit Mar 19, 2018
.idea first commit Mar 19, 2018
ansible
app
conf Added better filtering Mar 26, 2018
config
defaults first commit Mar 19, 2018
project
public first commit Mar 19, 2018
samples first commit Mar 19, 2018
scripts
ui
.gitignore
README.md
build.sbt
package-lock.json first commit Mar 19, 2018

README.md

Mobile Link App

This application handles the backend services for the mobile link app used for authentication within the WiFi spots.

Authentication

POST /signup JSON :

{
"email":"id",
"deviceId":"deviceId",
"deviceOS":"deviceOS",
"deviceModel":"model",
"latitude":"lat",
"longitude":"lon",
"adID":"adid",
"adIDType":"as"
}

A new credential will be created and stored for each email, deviceId pair. DeviceId is not the real DeviceId, is an unique identifier for the device derived within the device itself.

{
  "username": "SSDSFGD",
  "password": "ASDwdw123ADFD"
}

If those id and deviceId already exists, will return the original credentials (Idempotency)

Otherwise: 404 Bad Request

   {
     "reason": "some error from stacktrace"
   }

Get Links list

URL: https://link-mobile-observations-dev.us-east-1.elasticbeanstalk.com/dwh returns:

   [
       {
           "id":"mn-09-120436",
           "latitude":"40.827117",
           "longitude":"-73.949738",
           "address":"3560 BROADWAY",
           "status":"Link Active!"
        },
        {
           "id":"bx-05-119597",
           "latitude":"40.85187831",
           "longitude":"-73.90897566",
           "address":"1966 JEROME AVENUE",
           "status":"Link Active!"
        }
    ]

Healthcheck

URL : /healthcheck Return 204 (NoContent) if it is a healthy status.

Status

URL : /status Checks the status of: database Returns 200 if everything is connectionAlive { "name":"dynamoDB","connectionAlive":true,"message":"" }

Otherwise:
Returns 400 (bad request) if everything is not connectionAlive 
```
{
 "name":"dynamoDB","connectionAlive":false,"message":"some message" 
}
```
You can’t perform that action at this time.