arrowdbv2demo
Version:
Appcelerator ArrowDB SDK for NodeJS
53 lines (51 loc) • 797 B
JavaScript
var arrowDBObject = {
Object: {
methods: {
createMany :{
httpMethod: 'POST',
restMethod: {
entry: 'create/type',
variables: ['type']
}
},
create: {
httpMethod: 'POST',
restMethod: {
entry: 'type',
variables: ['type']
}
},
get: {
httpMethod: 'GET',
restMethod: {
entry: 'oid',
variables: ['oid']
}
},
delete: {
httpMethod: 'DELETE',
restMethod: {
entry: 'oid',
variables: ['oid']
}
},
deleteMany :{
httpMethod: 'DELETE'
},
count: {
httpMethod: 'GET'
},
query: {
httpMethod: 'GET'
},
update: {
httpMethod: 'PUT',
restMethod: {
entry: 'oid',
variables: ['oid']
}
}
}
}
};
module.exports = arrowDBObject;