Skip to content

Commit 0629291

Browse files
committed
Initial Implementation
1 parent da20c89 commit 0629291

File tree

228 files changed

+42435
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+42435
-0
lines changed

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/restmate.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/scopes/scope_settings.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 412 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RestService.js

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
function RestServiceJs(newurl) {
2+
this.myurl = newurl;
3+
4+
this.add = function(model, callback) {
5+
$.ajax({
6+
type: 'POST',
7+
url: this.myurl,
8+
data: JSON.stringify(model), // '{"name":"' + model.name + '"}',
9+
dataType: 'text',
10+
processData: false,
11+
contentType: 'application/json',
12+
success: callback,
13+
error: function(req, status, ex) {},
14+
timeout:60000
15+
});
16+
};
17+
18+
this.update = function(model, callback) {
19+
$.ajax({
20+
type: 'PUT',
21+
url: this.myurl,
22+
data: JSON.stringify(model), // '{"name":"' + model.name + '"}',
23+
dataType: 'text',
24+
processData: false,
25+
contentType: 'application/json',
26+
success: callback,
27+
error: function(req, status, ex) {},
28+
timeout:60000
29+
});
30+
};
31+
32+
this.find = function(id, callback) {
33+
$.ajax({
34+
type: 'GET',
35+
url: this.myurl + '/' + id,
36+
contentType: 'application/json',
37+
success: callback,
38+
error: function(req, status, ex) {},
39+
timeout:60000
40+
});
41+
};
42+
43+
this.findAll = function(callback) {
44+
$.ajax({
45+
type: 'GET',
46+
url: this.myurl,
47+
contentType: 'application/json',
48+
success: callback,
49+
error: function(req, status, ex) {},
50+
timeout:60000
51+
});
52+
};
53+
54+
this.remove = function(id, callback) {
55+
$.ajax({
56+
type: 'DELETE',
57+
url: this.myurl + '/' + id,
58+
contentType: 'application/json',
59+
success: callback,
60+
error: function(req, status, ex) {},
61+
timeout:60000
62+
});
63+
};
64+
65+
this.loadTmpl = function(turl, callback) {
66+
$.ajax({
67+
url: turl,
68+
success: callback,
69+
error: function(req, status, ex) {},
70+
timeout:60000
71+
});
72+
}
73+
}

bower.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "restmate",
3+
"version": "0.0.0",
4+
"homepage": "https://github.com/codebased/restmate",
5+
"authors": [
6+
"codebased <[email protected]>"
7+
],
8+
"moduleType": [
9+
"node"
10+
],
11+
"license": "MIT",
12+
"private": true,
13+
"ignore": [
14+
"**/.*",
15+
"node_modules",
16+
"bower_components",
17+
"test",
18+
"tests"
19+
],
20+
"dependencies": {
21+
"jquery": "~2.1.3",
22+
"bootstrap": "~3.3.2"
23+
}
24+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "bootstrap",
3+
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4+
"version": "3.3.2",
5+
"keywords": [
6+
"css",
7+
"js",
8+
"less",
9+
"mobile-first",
10+
"responsive",
11+
"front-end",
12+
"framework",
13+
"web"
14+
],
15+
"homepage": "http://getbootstrap.com",
16+
"main": [
17+
"less/bootstrap.less",
18+
"dist/css/bootstrap.css",
19+
"dist/js/bootstrap.js",
20+
"dist/fonts/glyphicons-halflings-regular.eot",
21+
"dist/fonts/glyphicons-halflings-regular.svg",
22+
"dist/fonts/glyphicons-halflings-regular.ttf",
23+
"dist/fonts/glyphicons-halflings-regular.woff"
24+
],
25+
"ignore": [
26+
"/.*",
27+
"_config.yml",
28+
"CNAME",
29+
"composer.json",
30+
"CONTRIBUTING.md",
31+
"docs",
32+
"js/tests",
33+
"test-infra"
34+
],
35+
"dependencies": {
36+
"jquery": ">= 1.9.1"
37+
},
38+
"_release": "3.3.2",
39+
"_resolution": {
40+
"type": "version",
41+
"tag": "v3.3.2",
42+
"commit": "bcf7dd38b5ab180256e2e4fb5da0369551b3f082"
43+
},
44+
"_source": "git://github.com/twbs/bootstrap.git",
45+
"_target": "~3.3.2",
46+
"_originalSource": "bootstrap",
47+
"_direct": true
48+
}

0 commit comments

Comments
 (0)