diff --git a/bower.json b/bower.json index 3ef639d3..ec1f38fb 100644 --- a/bower.json +++ b/bower.json @@ -27,6 +27,7 @@ "momentjs": "2.6.0", "device.js": "matthewhudson/device.js#2ae5c775e35ccc837589e5af34e292c54936778c", "readabilicons": "arc90/readability-readabilicons#34c55561c5b8ec6e90714b50237c06b13cb9d59c", - "zocial": "samcollins/css-social-buttons#1f59ecacde475e563fb6771667597493ec4eecb6" + "zocial": "samcollins/css-social-buttons#1f59ecacde475e563fb6771667597493ec4eecb6", + "swagger-ui": "2.0.21" } } diff --git a/gulpfile.js b/gulpfile.js index 8d6b0610..df7edba9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,6 +51,12 @@ gulp.task('select2', ['bower'], function() { return gulp.src([gif, png]).pipe(gulp.dest(BUILD_DIR + 'css')); }); +gulp.task('swagger-ui', ['bower'], function() { + var index_html = SRC_DIR + 'api/index.html'; + var lib = SRC_DIR + 'lib/swagger-ui/dist/**/*'; + return gulp.src([lib, index_html]).pipe(gulp.dest(BUILD_DIR + 'api')); +}); + gulp.task('template-cache', function() { var options = { module : 'commafeed.services', @@ -59,7 +65,7 @@ gulp.task('template-cache', function() { return gulp.src(SRC_DIR + 'templates/**/*.html').pipe(templateCache(options)).pipe(gulp.dest(TEMP_DIR + 'js')); }); -gulp.task('build-dev', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2', 'template-cache', 'bower'], function() { +gulp.task('build-dev', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2', 'swagger-ui', 'template-cache', 'bower'], function() { var assets = useref.assets({ searchPath : [SRC_DIR, TEMP_DIR] }); @@ -69,7 +75,7 @@ gulp.task('build-dev', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2' revReplace()).pipe(gulp.dest(BUILD_DIR)); }); -gulp.task('build', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2', 'template-cache', 'bower'], function() { +gulp.task('build', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2', 'swagger-ui', 'template-cache', 'bower'], function() { var assets = useref.assets({ searchPath : [SRC_DIR, TEMP_DIR] }); diff --git a/src/main/app/api/index.html b/src/main/app/api/index.html new file mode 100644 index 00000000..05a25131 --- /dev/null +++ b/src/main/app/api/index.html @@ -0,0 +1,88 @@ + + +
+