GithubHelp home page GithubHelp logo

apitest's Introduction

To run this application you must do the following:
1. Install all node modules
  $ npm install

2. Create and Populate the database with addData.js
  $ node addData.js

3. Create database design document view with addViews.js
  $ node addViews.js

apitest's People

Stargazers

Tom Wilson avatar

Watchers

James Cloos avatar Cameron Monaghan avatar

apitest's Issues

/Automobiles returns query metadata not automobile docs

use include_docs in your query and respond to the client with the automobile documents . Current response includes:

[
  {
    "id": "automobile_honda_2017_pilot",
    "key": "automobile_honda_2017_pilot",
    "value": null
  },
  {
    "id": "automobile_land_rover_2017_range_rover",
    "key": "automobile_land_rover_2017_range_rover",
    "value": null
  },
  {
    "id": "automobile_tesla_2016_model_s",
    "key": "automobile_tesla_2016_model_s",
    "value": null
  },
  {
    "id": "automobile_tesla_2016_model_x",
    "key": "automobile_tesla_2016_model_x",
    "value": null
  }
]

Adding doc with existing _id, and _rev causes internal server error

Attempted to add the following automobile. Included the _rev value in the POST:

{
_id: "automobile_tesla_2017_x",
_rev: "1-35ac6cfd7ed99c0aa3c6fe48c6a82dc7",
name: "tesla",
description: "2017 X",
inStock: "true",
retailCost: "30345",
dateAvailable: "2017-01-17",
active: true,
type: "automobile"
}

Received the following error:
Unexpected token _ in JSON at position 2

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.