Git Product home page Git Product logo

proxy-api's Introduction

API for Proxy App

All endpoints accept and return JSON. All endpoints will be authenticated via token authentication and must include this header with valid token returned by login Authorization: Token token="a3caf3291c5b0469f2bb04e360438211" Token auth currently disabled for testing purposes

Login

####POST /api/login

Logs in via FACEBOOK (or signs up if user is new) the user and passes back the user object Pass in a JSON object with key authToken and the access token provided by facebookSDK login

Parameters:

{ "authToken":"CAABpBBdQZCT8BAK77qTxj9HQfj6f1xagQ5yGzftVZAzMsMGbGnRSRBNZAvg9wjL9z6NZCImLLlwDgdh2V4eSDLEgaGBSZAZBzF7jVfUk1lTC8vjoJClJP1e985u0jq708ZB4bEyjlZBy6blovedpzSlLsYSMnhvq0rBQxglWbP62iHcYe74ITY89u4RjRANkOnuaYxeHsu5ZBZBaZB93eeljCV0Tp28glnj74EZD"}

Response:

{ 
  "id":2,
  "name":"Justin Huang",
  "facebook_id":"1141801215",
  "email":"[email protected]",
  "token":"a3caf3291c5b0469f2bb04e360438211",
  "created_at":"2014-02-20T18:14:54.000Z",
  "updated_at":"2014-02-20T18:14:54.000Z"
}

Destinations

####GET /api/destinations

Gets the list of destinations supported, and all associated attractions

Response:

[{  
    "id":1,
    "name":"Cabo San Lucas",
    "attractions":[
      {  "id":5,
          "name":"Sailing",
          "description":"Let the tropical winds carry you over the turquoise waters to the secluded natural beaches of the Sea of Cortés and beyond.",
          "photos":null
      },
      {   "id":4,
          "name":"Whale Watching",
          "description":"From December 15th through April 15th, the waters of Cabo San Lucas fill with magnificent humpback whales; creating perfect whale watching conditions",
          "photos":null
      },
      {   "id":3,
          "name":"Snorkeling",
          "description":"Explore Cabo's underwater world as you swim, power-snorkel, kayak \u0026 stand up paddle",
          "photos":null
      },
      {   "id":2,
          "name":"Swimming with Dolphins",
          "description":"Swim with dolphins in Los Cabos; it is a life changing experience...",
          "photos":null
      },
      {   "id":1,
          "name":"Scuba Diving",
          "description":"Abundant sea life, amazing rock formations, and spectacular coral reefs await your discovery in the waters just off Cabo. Scuba diving in Cabo San Lucas offers divers of all levels a unique and wondrous diving experience. You don't want to miss scuba diving in a place famed ocean explorer, Jacque Cousteau, called the 'worlds aquarium.'",
          "photos":null
      }
    ]
}]

proxy-api's People

Contributors

rawrjustin avatar

Watchers

 avatar James Cloos 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.