GoodGoodEat Restaurants API

LPGUEI goodgoodeat
Help

Apiary Powered Documentation

Sign in with Apiary account.

GoodGoodEat Restaurants API

Introduction

This is a simple restaurant API allowing developers to get and revise all informations.

Get Started

Base URL

https://goodgoodeat.com

Request

https://www.npmjs.com/package/request

const request = require('request');

request('https://goodgoodeat.com', function (error, response, body) {
  console.error('error:', error);
  console.log('statusCode:', response && response.statusCode); 
  console.log('body:', body);
});

API Endpoints

Get all restaurants [GET]

https://goodgoodeat.com/restaurants

Get single restaurant's information [GET]

https://goodgoodeat.com/restaurants/1

Delete restaurant [DELETE]

https://goodgoodeat.com/restaurants/1

Create a new restaurant [POST]

https://goodgoodeat.com/restaurants

Update restaurant [PATCH]

https://goodgoodeat.com/restaurants/1

Parameters

_limit: Get limited numbers of restaurant info

/restaurants?_limit=5

name: Create a new restaurant

/restaurants?${new-restaurant}

Response Example

  • Response 200 (application/json)

      [
          {
              "id": "1",
              "name": "Good Good Eat",
              "address": "Somewhere in Taipei"
              "stars": "4.5"
          },
          {
              "id": "2",
              "name": "Not Bad Eat",
              "address": "Somewhere in Yilan"
              "stars": "3.8"
          },
          {
              "id": "3",
              "name": "So So Eat",
              "address": "Somewhere in Taoyuan"
              "stars": "3.5"
          },
          
      ]