Giter VIP home page Giter VIP logo

ubereats-api's Introduction

Uber Eats API - Express.js

Bitrise node version Follow me Github Followers Test Coverage

Table of Contents

  1. User
  2. Endpionts
  3. CI/CD

User

  • URL

    https://api.zxsean.com/user/register

  • Method:

    POST

  • URL Params

    Required:

    name=[string] , email=[string] , password=[string] , phone=[integer]

    Optional:

    id=[integer]

  • Data Params

    {
        "name": "Sean Zhang",
        "email": "[email protected]",
        "password": "psw123",
        "phone": 2023334444
    }
  • Success Response:

    • Code: 200
      Content: { id : 12 }
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "registration error" }

  • URL

    https://api.zxsean.com/user/:id

  • Method:

    GET

  • URL Params

    Required:

    id=[integer]

  • Data Params

    {
        "id": 1,
    }
  • Success Response:

    • Code: 200
      Content: { id : 11 }
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "can't find user" }

NONE

  • Success Response:

    • Code: 200
      Content:
      [
          {
              "id": 1,
              "name": "Kevin Hart",
              "email": "[email protected]",
              "password": "$2a$10$cVR6XquMOMHlKQzay8lErui3w6/.j2ZtVm5ai5IeeY90ZeYGXGGza",
              "phone": 1231231122,
              "createdAt": "2018-08-11",
              "updatedAt": "2018-08-11"
          },
          {
              "id": 2,
              "name": "2 Pac",
              "email": "[email protected]",
              "password": "$2a$10$5COzp14UCuBBPxqvxOAxNesRkbwLdtVdD24I9SJIat9Nxumg3z0WW",
              "phone": 1231231122,
              "createdAt": "2018-08-11",
              "updatedAt": "2018-08-11"
          }
      ]
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "users can be listed" }

  • URL

    https://api.zxsean.com/yelp

  • Method:

    GET

  • URL Params

    term=[string], lat=[double], long=[double], x-access-token=[string]

  • Success Response:

    • Code: 200
      Content:
      [
          {
              "name": "Vero Pizza Napoletana",
              "url": "https://s3-media4.fl.yelpcdn.com/bphoto/OjoO-z3WBwRzlHifvP0vcA/o.jpg",
              "rating": 4,
              "price": "$$",
              "review_count": 156
          },
          {
              "name": "Dewey's Pizza",
              "url": "https://s3-media1.fl.yelpcdn.com/bphoto/iOboHiGvLgp24eOkVRyEiQ/o.jpg",
              "rating": 4.5,
              "price": "$$",
              "review_count": 147
          }
      ]
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "business can be listed" }

Continous Integration

  • The api is build on Bitrise and deployed to the dev server
  • If you are contributing and want to build the dev server, please DM sean7218
  • The api test needs to be written and test needs to be running every day trigger on the Bitrise

login terminated

ubereats-api's People

Contributors

sean7218 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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