kacsokz / lhl-final-together-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LHL-Final-Together-API

Api

Users

GET /api/users

Response

[
  {
    "id": 1,
    "first_name": "Randy",
    "last_name": "Calhoon",
    "email": "randy.calhoon@gmail.com",
    "avatar": "https://i.imgur.com/LpaY82x.png",
    "tag_line": "Always ready to rock and/or roll!"
  }
]

PUT /api/users/:id

Body:

[
  {
    "tag_line": String
  }
]

DELETE /api/users/:id

Bars

GET /api/bars

Response

[
  {
    "id": 1,
    "name": "The Last Best Brewing Company",
    "latitude": -114.074559,
    "longitude": 51.042613,
    "address": "607 11 Ave SW, Calgary, AB T2R 0E1",
    "start_time": "15:30",
    "end_time": "16:30"
  }
]

Events

GET /api/events

Response

[
  {
    "id": 1,
    "user_id": 1,
    "bar_id": 1,
    "name": "Graduation & Celebration Drinks",
    "date": "Oct. 11, 2019",
    "start_time": "15:00",
    "end_time": "17:00",
    "tag_line": "After 12 long weeks, we are officially Dev's!"
  }
]

PUT /api/events/:id

Body:

[
  {
    "bar_id": Number,
    "name": String,
    "date": String,
    "start_time": String,
    "end_time": String,
    "tag_line": String
  }
]

DELETE /api/events/:id

Authors

  • Ahmed Murad
  • Casey Sokach
  • Devon Blake

Getting Started

Install all dependencies (using the npm install command). Create tunnel as linkedin api will not work on local host. Run the server using the node run local command.

About


Languages

Language:JavaScript 72.2%Language:TSQL 27.8%