Giter Site home page Giter Site logo

link-mobile-observations's Introduction

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" 
}
```

link-mobile-observations's People

Contributors

joseblas avatar

Stargazers

Sean avatar  avatar Bedevilled00 avatar  avatar Nox Bei avatar  avatar ansuz avatar mkobar avatar Trishank Karthik Kuppusamy avatar R. Miles McCain avatar Benjamin Purcell avatar AKA avatar Brannon Dorsey avatar

Watchers

James Cloos avatar Mike Dank avatar Benjamin Purcell avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.