This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "UUID_Version 5", | |
"user_id":"USER_ID", | |
"status": "complete", | |
"created_at":"2015-04-09T07:36:05+00:00", | |
"updated_at":"2015-04-09T07:49:05+00:00", | |
"req": | |
{ | |
"non_queryable_attribute1":.. | |
"non_queryable_attribute2":.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dbs = require('dbs'); | |
//registeration | |
dbs.newStore("Address",{ | |
"config" | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getFile(url) // returns a promise | |
{ | |
return Promise.delay(3000) //Promise.delay() returns a promise | |
.then(function(){ | |
return http.download('url') // http.download returns a promise | |
}) | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by FeikoLai on 13/1/15. | |
*/ | |
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
app.use(bodyParser.json()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
app.post('/', function (req, res, next) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sample": { | |
"valid": ["PK123123","OI2123123","haha"], | |
"no_result": ["))kjjkkdf","**kjkljsdf"], | |
"bad_format": ["&^&^*^*&*","()()()():P"] | |
}, | |
"test": { | |
"basic_test": | |
{ | |
"expect": |
NewerOlder