diff --git a/bower.json b/bower.json index 0ab5de15..7b2fb50a 100644 --- a/bower.json +++ b/bower.json @@ -28,7 +28,7 @@ "devicejs": "0.2.4", "readabilicons": "arc90/readability-readabilicons#34c55561c5b8ec6e90714b50237c06b13cb9d59c", "zocial-less": "1.0.0", - "swagger-ui": "2.1.8-M1" + "swagger-ui": "2.1.0" }, "resolutions": { "angular": "1.3.14", diff --git a/gulpfile.js b/gulpfile.js index d9d3f736..c3d90b0b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -49,8 +49,9 @@ gulp.task('select2', function() { gulp.task('swagger-ui', function() { var index_html = SRC_DIR + 'api/index.html'; + var swagger_json = 'target/swagger/swagger.json'; var lib = SRC_DIR + 'lib/swagger-ui/dist/**/*'; - return gulp.src([lib, index_html]).pipe(gulp.dest(BUILD_DIR + 'api')); + return gulp.src([lib, index_html, swagger_json]).pipe(gulp.dest(BUILD_DIR + 'api')); }); gulp.task('template-cache', function() { diff --git a/pom.xml b/pom.xml index 385cf1cf..5a9cda68 100644 --- a/pom.xml +++ b/pom.xml @@ -183,9 +183,34 @@ - com.rimerosolutions.maven.plugins - wrapper-maven-plugin - 0.0.4 + com.github.kongchen + swagger-maven-plugin + 3.1.0 + + + + com.commafeed.frontend.resource;com.commafeed.frontend.model;com.commafeed.frontend.model.request + target/swagger + /rest + + CommaFeed + ${project.version} + + + + + + + + + + + compile + + generate + + + @@ -253,15 +278,9 @@ - com.wordnik - swagger-jaxrs - 1.5.3-M1 - - - javax.ws.rs - jsr311-api - - + io.swagger + swagger-annotations + 1.5.0 diff --git a/src/main/app/api/index.html b/src/main/app/api/index.html index b78abbcf..e78dbfa7 100644 --- a/src/main/app/api/index.html +++ b/src/main/app/api/index.html @@ -25,7 +25,7 @@