moonlogs-ruby 0.0.1.pre.rc
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +524 -0
- data/Rakefile +8 -0
- data/docs/ApiToken.md +10 -0
- data/docs/Credentials.md +8 -0
- data/docs/DefaultApi.md +1318 -0
- data/docs/InlineResponse200.md +11 -0
- data/docs/InlineResponse2001.md +11 -0
- data/docs/InlineResponse20010.md +11 -0
- data/docs/InlineResponse20011.md +11 -0
- data/docs/InlineResponse20012.md +11 -0
- data/docs/InlineResponse20013.md +11 -0
- data/docs/InlineResponse2002.md +11 -0
- data/docs/InlineResponse2003.md +11 -0
- data/docs/InlineResponse2004.md +11 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/InlineResponse2007.md +11 -0
- data/docs/InlineResponse2008.md +11 -0
- data/docs/InlineResponse2009.md +11 -0
- data/docs/Level.md +6 -0
- data/docs/Meta.md +9 -0
- data/docs/OneOfRecordLevel.md +6 -0
- data/docs/OneOfUserRole.md +6 -0
- data/docs/Record.md +15 -0
- data/docs/Role.md +6 -0
- data/docs/Schema.md +14 -0
- data/docs/SchemaField.md +8 -0
- data/docs/SchemaKind.md +8 -0
- data/docs/SchemaSearch.md +8 -0
- data/docs/Session.md +7 -0
- data/docs/Tag.md +8 -0
- data/docs/User.md +14 -0
- data/git_push.sh +55 -0
- data/lib/moonlogs-ruby/api/default_api.rb +1458 -0
- data/lib/moonlogs-ruby/api_client.rb +388 -0
- data/lib/moonlogs-ruby/api_error.rb +57 -0
- data/lib/moonlogs-ruby/configuration.rb +205 -0
- data/lib/moonlogs-ruby/models/api_token.rb +253 -0
- data/lib/moonlogs-ruby/models/credentials.rb +225 -0
- data/lib/moonlogs-ruby/models/inline_response_200.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_1.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_10.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_11.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_12.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_13.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_2.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_3.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_4.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_5.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_6.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_7.rb +268 -0
- data/lib/moonlogs-ruby/models/inline_response_200_8.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_9.rb +269 -0
- data/lib/moonlogs-ruby/models/level.rb +32 -0
- data/lib/moonlogs-ruby/models/meta.rb +239 -0
- data/lib/moonlogs-ruby/models/one_of_record_level.rb +197 -0
- data/lib/moonlogs-ruby/models/one_of_user_role.rb +197 -0
- data/lib/moonlogs-ruby/models/record.rb +303 -0
- data/lib/moonlogs-ruby/models/role.rb +28 -0
- data/lib/moonlogs-ruby/models/schema.rb +298 -0
- data/lib/moonlogs-ruby/models/schema_field.rb +225 -0
- data/lib/moonlogs-ruby/models/schema_kind.rb +225 -0
- data/lib/moonlogs-ruby/models/schema_search.rb +215 -0
- data/lib/moonlogs-ruby/models/session.rb +211 -0
- data/lib/moonlogs-ruby/models/tag.rb +225 -0
- data/lib/moonlogs-ruby/models/user.rb +301 -0
- data/lib/moonlogs-ruby/version.rb +14 -0
- data/lib/moonlogs-ruby.rb +68 -0
- data/moonlogs-ruby-0.0.1.0.gem +0 -0
- data/moonlogs-ruby-0.0.1.gem +0 -0
- data/moonlogs-ruby.gemspec +38 -0
- data/spec/api/default_api_spec.rb +317 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/api_token_spec.rb +58 -0
- data/spec/models/credentials_spec.rb +46 -0
- data/spec/models/inline_response_200_10_spec.rb +64 -0
- data/spec/models/inline_response_200_11_spec.rb +64 -0
- data/spec/models/inline_response_200_12_spec.rb +64 -0
- data/spec/models/inline_response_200_13_spec.rb +64 -0
- data/spec/models/inline_response_200_1_spec.rb +64 -0
- data/spec/models/inline_response_200_2_spec.rb +64 -0
- data/spec/models/inline_response_200_3_spec.rb +64 -0
- data/spec/models/inline_response_200_4_spec.rb +64 -0
- data/spec/models/inline_response_200_5_spec.rb +64 -0
- data/spec/models/inline_response_200_6_spec.rb +64 -0
- data/spec/models/inline_response_200_7_spec.rb +64 -0
- data/spec/models/inline_response_200_8_spec.rb +64 -0
- data/spec/models/inline_response_200_9_spec.rb +64 -0
- data/spec/models/inline_response_200_spec.rb +64 -0
- data/spec/models/level_spec.rb +34 -0
- data/spec/models/meta_spec.rb +52 -0
- data/spec/models/one_of_record_level_spec.rb +34 -0
- data/spec/models/one_of_user_role_spec.rb +34 -0
- data/spec/models/record_spec.rb +88 -0
- data/spec/models/role_spec.rb +34 -0
- data/spec/models/schema_field_spec.rb +46 -0
- data/spec/models/schema_kind_spec.rb +46 -0
- data/spec/models/schema_search_spec.rb +46 -0
- data/spec/models/schema_spec.rb +82 -0
- data/spec/models/session_spec.rb +40 -0
- data/spec/models/tag_spec.rb +46 -0
- data/spec/models/user_spec.rb +82 -0
- data/spec/spec_helper.rb +110 -0
- metadata +243 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e622361c7469a6d5672e4bfd95109eac10e95685c7c0cce2490e4ec2c5d1d1fe
|
4
|
+
data.tar.gz: 82a2ee58c4f21e1a08ac932ddd5f8f8e348148a4e900d99fa3e230a77090b2b1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c466b8ff71d536077ce5ed53f573385215f43abdfbc656c4d6f513fc687917010773dc4ce9915c1a18f4d5f3daed5a3decd447dd43157798a8efe0b2bc583758
|
7
|
+
data.tar.gz: dd29a5f7b41b428ca7c7db408850f26b9d77742c53838eb2a23a4428ffa3f777d01453290ac0d473bf886cf405a38d094aa9bbb55496acc12f15148ab0d45108
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,524 @@
|
|
1
|
+
# moonlogs-ruby
|
2
|
+
|
3
|
+
MoonlogsRuby - the Ruby gem for the Moonlogs
|
4
|
+
|
5
|
+
Moonlogs API
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version: 0.0.1
|
10
|
+
- Package version: 0.0.1
|
11
|
+
- Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build moonlogs-ruby.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./moonlogs-ruby-0.0.1.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./moonlogs-ruby-0.0.1.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'moonlogs-ruby', '~> 0.0.1'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'moonlogs-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'moonlogs-ruby'
|
56
|
+
# Setup authorization
|
57
|
+
MoonlogsRuby.configure do |config|
|
58
|
+
end
|
59
|
+
|
60
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
61
|
+
|
62
|
+
begin
|
63
|
+
result = api_instance.api_api_tokens_get
|
64
|
+
p result
|
65
|
+
rescue MoonlogsRuby::ApiError => e
|
66
|
+
puts "Exception when calling DefaultApi->api_api_tokens_get: #{e}"
|
67
|
+
end
|
68
|
+
# Setup authorization
|
69
|
+
MoonlogsRuby.configure do |config|
|
70
|
+
end
|
71
|
+
|
72
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
73
|
+
id = 56 # Integer |
|
74
|
+
|
75
|
+
|
76
|
+
begin
|
77
|
+
result = api_instance.api_api_tokens_id_delete(id)
|
78
|
+
p result
|
79
|
+
rescue MoonlogsRuby::ApiError => e
|
80
|
+
puts "Exception when calling DefaultApi->api_api_tokens_id_delete: #{e}"
|
81
|
+
end
|
82
|
+
# Setup authorization
|
83
|
+
MoonlogsRuby.configure do |config|
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
87
|
+
id = 56 # Integer |
|
88
|
+
|
89
|
+
|
90
|
+
begin
|
91
|
+
result = api_instance.api_api_tokens_id_get(id)
|
92
|
+
p result
|
93
|
+
rescue MoonlogsRuby::ApiError => e
|
94
|
+
puts "Exception when calling DefaultApi->api_api_tokens_id_get: #{e}"
|
95
|
+
end
|
96
|
+
# Setup authorization
|
97
|
+
MoonlogsRuby.configure do |config|
|
98
|
+
end
|
99
|
+
|
100
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
101
|
+
id = 56 # Integer |
|
102
|
+
opts = {
|
103
|
+
body: MoonlogsRuby::ApiToken.new # ApiToken |
|
104
|
+
}
|
105
|
+
|
106
|
+
begin
|
107
|
+
result = api_instance.api_api_tokens_id_put(id, opts)
|
108
|
+
p result
|
109
|
+
rescue MoonlogsRuby::ApiError => e
|
110
|
+
puts "Exception when calling DefaultApi->api_api_tokens_id_put: #{e}"
|
111
|
+
end
|
112
|
+
# Setup authorization
|
113
|
+
MoonlogsRuby.configure do |config|
|
114
|
+
end
|
115
|
+
|
116
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
117
|
+
opts = {
|
118
|
+
body: MoonlogsRuby::ApiToken.new # ApiToken |
|
119
|
+
}
|
120
|
+
|
121
|
+
begin
|
122
|
+
result = api_instance.api_api_tokens_post(opts)
|
123
|
+
p result
|
124
|
+
rescue MoonlogsRuby::ApiError => e
|
125
|
+
puts "Exception when calling DefaultApi->api_api_tokens_post: #{e}"
|
126
|
+
end
|
127
|
+
# Setup authorization
|
128
|
+
MoonlogsRuby.configure do |config|
|
129
|
+
end
|
130
|
+
|
131
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
132
|
+
opts = {
|
133
|
+
page: 56, # Integer |
|
134
|
+
limit: 56 # Integer |
|
135
|
+
}
|
136
|
+
|
137
|
+
begin
|
138
|
+
result = api_instance.api_logs_get(opts)
|
139
|
+
p result
|
140
|
+
rescue MoonlogsRuby::ApiError => e
|
141
|
+
puts "Exception when calling DefaultApi->api_logs_get: #{e}"
|
142
|
+
end
|
143
|
+
# Setup authorization
|
144
|
+
MoonlogsRuby.configure do |config|
|
145
|
+
end
|
146
|
+
|
147
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
148
|
+
schema_name = 'schema_name_example' # String |
|
149
|
+
hash = 'hash_example' # String |
|
150
|
+
|
151
|
+
|
152
|
+
begin
|
153
|
+
result = api_instance.api_logs_group_schema_name_hash_get(schema_name, hash)
|
154
|
+
p result
|
155
|
+
rescue MoonlogsRuby::ApiError => e
|
156
|
+
puts "Exception when calling DefaultApi->api_logs_group_schema_name_hash_get: #{e}"
|
157
|
+
end
|
158
|
+
# Setup authorization
|
159
|
+
MoonlogsRuby.configure do |config|
|
160
|
+
end
|
161
|
+
|
162
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
163
|
+
id = 56 # Integer |
|
164
|
+
|
165
|
+
|
166
|
+
begin
|
167
|
+
result = api_instance.api_logs_id_get(id)
|
168
|
+
p result
|
169
|
+
rescue MoonlogsRuby::ApiError => e
|
170
|
+
puts "Exception when calling DefaultApi->api_logs_id_get: #{e}"
|
171
|
+
end
|
172
|
+
# Setup authorization
|
173
|
+
MoonlogsRuby.configure do |config|
|
174
|
+
end
|
175
|
+
|
176
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
177
|
+
opts = {
|
178
|
+
body: MoonlogsRuby::Record.new # Record |
|
179
|
+
}
|
180
|
+
|
181
|
+
begin
|
182
|
+
result = api_instance.api_logs_post(opts)
|
183
|
+
p result
|
184
|
+
rescue MoonlogsRuby::ApiError => e
|
185
|
+
puts "Exception when calling DefaultApi->api_logs_post: #{e}"
|
186
|
+
end
|
187
|
+
# Setup authorization
|
188
|
+
MoonlogsRuby.configure do |config|
|
189
|
+
end
|
190
|
+
|
191
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
192
|
+
opts = {
|
193
|
+
body: MoonlogsRuby::Record.new, # Record |
|
194
|
+
page: 56, # Integer |
|
195
|
+
limit: 56 # Integer |
|
196
|
+
}
|
197
|
+
|
198
|
+
begin
|
199
|
+
result = api_instance.api_logs_search_post(opts)
|
200
|
+
p result
|
201
|
+
rescue MoonlogsRuby::ApiError => e
|
202
|
+
puts "Exception when calling DefaultApi->api_logs_search_post: #{e}"
|
203
|
+
end
|
204
|
+
# Setup authorization
|
205
|
+
MoonlogsRuby.configure do |config|
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
209
|
+
|
210
|
+
begin
|
211
|
+
result = api_instance.api_schemas_get
|
212
|
+
p result
|
213
|
+
rescue MoonlogsRuby::ApiError => e
|
214
|
+
puts "Exception when calling DefaultApi->api_schemas_get: #{e}"
|
215
|
+
end
|
216
|
+
# Setup authorization
|
217
|
+
MoonlogsRuby.configure do |config|
|
218
|
+
end
|
219
|
+
|
220
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
221
|
+
id = 56 # Integer |
|
222
|
+
|
223
|
+
|
224
|
+
begin
|
225
|
+
result = api_instance.api_schemas_id_delete(id)
|
226
|
+
p result
|
227
|
+
rescue MoonlogsRuby::ApiError => e
|
228
|
+
puts "Exception when calling DefaultApi->api_schemas_id_delete: #{e}"
|
229
|
+
end
|
230
|
+
# Setup authorization
|
231
|
+
MoonlogsRuby.configure do |config|
|
232
|
+
end
|
233
|
+
|
234
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
235
|
+
id = 56 # Integer |
|
236
|
+
|
237
|
+
|
238
|
+
begin
|
239
|
+
result = api_instance.api_schemas_id_get(id)
|
240
|
+
p result
|
241
|
+
rescue MoonlogsRuby::ApiError => e
|
242
|
+
puts "Exception when calling DefaultApi->api_schemas_id_get: #{e}"
|
243
|
+
end
|
244
|
+
# Setup authorization
|
245
|
+
MoonlogsRuby.configure do |config|
|
246
|
+
end
|
247
|
+
|
248
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
249
|
+
id = 56 # Integer |
|
250
|
+
opts = {
|
251
|
+
body: MoonlogsRuby::Schema.new # Schema |
|
252
|
+
}
|
253
|
+
|
254
|
+
begin
|
255
|
+
result = api_instance.api_schemas_id_put(id, opts)
|
256
|
+
p result
|
257
|
+
rescue MoonlogsRuby::ApiError => e
|
258
|
+
puts "Exception when calling DefaultApi->api_schemas_id_put: #{e}"
|
259
|
+
end
|
260
|
+
# Setup authorization
|
261
|
+
MoonlogsRuby.configure do |config|
|
262
|
+
end
|
263
|
+
|
264
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
265
|
+
opts = {
|
266
|
+
body: MoonlogsRuby::Schema.new # Schema |
|
267
|
+
}
|
268
|
+
|
269
|
+
begin
|
270
|
+
result = api_instance.api_schemas_post(opts)
|
271
|
+
p result
|
272
|
+
rescue MoonlogsRuby::ApiError => e
|
273
|
+
puts "Exception when calling DefaultApi->api_schemas_post: #{e}"
|
274
|
+
end
|
275
|
+
|
276
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
277
|
+
|
278
|
+
begin
|
279
|
+
result = api_instance.api_session_get
|
280
|
+
p result
|
281
|
+
rescue MoonlogsRuby::ApiError => e
|
282
|
+
puts "Exception when calling DefaultApi->api_session_get: #{e}"
|
283
|
+
end
|
284
|
+
|
285
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
286
|
+
opts = {
|
287
|
+
body: MoonlogsRuby::Credentials.new # Credentials |
|
288
|
+
}
|
289
|
+
|
290
|
+
begin
|
291
|
+
result = api_instance.api_session_post(opts)
|
292
|
+
p result
|
293
|
+
rescue MoonlogsRuby::ApiError => e
|
294
|
+
puts "Exception when calling DefaultApi->api_session_post: #{e}"
|
295
|
+
end
|
296
|
+
|
297
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
298
|
+
opts = {
|
299
|
+
body: MoonlogsRuby::User.new # User |
|
300
|
+
}
|
301
|
+
|
302
|
+
begin
|
303
|
+
result = api_instance.api_setup_register_admin_post(opts)
|
304
|
+
p result
|
305
|
+
rescue MoonlogsRuby::ApiError => e
|
306
|
+
puts "Exception when calling DefaultApi->api_setup_register_admin_post: #{e}"
|
307
|
+
end
|
308
|
+
# Setup authorization
|
309
|
+
MoonlogsRuby.configure do |config|
|
310
|
+
end
|
311
|
+
|
312
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
313
|
+
|
314
|
+
begin
|
315
|
+
result = api_instance.api_tags_get
|
316
|
+
p result
|
317
|
+
rescue MoonlogsRuby::ApiError => e
|
318
|
+
puts "Exception when calling DefaultApi->api_tags_get: #{e}"
|
319
|
+
end
|
320
|
+
# Setup authorization
|
321
|
+
MoonlogsRuby.configure do |config|
|
322
|
+
end
|
323
|
+
|
324
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
325
|
+
id = 56 # Integer |
|
326
|
+
|
327
|
+
|
328
|
+
begin
|
329
|
+
result = api_instance.api_tags_id_delete(id)
|
330
|
+
p result
|
331
|
+
rescue MoonlogsRuby::ApiError => e
|
332
|
+
puts "Exception when calling DefaultApi->api_tags_id_delete: #{e}"
|
333
|
+
end
|
334
|
+
# Setup authorization
|
335
|
+
MoonlogsRuby.configure do |config|
|
336
|
+
end
|
337
|
+
|
338
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
339
|
+
id = 56 # Integer |
|
340
|
+
|
341
|
+
|
342
|
+
begin
|
343
|
+
result = api_instance.api_tags_id_get(id)
|
344
|
+
p result
|
345
|
+
rescue MoonlogsRuby::ApiError => e
|
346
|
+
puts "Exception when calling DefaultApi->api_tags_id_get: #{e}"
|
347
|
+
end
|
348
|
+
# Setup authorization
|
349
|
+
MoonlogsRuby.configure do |config|
|
350
|
+
end
|
351
|
+
|
352
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
353
|
+
id = 56 # Integer |
|
354
|
+
opts = {
|
355
|
+
body: MoonlogsRuby::Tag.new # Tag |
|
356
|
+
}
|
357
|
+
|
358
|
+
begin
|
359
|
+
result = api_instance.api_tags_id_put(id, opts)
|
360
|
+
p result
|
361
|
+
rescue MoonlogsRuby::ApiError => e
|
362
|
+
puts "Exception when calling DefaultApi->api_tags_id_put: #{e}"
|
363
|
+
end
|
364
|
+
# Setup authorization
|
365
|
+
MoonlogsRuby.configure do |config|
|
366
|
+
end
|
367
|
+
|
368
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
369
|
+
opts = {
|
370
|
+
body: MoonlogsRuby::Tag.new # Tag |
|
371
|
+
}
|
372
|
+
|
373
|
+
begin
|
374
|
+
result = api_instance.api_tags_post(opts)
|
375
|
+
p result
|
376
|
+
rescue MoonlogsRuby::ApiError => e
|
377
|
+
puts "Exception when calling DefaultApi->api_tags_post: #{e}"
|
378
|
+
end
|
379
|
+
# Setup authorization
|
380
|
+
MoonlogsRuby.configure do |config|
|
381
|
+
end
|
382
|
+
|
383
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
384
|
+
|
385
|
+
begin
|
386
|
+
result = api_instance.api_users_get
|
387
|
+
p result
|
388
|
+
rescue MoonlogsRuby::ApiError => e
|
389
|
+
puts "Exception when calling DefaultApi->api_users_get: #{e}"
|
390
|
+
end
|
391
|
+
# Setup authorization
|
392
|
+
MoonlogsRuby.configure do |config|
|
393
|
+
end
|
394
|
+
|
395
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
396
|
+
id = 56 # Integer |
|
397
|
+
|
398
|
+
|
399
|
+
begin
|
400
|
+
result = api_instance.api_users_id_delete(id)
|
401
|
+
p result
|
402
|
+
rescue MoonlogsRuby::ApiError => e
|
403
|
+
puts "Exception when calling DefaultApi->api_users_id_delete: #{e}"
|
404
|
+
end
|
405
|
+
# Setup authorization
|
406
|
+
MoonlogsRuby.configure do |config|
|
407
|
+
end
|
408
|
+
|
409
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
410
|
+
id = 56 # Integer |
|
411
|
+
|
412
|
+
|
413
|
+
begin
|
414
|
+
result = api_instance.api_users_id_get(id)
|
415
|
+
p result
|
416
|
+
rescue MoonlogsRuby::ApiError => e
|
417
|
+
puts "Exception when calling DefaultApi->api_users_id_get: #{e}"
|
418
|
+
end
|
419
|
+
# Setup authorization
|
420
|
+
MoonlogsRuby.configure do |config|
|
421
|
+
end
|
422
|
+
|
423
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
424
|
+
id = 56 # Integer |
|
425
|
+
opts = {
|
426
|
+
body: MoonlogsRuby::User.new # User |
|
427
|
+
}
|
428
|
+
|
429
|
+
begin
|
430
|
+
result = api_instance.api_users_id_put(id, opts)
|
431
|
+
p result
|
432
|
+
rescue MoonlogsRuby::ApiError => e
|
433
|
+
puts "Exception when calling DefaultApi->api_users_id_put: #{e}"
|
434
|
+
end
|
435
|
+
# Setup authorization
|
436
|
+
MoonlogsRuby.configure do |config|
|
437
|
+
end
|
438
|
+
|
439
|
+
api_instance = MoonlogsRuby::DefaultApi.new
|
440
|
+
opts = {
|
441
|
+
body: MoonlogsRuby::User.new # User |
|
442
|
+
}
|
443
|
+
|
444
|
+
begin
|
445
|
+
result = api_instance.api_users_post(opts)
|
446
|
+
p result
|
447
|
+
rescue MoonlogsRuby::ApiError => e
|
448
|
+
puts "Exception when calling DefaultApi->api_users_post: #{e}"
|
449
|
+
end
|
450
|
+
```
|
451
|
+
|
452
|
+
## Documentation for API Endpoints
|
453
|
+
|
454
|
+
All URIs are relative to */*
|
455
|
+
|
456
|
+
Class | Method | HTTP request | Description
|
457
|
+
------------ | ------------- | ------------- | -------------
|
458
|
+
*MoonlogsRuby::DefaultApi* | [**api_api_tokens_get**](docs/DefaultApi.md#api_api_tokens_get) | **GET** /api/api_tokens |
|
459
|
+
*MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_delete**](docs/DefaultApi.md#api_api_tokens_id_delete) | **DELETE** /api/api_tokens/{id} |
|
460
|
+
*MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_get**](docs/DefaultApi.md#api_api_tokens_id_get) | **GET** /api/api_tokens/{id} |
|
461
|
+
*MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_put**](docs/DefaultApi.md#api_api_tokens_id_put) | **PUT** /api/api_tokens/{id} |
|
462
|
+
*MoonlogsRuby::DefaultApi* | [**api_api_tokens_post**](docs/DefaultApi.md#api_api_tokens_post) | **POST** /api/api_tokens |
|
463
|
+
*MoonlogsRuby::DefaultApi* | [**api_logs_get**](docs/DefaultApi.md#api_logs_get) | **GET** /api/logs |
|
464
|
+
*MoonlogsRuby::DefaultApi* | [**api_logs_group_schema_name_hash_get**](docs/DefaultApi.md#api_logs_group_schema_name_hash_get) | **GET** /api/logs/group/{schema_name}/{hash} |
|
465
|
+
*MoonlogsRuby::DefaultApi* | [**api_logs_id_get**](docs/DefaultApi.md#api_logs_id_get) | **GET** /api/logs/{id} |
|
466
|
+
*MoonlogsRuby::DefaultApi* | [**api_logs_post**](docs/DefaultApi.md#api_logs_post) | **POST** /api/logs |
|
467
|
+
*MoonlogsRuby::DefaultApi* | [**api_logs_search_post**](docs/DefaultApi.md#api_logs_search_post) | **POST** /api/logs/search |
|
468
|
+
*MoonlogsRuby::DefaultApi* | [**api_schemas_get**](docs/DefaultApi.md#api_schemas_get) | **GET** /api/schemas |
|
469
|
+
*MoonlogsRuby::DefaultApi* | [**api_schemas_id_delete**](docs/DefaultApi.md#api_schemas_id_delete) | **DELETE** /api/schemas/{id} |
|
470
|
+
*MoonlogsRuby::DefaultApi* | [**api_schemas_id_get**](docs/DefaultApi.md#api_schemas_id_get) | **GET** /api/schemas/{id} |
|
471
|
+
*MoonlogsRuby::DefaultApi* | [**api_schemas_id_put**](docs/DefaultApi.md#api_schemas_id_put) | **PUT** /api/schemas/{id} |
|
472
|
+
*MoonlogsRuby::DefaultApi* | [**api_schemas_post**](docs/DefaultApi.md#api_schemas_post) | **POST** /api/schemas |
|
473
|
+
*MoonlogsRuby::DefaultApi* | [**api_session_get**](docs/DefaultApi.md#api_session_get) | **GET** /api/session |
|
474
|
+
*MoonlogsRuby::DefaultApi* | [**api_session_post**](docs/DefaultApi.md#api_session_post) | **POST** /api/session |
|
475
|
+
*MoonlogsRuby::DefaultApi* | [**api_setup_register_admin_post**](docs/DefaultApi.md#api_setup_register_admin_post) | **POST** /api/setup/register_admin |
|
476
|
+
*MoonlogsRuby::DefaultApi* | [**api_tags_get**](docs/DefaultApi.md#api_tags_get) | **GET** /api/tags |
|
477
|
+
*MoonlogsRuby::DefaultApi* | [**api_tags_id_delete**](docs/DefaultApi.md#api_tags_id_delete) | **DELETE** /api/tags/{id} |
|
478
|
+
*MoonlogsRuby::DefaultApi* | [**api_tags_id_get**](docs/DefaultApi.md#api_tags_id_get) | **GET** /api/tags/{id} |
|
479
|
+
*MoonlogsRuby::DefaultApi* | [**api_tags_id_put**](docs/DefaultApi.md#api_tags_id_put) | **PUT** /api/tags/{id} |
|
480
|
+
*MoonlogsRuby::DefaultApi* | [**api_tags_post**](docs/DefaultApi.md#api_tags_post) | **POST** /api/tags |
|
481
|
+
*MoonlogsRuby::DefaultApi* | [**api_users_get**](docs/DefaultApi.md#api_users_get) | **GET** /api/users |
|
482
|
+
*MoonlogsRuby::DefaultApi* | [**api_users_id_delete**](docs/DefaultApi.md#api_users_id_delete) | **DELETE** /api/users/{id} |
|
483
|
+
*MoonlogsRuby::DefaultApi* | [**api_users_id_get**](docs/DefaultApi.md#api_users_id_get) | **GET** /api/users/{id} |
|
484
|
+
*MoonlogsRuby::DefaultApi* | [**api_users_id_put**](docs/DefaultApi.md#api_users_id_put) | **PUT** /api/users/{id} |
|
485
|
+
*MoonlogsRuby::DefaultApi* | [**api_users_post**](docs/DefaultApi.md#api_users_post) | **POST** /api/users |
|
486
|
+
|
487
|
+
## Documentation for Models
|
488
|
+
|
489
|
+
- [MoonlogsRuby::ApiToken](docs/ApiToken.md)
|
490
|
+
- [MoonlogsRuby::Credentials](docs/Credentials.md)
|
491
|
+
- [MoonlogsRuby::InlineResponse200](docs/InlineResponse200.md)
|
492
|
+
- [MoonlogsRuby::InlineResponse2001](docs/InlineResponse2001.md)
|
493
|
+
- [MoonlogsRuby::InlineResponse20010](docs/InlineResponse20010.md)
|
494
|
+
- [MoonlogsRuby::InlineResponse20011](docs/InlineResponse20011.md)
|
495
|
+
- [MoonlogsRuby::InlineResponse20012](docs/InlineResponse20012.md)
|
496
|
+
- [MoonlogsRuby::InlineResponse20013](docs/InlineResponse20013.md)
|
497
|
+
- [MoonlogsRuby::InlineResponse2002](docs/InlineResponse2002.md)
|
498
|
+
- [MoonlogsRuby::InlineResponse2003](docs/InlineResponse2003.md)
|
499
|
+
- [MoonlogsRuby::InlineResponse2004](docs/InlineResponse2004.md)
|
500
|
+
- [MoonlogsRuby::InlineResponse2005](docs/InlineResponse2005.md)
|
501
|
+
- [MoonlogsRuby::InlineResponse2006](docs/InlineResponse2006.md)
|
502
|
+
- [MoonlogsRuby::InlineResponse2007](docs/InlineResponse2007.md)
|
503
|
+
- [MoonlogsRuby::InlineResponse2008](docs/InlineResponse2008.md)
|
504
|
+
- [MoonlogsRuby::InlineResponse2009](docs/InlineResponse2009.md)
|
505
|
+
- [MoonlogsRuby::Level](docs/Level.md)
|
506
|
+
- [MoonlogsRuby::Meta](docs/Meta.md)
|
507
|
+
- [MoonlogsRuby::OneOfRecordLevel](docs/OneOfRecordLevel.md)
|
508
|
+
- [MoonlogsRuby::OneOfUserRole](docs/OneOfUserRole.md)
|
509
|
+
- [MoonlogsRuby::Record](docs/Record.md)
|
510
|
+
- [MoonlogsRuby::Role](docs/Role.md)
|
511
|
+
- [MoonlogsRuby::Schema](docs/Schema.md)
|
512
|
+
- [MoonlogsRuby::SchemaField](docs/SchemaField.md)
|
513
|
+
- [MoonlogsRuby::SchemaKind](docs/SchemaKind.md)
|
514
|
+
- [MoonlogsRuby::SchemaSearch](docs/SchemaSearch.md)
|
515
|
+
- [MoonlogsRuby::Session](docs/Session.md)
|
516
|
+
- [MoonlogsRuby::Tag](docs/Tag.md)
|
517
|
+
- [MoonlogsRuby::User](docs/User.md)
|
518
|
+
|
519
|
+
## Documentation for Authorization
|
520
|
+
|
521
|
+
|
522
|
+
### http1
|
523
|
+
|
524
|
+
|
data/Rakefile
ADDED
data/docs/ApiToken.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# MoonlogsRuby::ApiToken
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | [**BigDecimal**](BigDecimal.md) | |
|
7
|
+
**token** | **String** | |
|
8
|
+
**name** | **String** | |
|
9
|
+
**is_revoked** | **BOOLEAN** | |
|
10
|
+
|