Git Product home page Git Product logo

boater-mesh-api's Introduction

Routes

Auth

POST /auth/sign-up

Params

{
  "email": "[email protected]",
  "password": "test"
}

Response

{
  "email": "[email protected]",
  "password": "$2a$12$.M2mCK3zwvq/v8CUY8BdpuxePCqJF8mWotKUePDNMfKvMxbUY78O6",
  "id": 14
}

POST /auth/sign-in

Params

{
  "email": "[email protected]",
  "password": "test"
}

Response

{
  "id": 14,
  "email": "[email protected]",
  "password": "$2a$12$.M2mCK3zwvq/v8CUY8BdpuxePCqJF8mWotKUePDNMfKvMxbUY78O6",
  "created_at": "2020-02-13 01:27:47",
  "updated_at": "2020-02-13 01:27:47",
  "token": null,
  "zip": null,
  "isAdmin": null
}

Gauges

Protected - requires Authorization Headers

Authorization: "Bearer + token"

Example:

Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImVtYWlsIjoidGVzdEB0ZXN0LmNvbSIsImlkIjoxfSwiaWF0IjoxNTgxNTYzMzc1LCJpc3MiOiJib2F0ZXItbWVzaCIsInN1YiI6IjEifQ.TNTAK0XCAv-XVXJI0b6J9DBOygv000VO7P84wKn5Wng"

GET /gauges/

[
    {
        "siteName": "LINVILLE RIVER NEAR NEBO, NC",
        "siteCode": "02138500",
        "geoLocation": {
            "latitude": 35.79555556,
            "longitude": -81.8911111
        }
    },
    {
        "siteName": "MIDDLE SALUDA RIVER NEAR CLEVELAND, SC",
        "siteCode": "02162350",
        "geoLocation": {
            "latitude": 35.1201172,
            "longitude": -82.537623
        }
    },

   ...

]

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.