examples/api-samples/samples/sample35.rb in groupdocs-1.6.0 vs examples/api-samples/samples/sample35.rb in groupdocs-1.7.0
- old
+ new
@@ -1,13 +1,13 @@
#GET request
-get '/sample35' do
+get '/sample-35-how-to-get-fields-and-their-data-from-pdf-file' do
haml :sample35
end
#POST request
-post '/sample35' do
+post '/sample-35-how-to-get-fields-and-their-data-from-pdf-file' do
#Set variables
set :client_id, params[:clientId]
set :private_key, params[:privateKey]
set :source, params[:source]
set :file_id, params[:fileId]
@@ -102,15 +102,15 @@
#Set variables for template
haml :sample35, :locals => {:userId => settings.client_id, :privateKey => settings.private_key, :fileId => document.file.guid, :base_path => settings.base_path, :html => html, :err => err}
end
#GET request
-get '/sample35/check' do
+get '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' do
haml :sample35
end
#POST request
-post '/sample35/check' do
+post '//sample-35-how-to-get-fields-and-their-data-from-pdf-file/check' do
set :client_id, params[:clientId]
set :private_key, params[:privateKey]
set :base_path, params[:basePath]
set :file_id, params[:fileId]
\ No newline at end of file