From abccb316f88fae16d996d9f3c63b0c551aa7b525 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Sat, 29 Aug 2015 02:38:03 -0500 Subject: [PATCH] Updated docs links in services. --- app/shared/services.js | 18 +++++++++--------- gruntFile.js | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/shared/services.js b/app/shared/services.js index a92b73a94..4fc7f6be2 100644 --- a/app/shared/services.js +++ b/app/shared/services.js @@ -2,7 +2,7 @@ angular.module('dockerui.services', ['ngResource']) .factory('Container', function ($resource, Settings) { 'use strict'; // Resource for interacting with the docker containers - // http://docs.docker.io/en/latest/api/docker_remote_api.html#containers + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#2-1-containers return $resource(Settings.url + '/containers/:id/:action', { name: '@name' }, { @@ -23,6 +23,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('ContainerCommit', function ($resource, $http, Settings) { 'use strict'; + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#create-a-new-image-from-a-container-s-changes return { commit: function (params, callback) { $http({ @@ -40,6 +41,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('ContainerLogs', function ($resource, $http, Settings) { 'use strict'; + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#get-container-logs return { get: function (id, params, callback) { $http({ @@ -59,6 +61,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('ContainerTop', function ($http, Settings) { 'use strict'; + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#list-processes-running-inside-a-container return { get: function (id, params, callback, errorCallback) { $http({ @@ -73,8 +76,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('Image', function ($resource, Settings) { 'use strict'; - // Resource for docker images - // http://docs.docker.io/en/latest/api/docker_remote_api.html#images + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#2-2-images return $resource(Settings.url + '/images/:id/:action', {}, { query: {method: 'GET', params: {all: 0, action: 'json'}, isArray: true}, get: {method: 'GET', params: {action: 'json'}}, @@ -95,16 +97,14 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('Docker', function ($resource, Settings) { 'use strict'; - // Information for docker - // http://docs.docker.io/en/latest/api/docker_remote_api.html#display-system-wide-information + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#show-the-docker-version-information return $resource(Settings.url + '/version', {}, { get: {method: 'GET'} }); }) .factory('Auth', function ($resource, Settings) { 'use strict'; - // Auto Information for docker - // http://docs.docker.io/en/latest/api/docker_remote_api.html#set-auth-configuration + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#check-auth-configuration return $resource(Settings.url + '/auth', {}, { get: {method: 'GET'}, update: {method: 'POST'} @@ -112,8 +112,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('System', function ($resource, Settings) { 'use strict'; - // System for docker - // http://docs.docker.io/en/latest/api/docker_remote_api.html#display-system-wide-information + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#display-system-wide-information return $resource(Settings.url + '/info', {}, { get: {method: 'GET'} }); @@ -179,6 +178,7 @@ angular.module('dockerui.services', ['ngResource']) }) .factory('Dockerfile', function (Settings) { 'use strict'; + // http://docs.docker.com/reference/api/docker_remote_api_<%= remoteApiVersion %>/#build-image-from-a-dockerfile var url = Settings.rawUrl + '/build'; return { build: function (file, callback) { diff --git a/gruntFile.js b/gruntFile.js index 3cf502473..b6f23e378 100644 --- a/gruntFile.js +++ b/gruntFile.js @@ -31,6 +31,7 @@ module.exports = function (grunt) { grunt.initConfig({ distdir: 'dist', pkg: grunt.file.readJSON('package.json'), + remoteApiVersion: 'v1.20', banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;\n' +