File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ public/stylesheets/css/plugin-status-compiled.css
18
18
test /last-shot
19
19
/coverage
20
20
/failures
21
+ /apidocs
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " strider" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " Strider API" ,
5
+ "apidoc" : {
6
+ "title" : " Strider CI/CD REST API"
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ var Project = models.Project;
11
11
12
12
router . use ( auth . requireUserOr401 ) ;
13
13
14
+ /**
15
+ * @api {put } /:provider/:id Update a User's provider account
16
+ * @apiName UpdateAccount
17
+ * @apiGroup Account
18
+ *
19
+ * @apiParam {String} provider Type of provider, e.g. github
20
+ * @apiParam {Number} id Unique provider identification
21
+ */
14
22
router . route ( '/:provider/:id' )
15
23
. put ( function ( req , res ) {
16
24
var accounts = req . user . accounts ;
Original file line number Diff line number Diff line change 51
51
"build" : " npm run pre && npm run styles && browserify -t [babelify --only client] -e client/app.js -o dist/scripts/app.js" ,
52
52
"build-debug" : " npm run pre && npm run styles-debug && browserify -d -e client/app.js -o dist/scripts/app.js" ,
53
53
"unitcov" : " istanbul cover _mocha --recursive test/unit" ,
54
- "unitdev" : " mocha -w --recursive test/unit -R min"
54
+ "unitdev" : " mocha -w --recursive test/unit -R min" ,
55
+ "gendocs" : " apidoc -i lib/ -o apidocs/"
55
56
},
56
57
"dependencies" : {
57
58
"MD5" : " ^1.2.1" ,
124
125
"devDependencies" : {
125
126
"angular" : " 1.2.23" ,
126
127
"angular-route" : " 1.2.17-build.163.1" ,
128
+ "apidoc" : " ^0.13.1" ,
127
129
"babelify" : " ^6.1.2" ,
128
130
"blanket" : " ^1.1.5" ,
129
131
"bower-installer" : " ^1.2.0" ,
You can’t perform that action at this time.
0 commit comments