Compare changes
.editorconfig
0 → 100644
+17
−0
.gitlab-ci.yml
0 → 100644
+31
−0
.jscsrc
0 → 100644
+21
−0
.jshintrc
0 → 100644
+63
−0
LICENSE
0 → 100644
+674
−0
File added.
Preview size limit exceeded, changes collapsed.
README.md
deleted100644 → 0
+0
−19
api/controllers/locations.js
0 → 100644
+185
−0
api/controllers/users.js
0 → 100644
+190
−0
api/middleware/mongodb.js
0 → 100644
+44
−0
api/models/location.js
0 → 100644
+46
−0
api/models/user.js
0 → 100644
+129
−0
api/router-v1.js
0 → 100644
+38
−0
api/specs/examples/body/user.json
0 → 100644
+6
−0
+0
−0
Original line number | Diff line number | Diff line |
---|
+26
−0
+0
−0
Original line number | Diff line number | Diff line |
---|
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/examples/collections/tags.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
+31
−0
api/specs/examples/data.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/examples/items/location.json
0 → 100644
+8
−0
api/specs/examples/items/point.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/examples/items/tag.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/examples/items/user.json
0 → 100644
+11
−0
api/specs/examples/report.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/body/user.json
0 → 100644
+25
−0
+0
−0
Original line number | Diff line number | Diff line |
---|
+6
−0
+0
−0
Original line number | Diff line number | Diff line |
---|
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/collections/tags.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/collections/users.json
0 → 100644
+6
−0
api/specs/schemas/data.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/items/location.json
0 → 100644
+29
−0
api/specs/schemas/items/point.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/items/tag.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/schemas/items/user.json
0 → 100644
+32
−0
api/specs/schemas/message.json
0 → 100644
+15
−0
api/specs/schemas/report.json
0 → 100644
+0
−0
Original line number | Diff line number | Diff line |
---|
api/specs/simmc-api-v1.raml
0 → 100644
+612
−0
File added.
Preview size limit exceeded, changes collapsed.
config/example.yaml
0 → 100644
+4
−0
gulpfile.js
0 → 100644
+181
−0
lib/config-parser.js
0 → 100644
+54
−0
lib/error-handler.js
0 → 100644
+77
−0
lib/filter-parser.js
0 → 100644
+84
−0
lib/fixtures.js
0 → 100644
+51
−0
lib/logger.js
0 → 100644
+166
−0
package.json
0 → 100644
+64
−0
Original line number | Diff line number | Diff line |
---|---|---|
{
|
||
"name": "simmc-api",
|
||
"version": "0.1.0",
|
||
"private": "true",
|
||
"description": "SIMMC API",
|
||
"homepage": "http://simmc.c3sl.ufpr.br",
|
||
"author": "Centro de Computação Científica e Software Livre - C3SL <contato@c3sl.ufpr.br>",
|
||
"license": "GPL-3.0",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "https://gitlab.c3sl.ufpr.br/minicom/simmc.git"
|
||
},
|
||
"main": "server.js",
|
||
"dependencies": {
|
||
"app-module-path": "^1.0.4",
|
||
"bcrypt": "^0.8.5",
|
||
"body-parser": "^1.14.1",
|
||
"bunyan": "^1.5.1",
|
||
"bunyan-prettystream": "^0.1.3",
|
||
"cuid": "^1.3.8",
|
||
"express": "^4.13.3",
|
||
"glob": "^5.0.15",
|
||
"gulp": "^3.9.0",
|
||
"gulp-raml": "^0.1.3",
|
||
"gulp-rename": "^1.2.2",
|
||
"gulp-util": "^3.0.7",
|
||
"http-errors": "^1.3.1",
|
||
"js-yaml": "^3.4.3",
|
||
"jsep": "^0.3.0",
|
||
"lodash": "^3.10.1",
|
||
"mongoose": "^4.2.3",
|
||
"morgan": "^1.6.1",
|
||
"on-finished": "^2.3.0",
|
||
"on-headers": "^1.0.1",
|
||
"osprey": "0.2.0-beta.6",
|
||
"osprey-method-handler": "0.8.1",
|
||
"raml-parser": "^0.8.12",
|
||
"raml2html": "^2.1.0",
|
||
"statuses": "^1.2.1",
|
||
"through2": "^2.0.0",
|
||
"vinyl": "^1.1.0"
|
||
},
|
||
"devDependencies": {
|
||
"chai": "^3.4.0",
|
||
"chai-things": "^0.2.0",
|
||
"gulp-coverage": "^0.3.38",
|
||
"gulp-istanbul": "^0.10.2",
|
||
"gulp-jscs": "^3.0.2",
|
||
"gulp-jscs-stylish": "^1.2.1",
|
||
"gulp-jshint": "^1.12.0",
|
||
"gulp-mocha": "^2.1.3",
|
||
"gulp-nodemon": "^2.0.4",
|
||
"gulp-size": "^2.0.0",
|
||
"gulp-util": "^3.0.7",
|
||
"istanbul": "^0.4.0",
|
||
"jshint-stylish": "^2.0.1",
|
||
"mocha": "^2.3.3",
|
||
"supertest": "^1.1.0"
|
||
},
|
||
"scripts": {
|
||
"test": "gulp test",
|
||
"start": "node server.js"
|
||
}
|
||
} |
server.js
0 → 100755
+78
−0
test/api/controllers/locations.spec.js
0 → 100644
+219
−0