quake_timesheets_client 0.1.0 → 0.1.1
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/README.md +27 -21
- data/build.sh +1 -1
- data/docs/ApprovalTypesApi.md +36 -38
- data/docs/ApprovalsApi.md +36 -40
- data/docs/CreateApprovalTypesInput.md +22 -0
- data/docs/CreateApprovalsInput.md +24 -0
- data/docs/CreateDatasetsInput.md +18 -0
- data/docs/CreateEntriesInput.md +28 -0
- data/docs/CreatePeopleInput.md +20 -0
- data/docs/DatasetsApi.md +51 -49
- data/docs/EntriesApi.md +52 -72
- data/docs/PeopleApi.md +36 -36
- data/docs/UpdateEntriesInput.md +28 -0
- data/lib/quake_timesheets_client.rb +7 -1
- data/lib/quake_timesheets_client/api/approval_types_api.rb +33 -52
- data/lib/quake_timesheets_client/api/approvals_api.rb +34 -65
- data/lib/quake_timesheets_client/api/datasets_api.rb +45 -50
- data/lib/quake_timesheets_client/api/entries_api.rb +53 -93
- data/lib/quake_timesheets_client/api/people_api.rb +33 -45
- data/lib/quake_timesheets_client/api_client.rb +1 -1
- data/lib/quake_timesheets_client/api_error.rb +1 -1
- data/lib/quake_timesheets_client/configuration.rb +1 -1
- data/lib/quake_timesheets_client/models/approval.rb +1 -1
- data/lib/quake_timesheets_client/models/approval_type.rb +1 -1
- data/lib/quake_timesheets_client/models/create_approval_types_input.rb +254 -0
- data/lib/quake_timesheets_client/models/create_approvals_input.rb +304 -0
- data/lib/quake_timesheets_client/models/create_datasets_input.rb +224 -0
- data/lib/quake_timesheets_client/models/create_entries_input.rb +301 -0
- data/lib/quake_timesheets_client/models/create_people_input.rb +239 -0
- data/lib/quake_timesheets_client/models/dataset.rb +1 -1
- data/lib/quake_timesheets_client/models/entry.rb +1 -1
- data/lib/quake_timesheets_client/models/person.rb +1 -1
- data/lib/quake_timesheets_client/models/update_entries_input.rb +301 -0
- data/lib/quake_timesheets_client/version.rb +2 -2
- data/quake_timesheets_client.gemspec +1 -1
- data/ruby.config.yaml +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/create_approval_types_input_spec.rb +46 -0
- data/spec/models/create_approvals_input_spec.rb +56 -0
- data/spec/models/create_datasets_input_spec.rb +34 -0
- data/spec/models/create_entries_input_spec.rb +68 -0
- data/spec/models/create_people_input_spec.rb +40 -0
- data/spec/models/update_entries_input_spec.rb +68 -0
- data/spec/spec_helper.rb +1 -1
- metadata +26 -2
@@ -0,0 +1,22 @@
|
|
1
|
+
# Quake::Timesheets::CreateApprovalTypesInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dataset_id** | **String** | ID of the dataset this approval type is linked to | |
|
8
|
+
| **name** | **String** | The name of the approval type | |
|
9
|
+
| **weight** | **Float** | The weight provided by approvals of this type | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'quake_timesheets_client'
|
15
|
+
|
16
|
+
instance = Quake::Timesheets::CreateApprovalTypesInput.new(
|
17
|
+
dataset_id: null,
|
18
|
+
name: null,
|
19
|
+
weight: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Quake::Timesheets::CreateApprovalsInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dataset_id** | **String** | ID of the dataset this approval type is linked to | |
|
8
|
+
| **entry_ids** | **Array<String>** | The ID of the Entry this Approval is linked to | |
|
9
|
+
| **approval_type_id** | **String** | The ID of the Approval Type of this Approval | |
|
10
|
+
| **state** | **String** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'quake_timesheets_client'
|
16
|
+
|
17
|
+
instance = Quake::Timesheets::CreateApprovalsInput.new(
|
18
|
+
dataset_id: null,
|
19
|
+
entry_ids: null,
|
20
|
+
approval_type_id: null,
|
21
|
+
state: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Quake::Timesheets::CreateDatasetsInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Name for the Dataset object | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'quake_timesheets_client'
|
13
|
+
|
14
|
+
instance = Quake::Timesheets::CreateDatasetsInput.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Quake::Timesheets::CreateEntriesInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **person_id** | **String** | ID of the person to which this entry pertains | [optional] |
|
8
|
+
| **start_at** | **String** | Time period at which this entry starts | [optional] |
|
9
|
+
| **end_at** | **String** | Time period at which this entry ends | [optional] |
|
10
|
+
| **quantity** | **Float** | | [optional] |
|
11
|
+
| **unit** | **String** | | [optional] |
|
12
|
+
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'quake_timesheets_client'
|
18
|
+
|
19
|
+
instance = Quake::Timesheets::CreateEntriesInput.new(
|
20
|
+
person_id: null,
|
21
|
+
start_at: null,
|
22
|
+
end_at: null,
|
23
|
+
quantity: null,
|
24
|
+
unit: null,
|
25
|
+
external_reference: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Quake::Timesheets::CreatePeopleInput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dataset_id** | **String** | Dataset to which the Person object should belong | |
|
8
|
+
| **name** | **String** | Human readable name for the Person object (usually the subject's real name) | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'quake_timesheets_client'
|
14
|
+
|
15
|
+
instance = Quake::Timesheets::CreatePeopleInput.new(
|
16
|
+
dataset_id: null,
|
17
|
+
name: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/DatasetsApi.md
CHANGED
@@ -4,16 +4,16 @@ All URIs are relative to *https://timesheetsapi.svc.lumbry.co.uk:443*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
8
|
-
| [**
|
9
|
-
| [**
|
7
|
+
| [**create_datasets**](DatasetsApi.md#create_datasets) | **POST** /api/v1/datasets | Create a new Dataset record |
|
8
|
+
| [**index_datasets**](DatasetsApi.md#index_datasets) | **GET** /api/v1/datasets | List all available datasets |
|
9
|
+
| [**show_datasets**](DatasetsApi.md#show_datasets) | **GET** /api/v1/datasets/{id} | Show details about a specific dataset |
|
10
10
|
|
11
11
|
|
12
|
-
##
|
12
|
+
## create_datasets
|
13
13
|
|
14
|
-
> <
|
14
|
+
> <Dataset> create_datasets(opts)
|
15
15
|
|
16
|
-
|
16
|
+
Create a new Dataset record
|
17
17
|
|
18
18
|
### Examples
|
19
19
|
|
@@ -29,41 +29,46 @@ Quake::Timesheets.configure do |config|
|
|
29
29
|
end
|
30
30
|
|
31
31
|
api_instance = Quake::Timesheets::DatasetsApi.new
|
32
|
+
opts = {
|
33
|
+
create_datasets_input: Quake::Timesheets::CreateDatasetsInput.new({name: 'name_example'}) # CreateDatasetsInput |
|
34
|
+
}
|
32
35
|
|
33
36
|
begin
|
34
|
-
#
|
35
|
-
result = api_instance.
|
37
|
+
# Create a new Dataset record
|
38
|
+
result = api_instance.create_datasets(opts)
|
36
39
|
p result
|
37
40
|
rescue Quake::Timesheets::ApiError => e
|
38
|
-
puts "Error when calling DatasetsApi->
|
41
|
+
puts "Error when calling DatasetsApi->create_datasets: #{e}"
|
39
42
|
end
|
40
43
|
```
|
41
44
|
|
42
|
-
#### Using the
|
45
|
+
#### Using the create_datasets_with_http_info variant
|
43
46
|
|
44
47
|
This returns an Array which contains the response data, status code and headers.
|
45
48
|
|
46
|
-
> <Array(<
|
49
|
+
> <Array(<Dataset>, Integer, Hash)> create_datasets_with_http_info(opts)
|
47
50
|
|
48
51
|
```ruby
|
49
52
|
begin
|
50
|
-
#
|
51
|
-
data, status_code, headers = api_instance.
|
53
|
+
# Create a new Dataset record
|
54
|
+
data, status_code, headers = api_instance.create_datasets_with_http_info(opts)
|
52
55
|
p status_code # => 2xx
|
53
56
|
p headers # => { ... }
|
54
|
-
p data # => <
|
57
|
+
p data # => <Dataset>
|
55
58
|
rescue Quake::Timesheets::ApiError => e
|
56
|
-
puts "Error when calling DatasetsApi->
|
59
|
+
puts "Error when calling DatasetsApi->create_datasets_with_http_info: #{e}"
|
57
60
|
end
|
58
61
|
```
|
59
62
|
|
60
63
|
### Parameters
|
61
64
|
|
62
|
-
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **create_datasets_input** | [**CreateDatasetsInput**](CreateDatasetsInput.md) | | [optional] |
|
63
68
|
|
64
69
|
### Return type
|
65
70
|
|
66
|
-
[**
|
71
|
+
[**Dataset**](Dataset.md)
|
67
72
|
|
68
73
|
### Authorization
|
69
74
|
|
@@ -71,15 +76,15 @@ This endpoint does not need any parameter.
|
|
71
76
|
|
72
77
|
### HTTP request headers
|
73
78
|
|
74
|
-
- **Content-Type**:
|
79
|
+
- **Content-Type**: application/json
|
75
80
|
- **Accept**: */*
|
76
81
|
|
77
82
|
|
78
|
-
##
|
83
|
+
## index_datasets
|
79
84
|
|
80
|
-
> <Dataset
|
85
|
+
> <Array<Dataset>> index_datasets
|
81
86
|
|
82
|
-
|
87
|
+
List all available datasets
|
83
88
|
|
84
89
|
### Examples
|
85
90
|
|
@@ -95,44 +100,41 @@ Quake::Timesheets.configure do |config|
|
|
95
100
|
end
|
96
101
|
|
97
102
|
api_instance = Quake::Timesheets::DatasetsApi.new
|
98
|
-
id = 'id_example' # String | ID of the dataset
|
99
103
|
|
100
104
|
begin
|
101
|
-
#
|
102
|
-
result = api_instance.
|
105
|
+
# List all available datasets
|
106
|
+
result = api_instance.index_datasets
|
103
107
|
p result
|
104
108
|
rescue Quake::Timesheets::ApiError => e
|
105
|
-
puts "Error when calling DatasetsApi->
|
109
|
+
puts "Error when calling DatasetsApi->index_datasets: #{e}"
|
106
110
|
end
|
107
111
|
```
|
108
112
|
|
109
|
-
#### Using the
|
113
|
+
#### Using the index_datasets_with_http_info variant
|
110
114
|
|
111
115
|
This returns an Array which contains the response data, status code and headers.
|
112
116
|
|
113
|
-
> <Array(<Dataset
|
117
|
+
> <Array(<Array<Dataset>>, Integer, Hash)> index_datasets_with_http_info
|
114
118
|
|
115
119
|
```ruby
|
116
120
|
begin
|
117
|
-
#
|
118
|
-
data, status_code, headers = api_instance.
|
121
|
+
# List all available datasets
|
122
|
+
data, status_code, headers = api_instance.index_datasets_with_http_info
|
119
123
|
p status_code # => 2xx
|
120
124
|
p headers # => { ... }
|
121
|
-
p data # => <Dataset
|
125
|
+
p data # => <Array<Dataset>>
|
122
126
|
rescue Quake::Timesheets::ApiError => e
|
123
|
-
puts "Error when calling DatasetsApi->
|
127
|
+
puts "Error when calling DatasetsApi->index_datasets_with_http_info: #{e}"
|
124
128
|
end
|
125
129
|
```
|
126
130
|
|
127
131
|
### Parameters
|
128
132
|
|
129
|
-
|
130
|
-
| ---- | ---- | ----------- | ----- |
|
131
|
-
| **id** | **String** | ID of the dataset | |
|
133
|
+
This endpoint does not need any parameter.
|
132
134
|
|
133
135
|
### Return type
|
134
136
|
|
135
|
-
[**Dataset
|
137
|
+
[**Array<Dataset>**](Dataset.md)
|
136
138
|
|
137
139
|
### Authorization
|
138
140
|
|
@@ -144,11 +146,11 @@ end
|
|
144
146
|
- **Accept**: */*
|
145
147
|
|
146
148
|
|
147
|
-
##
|
149
|
+
## show_datasets
|
148
150
|
|
149
|
-
> <Dataset>
|
151
|
+
> <Dataset> show_datasets(id)
|
150
152
|
|
151
|
-
|
153
|
+
Show details about a specific dataset
|
152
154
|
|
153
155
|
### Examples
|
154
156
|
|
@@ -164,32 +166,32 @@ Quake::Timesheets.configure do |config|
|
|
164
166
|
end
|
165
167
|
|
166
168
|
api_instance = Quake::Timesheets::DatasetsApi.new
|
167
|
-
|
169
|
+
id = 'id_example' # String | ID of the dataset
|
168
170
|
|
169
171
|
begin
|
170
|
-
#
|
171
|
-
result = api_instance.
|
172
|
+
# Show details about a specific dataset
|
173
|
+
result = api_instance.show_datasets(id)
|
172
174
|
p result
|
173
175
|
rescue Quake::Timesheets::ApiError => e
|
174
|
-
puts "Error when calling DatasetsApi->
|
176
|
+
puts "Error when calling DatasetsApi->show_datasets: #{e}"
|
175
177
|
end
|
176
178
|
```
|
177
179
|
|
178
|
-
#### Using the
|
180
|
+
#### Using the show_datasets_with_http_info variant
|
179
181
|
|
180
182
|
This returns an Array which contains the response data, status code and headers.
|
181
183
|
|
182
|
-
> <Array(<Dataset>, Integer, Hash)>
|
184
|
+
> <Array(<Dataset>, Integer, Hash)> show_datasets_with_http_info(id)
|
183
185
|
|
184
186
|
```ruby
|
185
187
|
begin
|
186
|
-
#
|
187
|
-
data, status_code, headers = api_instance.
|
188
|
+
# Show details about a specific dataset
|
189
|
+
data, status_code, headers = api_instance.show_datasets_with_http_info(id)
|
188
190
|
p status_code # => 2xx
|
189
191
|
p headers # => { ... }
|
190
192
|
p data # => <Dataset>
|
191
193
|
rescue Quake::Timesheets::ApiError => e
|
192
|
-
puts "Error when calling DatasetsApi->
|
194
|
+
puts "Error when calling DatasetsApi->show_datasets_with_http_info: #{e}"
|
193
195
|
end
|
194
196
|
```
|
195
197
|
|
@@ -197,7 +199,7 @@ end
|
|
197
199
|
|
198
200
|
| Name | Type | Description | Notes |
|
199
201
|
| ---- | ---- | ----------- | ----- |
|
200
|
-
| **
|
202
|
+
| **id** | **String** | ID of the dataset | |
|
201
203
|
|
202
204
|
### Return type
|
203
205
|
|
@@ -209,6 +211,6 @@ end
|
|
209
211
|
|
210
212
|
### HTTP request headers
|
211
213
|
|
212
|
-
- **Content-Type**:
|
214
|
+
- **Content-Type**: Not defined
|
213
215
|
- **Accept**: */*
|
214
216
|
|
data/docs/EntriesApi.md
CHANGED
@@ -4,16 +4,16 @@ All URIs are relative to *https://timesheetsapi.svc.lumbry.co.uk:443*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
8
|
-
| [**
|
9
|
-
| [**
|
7
|
+
| [**create_entries**](EntriesApi.md#create_entries) | **POST** /api/v1/entries | Create a new Entry |
|
8
|
+
| [**index_entries**](EntriesApi.md#index_entries) | **GET** /api/v1/entries | Search for entries matching filters |
|
9
|
+
| [**update_entries**](EntriesApi.md#update_entries) | **POST** /api/v1/entries/{id} | Update an existing Entry |
|
10
10
|
|
11
11
|
|
12
|
-
##
|
12
|
+
## create_entries
|
13
13
|
|
14
|
-
> <
|
14
|
+
> <Entry> create_entries(opts)
|
15
15
|
|
16
|
-
|
16
|
+
Create a new Entry
|
17
17
|
|
18
18
|
### Examples
|
19
19
|
|
@@ -30,36 +30,33 @@ end
|
|
30
30
|
|
31
31
|
api_instance = Quake::Timesheets::EntriesApi.new
|
32
32
|
opts = {
|
33
|
-
|
34
|
-
person_id: 'person_id_example', # String | Filter to the entries belonging to one of the identified people
|
35
|
-
from_date: 'from_date_example', # String | Return only entries after this DateTime (inclusive)
|
36
|
-
to_date: 'to_date_example' # String | Return only entries before this DateTime (inclusive)
|
33
|
+
create_entries_input: Quake::Timesheets::CreateEntriesInput.new # CreateEntriesInput |
|
37
34
|
}
|
38
35
|
|
39
36
|
begin
|
40
|
-
#
|
41
|
-
result = api_instance.
|
37
|
+
# Create a new Entry
|
38
|
+
result = api_instance.create_entries(opts)
|
42
39
|
p result
|
43
40
|
rescue Quake::Timesheets::ApiError => e
|
44
|
-
puts "Error when calling EntriesApi->
|
41
|
+
puts "Error when calling EntriesApi->create_entries: #{e}"
|
45
42
|
end
|
46
43
|
```
|
47
44
|
|
48
|
-
#### Using the
|
45
|
+
#### Using the create_entries_with_http_info variant
|
49
46
|
|
50
47
|
This returns an Array which contains the response data, status code and headers.
|
51
48
|
|
52
|
-
> <Array(<
|
49
|
+
> <Array(<Entry>, Integer, Hash)> create_entries_with_http_info(opts)
|
53
50
|
|
54
51
|
```ruby
|
55
52
|
begin
|
56
|
-
#
|
57
|
-
data, status_code, headers = api_instance.
|
53
|
+
# Create a new Entry
|
54
|
+
data, status_code, headers = api_instance.create_entries_with_http_info(opts)
|
58
55
|
p status_code # => 2xx
|
59
56
|
p headers # => { ... }
|
60
|
-
p data # => <
|
57
|
+
p data # => <Entry>
|
61
58
|
rescue Quake::Timesheets::ApiError => e
|
62
|
-
puts "Error when calling EntriesApi->
|
59
|
+
puts "Error when calling EntriesApi->create_entries_with_http_info: #{e}"
|
63
60
|
end
|
64
61
|
```
|
65
62
|
|
@@ -67,14 +64,11 @@ end
|
|
67
64
|
|
68
65
|
| Name | Type | Description | Notes |
|
69
66
|
| ---- | ---- | ----------- | ----- |
|
70
|
-
| **
|
71
|
-
| **person_id** | **String** | Filter to the entries belonging to one of the identified people | [optional] |
|
72
|
-
| **from_date** | **String** | Return only entries after this DateTime (inclusive) | [optional] |
|
73
|
-
| **to_date** | **String** | Return only entries before this DateTime (inclusive) | [optional] |
|
67
|
+
| **create_entries_input** | [**CreateEntriesInput**](CreateEntriesInput.md) | | [optional] |
|
74
68
|
|
75
69
|
### Return type
|
76
70
|
|
77
|
-
[**
|
71
|
+
[**Entry**](Entry.md)
|
78
72
|
|
79
73
|
### Authorization
|
80
74
|
|
@@ -82,15 +76,15 @@ end
|
|
82
76
|
|
83
77
|
### HTTP request headers
|
84
78
|
|
85
|
-
- **Content-Type**:
|
79
|
+
- **Content-Type**: application/json
|
86
80
|
- **Accept**: */*
|
87
81
|
|
88
82
|
|
89
|
-
##
|
83
|
+
## index_entries
|
90
84
|
|
91
|
-
> <Entry
|
85
|
+
> <Array<Entry>> index_entries(opts)
|
92
86
|
|
93
|
-
|
87
|
+
Search for entries matching filters
|
94
88
|
|
95
89
|
### Examples
|
96
90
|
|
@@ -107,38 +101,36 @@ end
|
|
107
101
|
|
108
102
|
api_instance = Quake::Timesheets::EntriesApi.new
|
109
103
|
opts = {
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
unit: 'hour', # String |
|
115
|
-
external_reference: 'external_reference_example' # String | Unique identifier of the activity this Entry relates to
|
104
|
+
dataset_id: 'dataset_id_example', # String | Filter to the entries belonging to one of the identified datasets
|
105
|
+
person_id: 'person_id_example', # String | Filter to the entries belonging to one of the identified people
|
106
|
+
from_date: 'from_date_example', # String | Return only entries after this DateTime (inclusive)
|
107
|
+
to_date: 'to_date_example' # String | Return only entries before this DateTime (inclusive)
|
116
108
|
}
|
117
109
|
|
118
110
|
begin
|
119
|
-
#
|
120
|
-
result = api_instance.
|
111
|
+
# Search for entries matching filters
|
112
|
+
result = api_instance.index_entries(opts)
|
121
113
|
p result
|
122
114
|
rescue Quake::Timesheets::ApiError => e
|
123
|
-
puts "Error when calling EntriesApi->
|
115
|
+
puts "Error when calling EntriesApi->index_entries: #{e}"
|
124
116
|
end
|
125
117
|
```
|
126
118
|
|
127
|
-
#### Using the
|
119
|
+
#### Using the index_entries_with_http_info variant
|
128
120
|
|
129
121
|
This returns an Array which contains the response data, status code and headers.
|
130
122
|
|
131
|
-
> <Array(<Entry
|
123
|
+
> <Array(<Array<Entry>>, Integer, Hash)> index_entries_with_http_info(opts)
|
132
124
|
|
133
125
|
```ruby
|
134
126
|
begin
|
135
|
-
#
|
136
|
-
data, status_code, headers = api_instance.
|
127
|
+
# Search for entries matching filters
|
128
|
+
data, status_code, headers = api_instance.index_entries_with_http_info(opts)
|
137
129
|
p status_code # => 2xx
|
138
130
|
p headers # => { ... }
|
139
|
-
p data # => <Entry
|
131
|
+
p data # => <Array<Entry>>
|
140
132
|
rescue Quake::Timesheets::ApiError => e
|
141
|
-
puts "Error when calling EntriesApi->
|
133
|
+
puts "Error when calling EntriesApi->index_entries_with_http_info: #{e}"
|
142
134
|
end
|
143
135
|
```
|
144
136
|
|
@@ -146,16 +138,14 @@ end
|
|
146
138
|
|
147
139
|
| Name | Type | Description | Notes |
|
148
140
|
| ---- | ---- | ----------- | ----- |
|
149
|
-
| **
|
150
|
-
| **
|
151
|
-
| **
|
152
|
-
| **
|
153
|
-
| **unit** | **String** | | [optional] |
|
154
|
-
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
141
|
+
| **dataset_id** | **String** | Filter to the entries belonging to one of the identified datasets | [optional] |
|
142
|
+
| **person_id** | **String** | Filter to the entries belonging to one of the identified people | [optional] |
|
143
|
+
| **from_date** | **String** | Return only entries after this DateTime (inclusive) | [optional] |
|
144
|
+
| **to_date** | **String** | Return only entries before this DateTime (inclusive) | [optional] |
|
155
145
|
|
156
146
|
### Return type
|
157
147
|
|
158
|
-
[**Entry
|
148
|
+
[**Array<Entry>**](Entry.md)
|
159
149
|
|
160
150
|
### Authorization
|
161
151
|
|
@@ -163,13 +153,13 @@ end
|
|
163
153
|
|
164
154
|
### HTTP request headers
|
165
155
|
|
166
|
-
- **Content-Type**:
|
156
|
+
- **Content-Type**: Not defined
|
167
157
|
- **Accept**: */*
|
168
158
|
|
169
159
|
|
170
|
-
##
|
160
|
+
## update_entries
|
171
161
|
|
172
|
-
> <Entry>
|
162
|
+
> <Entry> update_entries(id, opts)
|
173
163
|
|
174
164
|
Update an existing Entry
|
175
165
|
|
@@ -189,38 +179,33 @@ end
|
|
189
179
|
api_instance = Quake::Timesheets::EntriesApi.new
|
190
180
|
id = 'id_example' # String | The ID for the Entry
|
191
181
|
opts = {
|
192
|
-
|
193
|
-
start_at: 'start_at_example', # String | Time period at which this entry starts
|
194
|
-
end_at: 'end_at_example', # String | Time period at which this entry ends
|
195
|
-
quantity: 8.14, # Float |
|
196
|
-
unit: 'hour', # String |
|
197
|
-
external_reference: 'external_reference_example' # String | Unique identifier of the activity this Entry relates to
|
182
|
+
update_entries_input: Quake::Timesheets::UpdateEntriesInput.new # UpdateEntriesInput |
|
198
183
|
}
|
199
184
|
|
200
185
|
begin
|
201
186
|
# Update an existing Entry
|
202
|
-
result = api_instance.
|
187
|
+
result = api_instance.update_entries(id, opts)
|
203
188
|
p result
|
204
189
|
rescue Quake::Timesheets::ApiError => e
|
205
|
-
puts "Error when calling EntriesApi->
|
190
|
+
puts "Error when calling EntriesApi->update_entries: #{e}"
|
206
191
|
end
|
207
192
|
```
|
208
193
|
|
209
|
-
#### Using the
|
194
|
+
#### Using the update_entries_with_http_info variant
|
210
195
|
|
211
196
|
This returns an Array which contains the response data, status code and headers.
|
212
197
|
|
213
|
-
> <Array(<Entry>, Integer, Hash)>
|
198
|
+
> <Array(<Entry>, Integer, Hash)> update_entries_with_http_info(id, opts)
|
214
199
|
|
215
200
|
```ruby
|
216
201
|
begin
|
217
202
|
# Update an existing Entry
|
218
|
-
data, status_code, headers = api_instance.
|
203
|
+
data, status_code, headers = api_instance.update_entries_with_http_info(id, opts)
|
219
204
|
p status_code # => 2xx
|
220
205
|
p headers # => { ... }
|
221
206
|
p data # => <Entry>
|
222
207
|
rescue Quake::Timesheets::ApiError => e
|
223
|
-
puts "Error when calling EntriesApi->
|
208
|
+
puts "Error when calling EntriesApi->update_entries_with_http_info: #{e}"
|
224
209
|
end
|
225
210
|
```
|
226
211
|
|
@@ -229,12 +214,7 @@ end
|
|
229
214
|
| Name | Type | Description | Notes |
|
230
215
|
| ---- | ---- | ----------- | ----- |
|
231
216
|
| **id** | **String** | The ID for the Entry | |
|
232
|
-
| **
|
233
|
-
| **start_at** | **String** | Time period at which this entry starts | [optional] |
|
234
|
-
| **end_at** | **String** | Time period at which this entry ends | [optional] |
|
235
|
-
| **quantity** | **Float** | | [optional] |
|
236
|
-
| **unit** | **String** | | [optional] |
|
237
|
-
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
217
|
+
| **update_entries_input** | [**UpdateEntriesInput**](UpdateEntriesInput.md) | | [optional] |
|
238
218
|
|
239
219
|
### Return type
|
240
220
|
|
@@ -246,6 +226,6 @@ end
|
|
246
226
|
|
247
227
|
### HTTP request headers
|
248
228
|
|
249
|
-
- **Content-Type**: application/
|
229
|
+
- **Content-Type**: application/json
|
250
230
|
- **Accept**: */*
|
251
231
|
|