Giter Site home page Giter Site logo

maporable-api's Introduction

maporable-api

See where have you gone and show where will you be going

maporable-api's People

Contributors

larribas avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

groyoh

maporable-api's Issues

Trips Api

GET /trips

Query params: user

{
  "trips": [
    {
      "id": "1",
      "country": "RUS",
      "status": "done",
      "start_date": "2016-10-10T15:48:56+00:00",
      "end_date": "2016-10-16T15:48:56+00:00"
    },
    {
      "id": "1",
      "country": "USA",
      "status": "pending",
      "start_date": null,
      "end_date": null,
      "friend_ids": null
    }
  ],
  "users": [
    {
      "id": "1",
      "name": "Bibek"
    },
    {
      "id": "2",
      "name": "Joan"
    },
    {
      "id": "3",
      "name": "Lorenzo"
    }
  ]
}

POST /trips

 {
   "country": "USA",
   "status": "pending",
   "start_date": null,
   "end_date": null,
   "friend_ids": null
 }

Trip statuses

  • done: The trip is done.
  • pending: You will do this trip at some point but you don't know yet when.
  • planed [TBD]: Difference with pending is that has start_date and end_date are set and friend_ids can be modified, i.e. this can increase engagement since people may ask to join already planed trips

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.