monaghancj / apitest Goto Github PK
View Code? Open in Web Editor NEWno-sql api and dal test
no-sql api and dal test
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
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
}
]
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
Friendly suggestion. Consider adding markdown README.md file containing instruction on starting the node api web application/server.
I see "Didn't work" in terminal, but no error returned to the client (POSTman).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.