rs4 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rs4/document.rb +5 -5
- data/lib/rs4/reusable_template.rb +5 -5
- data/lib/rs4/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b8d42e70c64586aff80ced6defe30ac79274a75c85bc0e4a2e391df6fd3b0ee
|
|
4
|
+
data.tar.gz: bd7992e4a00688fc5a9d17addecdee20d2e29823319564a5f03bbeda34d62cdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0370996268e7383cb6eb8a13904c301f71ef3863d0e6f6887265b873685ec1a75be8b0ac96df8a9be85f50f8bcb88e07bbeb1c6fb349c9e31e0d6cda0b18b8bb'
|
|
7
|
+
data.tar.gz: a6ee87f574d66dbef0e10b3b95d988091e7553d096fe0d9e4107c2f0a9c917918b5503692cd9f53a24d4ef274b4dff2ba4a08b980b16c7e3f003caf8216b5dfa
|
data/lib/rs4/document.rb
CHANGED
|
@@ -86,7 +86,7 @@ module RS4
|
|
|
86
86
|
def get_archive_document(document_guid)
|
|
87
87
|
return unless document_guid.present?
|
|
88
88
|
|
|
89
|
-
path = "archived_documents_by_original_guid/#{document_guid}"
|
|
89
|
+
path = "/public/v1/archived_documents_by_original_guid/#{document_guid}"
|
|
90
90
|
|
|
91
91
|
response = RS4.configuration.request_handler.execute(path, :get)
|
|
92
92
|
|
|
@@ -100,7 +100,7 @@ module RS4
|
|
|
100
100
|
def get_document(document_guid)
|
|
101
101
|
return unless document_guid.present?
|
|
102
102
|
|
|
103
|
-
path = "documents/#{document_guid}"
|
|
103
|
+
path = "/public/v1/documents/#{document_guid}"
|
|
104
104
|
|
|
105
105
|
response = RS4.configuration.request_handler.execute(path, :get)
|
|
106
106
|
|
|
@@ -115,7 +115,7 @@ module RS4
|
|
|
115
115
|
def post_force_complete(document_guid)
|
|
116
116
|
return unless document_guid.present?
|
|
117
117
|
|
|
118
|
-
path = "documents/#{document_guid}/force_complete"
|
|
118
|
+
path = "/v1/documents/#{document_guid}/force_complete"
|
|
119
119
|
|
|
120
120
|
response = RS4.configuration.request_handler.execute(path, :post)
|
|
121
121
|
|
|
@@ -130,7 +130,7 @@ module RS4
|
|
|
130
130
|
def get_force_complete(document_guid)
|
|
131
131
|
return unless document_guid.present?
|
|
132
132
|
|
|
133
|
-
path = "documents/#{document_guid}/force_complete"
|
|
133
|
+
path = "/v1/documents/#{document_guid}/force_complete"
|
|
134
134
|
|
|
135
135
|
response = RS4.configuration.request_handler.execute(path, :get)
|
|
136
136
|
|
|
@@ -143,7 +143,7 @@ module RS4
|
|
|
143
143
|
end
|
|
144
144
|
|
|
145
145
|
def get_documents
|
|
146
|
-
|
|
146
|
+
path = '/public/v1/documents'
|
|
147
147
|
response = RS4.configuration.request_handler.execute(path, :get)
|
|
148
148
|
|
|
149
149
|
unless response.is_a?(RS4::Error) || response.nil?
|
|
@@ -46,7 +46,7 @@ module RS4
|
|
|
46
46
|
def get_reusable_template(template_guid)
|
|
47
47
|
return unless template_guid
|
|
48
48
|
|
|
49
|
-
path = "reusable_templates/#{template_guid}"
|
|
49
|
+
path = "/public/v1/reusable_templates/#{template_guid}"
|
|
50
50
|
|
|
51
51
|
response = RS4.configuration.request_handler.execute(path, :get)
|
|
52
52
|
|
|
@@ -60,7 +60,7 @@ module RS4
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def get_reusable_templates(options = {})
|
|
63
|
-
base_path = 'reusable_templates'
|
|
63
|
+
base_path = '/public/v1/reusable_templates'
|
|
64
64
|
|
|
65
65
|
query = CGI.unescape(options.to_query)
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ module RS4
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def prepare_document(template_guid, options = {})
|
|
73
|
-
path = "reusable_templates/#{template_guid}/prepare_document"
|
|
73
|
+
path = "/public/v1/reusable_templates/#{template_guid}/prepare_document"
|
|
74
74
|
|
|
75
75
|
body = options
|
|
76
76
|
|
|
@@ -88,7 +88,7 @@ module RS4
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def embed_document(template_guid, options = {})
|
|
91
|
-
path = "reusable_templates/#{template_guid}/embed_document"
|
|
91
|
+
path = "/public/v1/reusable_templates/#{template_guid}/embed_document"
|
|
92
92
|
|
|
93
93
|
body = options
|
|
94
94
|
|
|
@@ -106,7 +106,7 @@ module RS4
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
def send_document(template_guid, options = {})
|
|
109
|
-
path = "reusable_templates/#{template_guid}/send_document"
|
|
109
|
+
path = "/public/v1/reusable_templates/#{template_guid}/send_document"
|
|
110
110
|
|
|
111
111
|
body = options
|
|
112
112
|
|
data/lib/rs4/version.rb
CHANGED