vmpooler 2.1.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,66 +6,82 @@ module Vmpooler
6
6
  api_version = '1'
7
7
 
8
8
  get '/status/?' do
9
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /status/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
9
10
  call env.merge('PATH_INFO' => "/api/v#{api_version}/status")
10
11
  end
11
12
 
12
13
  get '/summary/?' do
14
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /summary/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
13
15
  call env.merge('PATH_INFO' => "/api/v#{api_version}/summary")
14
16
  end
15
17
 
16
18
  get '/summary/:route/?:key?/?' do
19
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /summary/:route/?:key?/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
17
20
  call env.merge('PATH_INFO' => "/api/v#{api_version}/summary/#{params[:route]}/#{params[:key]}")
18
21
  end
19
22
 
20
23
  get '/token/?' do
24
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
21
25
  call env.merge('PATH_INFO' => "/api/v#{api_version}/token")
22
26
  end
23
27
 
24
28
  post '/token/?' do
29
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
25
30
  call env.merge('PATH_INFO' => "/api/v#{api_version}/token")
26
31
  end
27
32
 
28
33
  get '/token/:token/?' do
34
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /token/:token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
29
35
  call env.merge('PATH_INFO' => "/api/v#{api_version}/token/#{params[:token]}")
30
36
  end
31
37
 
32
38
  delete '/token/:token/?' do
39
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called delete /token/:token/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
33
40
  call env.merge('PATH_INFO' => "/api/v#{api_version}/token/#{params[:token]}")
34
41
  end
35
42
 
36
43
  get '/vm/?' do
44
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /vm? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
37
45
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm")
38
46
  end
39
47
 
40
48
  post '/vm/?' do
49
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
41
50
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm")
42
51
  end
43
52
 
44
53
  post '/vm/:template/?' do
54
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:template/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
45
55
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:template]}")
46
56
  end
47
57
 
48
58
  get '/vm/:hostname/?' do
59
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
49
60
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
50
61
  end
51
62
 
52
63
  delete '/vm/:hostname/?' do
64
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called delete /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
53
65
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
54
66
  end
55
67
 
56
68
  put '/vm/:hostname/?' do
69
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called put /vm/:hostname/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
57
70
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}")
58
71
  end
59
72
 
60
73
  post '/vm/:hostname/snapshot/?' do
74
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:hostname/snapshot/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
61
75
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/snapshot")
62
76
  end
63
77
 
64
78
  post '/vm/:hostname/snapshot/:snapshot/?' do
79
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called post /vm/:hostname/snapshot/:snapshot/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
65
80
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/snapshot/#{params[:snapshot]}")
66
81
  end
67
82
 
68
83
  put '/vm/:hostname/disk/:size/?' do
84
+ puts "DEPRECATION WARNING a client (#{request.user_agent}) called put /vm/:hostname/disk/:size/? and got redirected to api_version=1, this behavior will change in the next major version, please modify the client to use v2 in advance"
69
85
  call env.merge('PATH_INFO' => "/api/v#{api_version}/vm/#{params[:hostname]}/disk/#{params[:size]}")
70
86
  end
71
87
  end