quake_timesheets_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/GENERATING_README.md +17 -0
  3. data/Gemfile +9 -0
  4. data/README.md +161 -0
  5. data/Rakefile +10 -0
  6. data/build.sh +10 -0
  7. data/commands +13 -0
  8. data/docs/Approval.md +34 -0
  9. data/docs/ApprovalType.md +24 -0
  10. data/docs/ApprovalTypesApi.md +153 -0
  11. data/docs/ApprovalsApi.md +153 -0
  12. data/docs/Dataset.md +24 -0
  13. data/docs/DatasetsApi.md +214 -0
  14. data/docs/EntriesApi.md +251 -0
  15. data/docs/Entry.md +36 -0
  16. data/docs/PeopleApi.md +151 -0
  17. data/docs/Person.md +22 -0
  18. data/git_push.sh +58 -0
  19. data/lib/quake_timesheets_client.rb +58 -0
  20. data/lib/quake_timesheets_client/api/approval_types_api.rb +158 -0
  21. data/lib/quake_timesheets_client/api/approvals_api.rb +174 -0
  22. data/lib/quake_timesheets_client/api/datasets_api.rb +202 -0
  23. data/lib/quake_timesheets_client/api/entries_api.rb +253 -0
  24. data/lib/quake_timesheets_client/api/people_api.rb +151 -0
  25. data/lib/quake_timesheets_client/api_client.rb +396 -0
  26. data/lib/quake_timesheets_client/api_error.rb +57 -0
  27. data/lib/quake_timesheets_client/configuration.rb +302 -0
  28. data/lib/quake_timesheets_client/models/approval.rb +378 -0
  29. data/lib/quake_timesheets_client/models/approval_type.rb +269 -0
  30. data/lib/quake_timesheets_client/models/dataset.rb +268 -0
  31. data/lib/quake_timesheets_client/models/entry.rb +361 -0
  32. data/lib/quake_timesheets_client/models/person.rb +254 -0
  33. data/lib/quake_timesheets_client/version.rb +24 -0
  34. data/quake_timesheets_client.gemspec +38 -0
  35. data/ruby-templates/README.mustache +187 -0
  36. data/ruby-templates/api_client.mustache +263 -0
  37. data/ruby-templates/api_client_faraday_partial.mustache +140 -0
  38. data/ruby-templates/configuration.mustache +379 -0
  39. data/ruby-templates/gem.mustache +59 -0
  40. data/ruby-templates/version.mustache +16 -0
  41. data/ruby.config.yaml +10 -0
  42. data/spec/api/approval_types_api_spec.rb +59 -0
  43. data/spec/api/approvals_api_spec.rb +60 -0
  44. data/spec/api/datasets_api_spec.rb +67 -0
  45. data/spec/api/entries_api_spec.rb +82 -0
  46. data/spec/api/people_api_spec.rb +58 -0
  47. data/spec/api_client_spec.rb +188 -0
  48. data/spec/configuration_spec.rb +42 -0
  49. data/spec/models/approval_spec.rb +86 -0
  50. data/spec/models/approval_type_spec.rb +52 -0
  51. data/spec/models/dataset_spec.rb +52 -0
  52. data/spec/models/entry_spec.rb +92 -0
  53. data/spec/models/person_spec.rb +46 -0
  54. data/spec/spec_helper.rb +111 -0
  55. metadata +149 -0
@@ -0,0 +1,153 @@
1
+ # Quake::Timesheets::ApprovalsApi
2
+
3
+ All URIs are relative to *https://timesheetsapi.svc.lumbry.co.uk:443*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_api_v1_approvals**](ApprovalsApi.md#get_api_v1_approvals) | **GET** /api/v1/approvals | Search for approval types matching filters |
8
+ | [**post_api_v1_approvals**](ApprovalsApi.md#post_api_v1_approvals) | **POST** /api/v1/approvals | Create a new Approval |
9
+
10
+
11
+ ## get_api_v1_approvals
12
+
13
+ > <Array<Approval>> get_api_v1_approvals(dataset_id)
14
+
15
+ Search for approval types matching filters
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'quake_timesheets_client'
22
+ # setup authorization
23
+ Quake::Timesheets.configure do |config|
24
+ # Configure API key authorization: authToken
25
+ config.api_key['authToken'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ # config.api_key_prefix['authToken'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = Quake::Timesheets::ApprovalsApi.new
31
+ dataset_id = 'dataset_id_example' # String | Filter to the approvals belonging to one of the identified datasets
32
+
33
+ begin
34
+ # Search for approval types matching filters
35
+ result = api_instance.get_api_v1_approvals(dataset_id)
36
+ p result
37
+ rescue Quake::Timesheets::ApiError => e
38
+ puts "Error when calling ApprovalsApi->get_api_v1_approvals: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_api_v1_approvals_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<Array<Approval>>, Integer, Hash)> get_api_v1_approvals_with_http_info(dataset_id)
47
+
48
+ ```ruby
49
+ begin
50
+ # Search for approval types matching filters
51
+ data, status_code, headers = api_instance.get_api_v1_approvals_with_http_info(dataset_id)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <Array<Approval>>
55
+ rescue Quake::Timesheets::ApiError => e
56
+ puts "Error when calling ApprovalsApi->get_api_v1_approvals_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **dataset_id** | **String** | Filter to the approvals belonging to one of the identified datasets | |
65
+
66
+ ### Return type
67
+
68
+ [**Array&lt;Approval&gt;**](Approval.md)
69
+
70
+ ### Authorization
71
+
72
+ [authToken](../README.md#authToken)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: */*
78
+
79
+
80
+ ## post_api_v1_approvals
81
+
82
+ > <Approval> post_api_v1_approvals(state, approval_type_id, entry_ids, dataset_id)
83
+
84
+ Create a new Approval
85
+
86
+ ### Examples
87
+
88
+ ```ruby
89
+ require 'time'
90
+ require 'quake_timesheets_client'
91
+ # setup authorization
92
+ Quake::Timesheets.configure do |config|
93
+ # Configure API key authorization: authToken
94
+ config.api_key['authToken'] = 'YOUR API KEY'
95
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
96
+ # config.api_key_prefix['authToken'] = 'Bearer'
97
+ end
98
+
99
+ api_instance = Quake::Timesheets::ApprovalsApi.new
100
+ state = 'requested' # String |
101
+ approval_type_id = 'approval_type_id_example' # String | The ID of the Approval Type of this Approval
102
+ entry_ids = ['inner_example'] # Array<String> | The ID of the Entry this Approval is linked to
103
+ dataset_id = 'dataset_id_example' # String | ID of the dataset this approval type is linked to
104
+
105
+ begin
106
+ # Create a new Approval
107
+ result = api_instance.post_api_v1_approvals(state, approval_type_id, entry_ids, dataset_id)
108
+ p result
109
+ rescue Quake::Timesheets::ApiError => e
110
+ puts "Error when calling ApprovalsApi->post_api_v1_approvals: #{e}"
111
+ end
112
+ ```
113
+
114
+ #### Using the post_api_v1_approvals_with_http_info variant
115
+
116
+ This returns an Array which contains the response data, status code and headers.
117
+
118
+ > <Array(<Approval>, Integer, Hash)> post_api_v1_approvals_with_http_info(state, approval_type_id, entry_ids, dataset_id)
119
+
120
+ ```ruby
121
+ begin
122
+ # Create a new Approval
123
+ data, status_code, headers = api_instance.post_api_v1_approvals_with_http_info(state, approval_type_id, entry_ids, dataset_id)
124
+ p status_code # => 2xx
125
+ p headers # => { ... }
126
+ p data # => <Approval>
127
+ rescue Quake::Timesheets::ApiError => e
128
+ puts "Error when calling ApprovalsApi->post_api_v1_approvals_with_http_info: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Name | Type | Description | Notes |
135
+ | ---- | ---- | ----------- | ----- |
136
+ | **state** | **String** | | |
137
+ | **approval_type_id** | **String** | The ID of the Approval Type of this Approval | |
138
+ | **entry_ids** | [**Array&lt;String&gt;**](String.md) | The ID of the Entry this Approval is linked to | |
139
+ | **dataset_id** | **String** | ID of the dataset this approval type is linked to | |
140
+
141
+ ### Return type
142
+
143
+ [**Approval**](Approval.md)
144
+
145
+ ### Authorization
146
+
147
+ [authToken](../README.md#authToken)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: application/x-www-form-urlencoded, multipart/form-data
152
+ - **Accept**: */*
153
+
data/docs/Dataset.md ADDED
@@ -0,0 +1,24 @@
1
+ # Quake::Timesheets::Dataset
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The ID for the dataset | |
8
+ | **name** | **String** | | |
9
+ | **created_at** | **String** | Time at which the record was created | |
10
+ | **updated_at** | **String** | Time at which the record was updated | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'quake_timesheets_client'
16
+
17
+ instance = Quake::Timesheets::Dataset.new(
18
+ id: null,
19
+ name: null,
20
+ created_at: null,
21
+ updated_at: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,214 @@
1
+ # Quake::Timesheets::DatasetsApi
2
+
3
+ All URIs are relative to *https://timesheetsapi.svc.lumbry.co.uk:443*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_api_v1_datasets**](DatasetsApi.md#get_api_v1_datasets) | **GET** /api/v1/datasets | List all available datasets |
8
+ | [**get_api_v1_datasets_id**](DatasetsApi.md#get_api_v1_datasets_id) | **GET** /api/v1/datasets/{id} | Show details about a specific dataset |
9
+ | [**post_api_v1_datasets**](DatasetsApi.md#post_api_v1_datasets) | **POST** /api/v1/datasets | Create a new Dataset record |
10
+
11
+
12
+ ## get_api_v1_datasets
13
+
14
+ > <Array<Dataset>> get_api_v1_datasets
15
+
16
+ List all available datasets
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'quake_timesheets_client'
23
+ # setup authorization
24
+ Quake::Timesheets.configure do |config|
25
+ # Configure API key authorization: authToken
26
+ config.api_key['authToken'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ # config.api_key_prefix['authToken'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = Quake::Timesheets::DatasetsApi.new
32
+
33
+ begin
34
+ # List all available datasets
35
+ result = api_instance.get_api_v1_datasets
36
+ p result
37
+ rescue Quake::Timesheets::ApiError => e
38
+ puts "Error when calling DatasetsApi->get_api_v1_datasets: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_api_v1_datasets_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<Array<Dataset>>, Integer, Hash)> get_api_v1_datasets_with_http_info
47
+
48
+ ```ruby
49
+ begin
50
+ # List all available datasets
51
+ data, status_code, headers = api_instance.get_api_v1_datasets_with_http_info
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <Array<Dataset>>
55
+ rescue Quake::Timesheets::ApiError => e
56
+ puts "Error when calling DatasetsApi->get_api_v1_datasets_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ This endpoint does not need any parameter.
63
+
64
+ ### Return type
65
+
66
+ [**Array&lt;Dataset&gt;**](Dataset.md)
67
+
68
+ ### Authorization
69
+
70
+ [authToken](../README.md#authToken)
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: */*
76
+
77
+
78
+ ## get_api_v1_datasets_id
79
+
80
+ > <Dataset> get_api_v1_datasets_id(id)
81
+
82
+ Show details about a specific dataset
83
+
84
+ ### Examples
85
+
86
+ ```ruby
87
+ require 'time'
88
+ require 'quake_timesheets_client'
89
+ # setup authorization
90
+ Quake::Timesheets.configure do |config|
91
+ # Configure API key authorization: authToken
92
+ config.api_key['authToken'] = 'YOUR API KEY'
93
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
94
+ # config.api_key_prefix['authToken'] = 'Bearer'
95
+ end
96
+
97
+ api_instance = Quake::Timesheets::DatasetsApi.new
98
+ id = 'id_example' # String | ID of the dataset
99
+
100
+ begin
101
+ # Show details about a specific dataset
102
+ result = api_instance.get_api_v1_datasets_id(id)
103
+ p result
104
+ rescue Quake::Timesheets::ApiError => e
105
+ puts "Error when calling DatasetsApi->get_api_v1_datasets_id: #{e}"
106
+ end
107
+ ```
108
+
109
+ #### Using the get_api_v1_datasets_id_with_http_info variant
110
+
111
+ This returns an Array which contains the response data, status code and headers.
112
+
113
+ > <Array(<Dataset>, Integer, Hash)> get_api_v1_datasets_id_with_http_info(id)
114
+
115
+ ```ruby
116
+ begin
117
+ # Show details about a specific dataset
118
+ data, status_code, headers = api_instance.get_api_v1_datasets_id_with_http_info(id)
119
+ p status_code # => 2xx
120
+ p headers # => { ... }
121
+ p data # => <Dataset>
122
+ rescue Quake::Timesheets::ApiError => e
123
+ puts "Error when calling DatasetsApi->get_api_v1_datasets_id_with_http_info: #{e}"
124
+ end
125
+ ```
126
+
127
+ ### Parameters
128
+
129
+ | Name | Type | Description | Notes |
130
+ | ---- | ---- | ----------- | ----- |
131
+ | **id** | **String** | ID of the dataset | |
132
+
133
+ ### Return type
134
+
135
+ [**Dataset**](Dataset.md)
136
+
137
+ ### Authorization
138
+
139
+ [authToken](../README.md#authToken)
140
+
141
+ ### HTTP request headers
142
+
143
+ - **Content-Type**: Not defined
144
+ - **Accept**: */*
145
+
146
+
147
+ ## post_api_v1_datasets
148
+
149
+ > <Dataset> post_api_v1_datasets(name)
150
+
151
+ Create a new Dataset record
152
+
153
+ ### Examples
154
+
155
+ ```ruby
156
+ require 'time'
157
+ require 'quake_timesheets_client'
158
+ # setup authorization
159
+ Quake::Timesheets.configure do |config|
160
+ # Configure API key authorization: authToken
161
+ config.api_key['authToken'] = 'YOUR API KEY'
162
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
163
+ # config.api_key_prefix['authToken'] = 'Bearer'
164
+ end
165
+
166
+ api_instance = Quake::Timesheets::DatasetsApi.new
167
+ name = 'name_example' # String | Name for the Dataset object
168
+
169
+ begin
170
+ # Create a new Dataset record
171
+ result = api_instance.post_api_v1_datasets(name)
172
+ p result
173
+ rescue Quake::Timesheets::ApiError => e
174
+ puts "Error when calling DatasetsApi->post_api_v1_datasets: #{e}"
175
+ end
176
+ ```
177
+
178
+ #### Using the post_api_v1_datasets_with_http_info variant
179
+
180
+ This returns an Array which contains the response data, status code and headers.
181
+
182
+ > <Array(<Dataset>, Integer, Hash)> post_api_v1_datasets_with_http_info(name)
183
+
184
+ ```ruby
185
+ begin
186
+ # Create a new Dataset record
187
+ data, status_code, headers = api_instance.post_api_v1_datasets_with_http_info(name)
188
+ p status_code # => 2xx
189
+ p headers # => { ... }
190
+ p data # => <Dataset>
191
+ rescue Quake::Timesheets::ApiError => e
192
+ puts "Error when calling DatasetsApi->post_api_v1_datasets_with_http_info: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ | Name | Type | Description | Notes |
199
+ | ---- | ---- | ----------- | ----- |
200
+ | **name** | **String** | Name for the Dataset object | |
201
+
202
+ ### Return type
203
+
204
+ [**Dataset**](Dataset.md)
205
+
206
+ ### Authorization
207
+
208
+ [authToken](../README.md#authToken)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: application/x-www-form-urlencoded, multipart/form-data
213
+ - **Accept**: */*
214
+
@@ -0,0 +1,251 @@
1
+ # Quake::Timesheets::EntriesApi
2
+
3
+ All URIs are relative to *https://timesheetsapi.svc.lumbry.co.uk:443*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_api_v1_entries**](EntriesApi.md#get_api_v1_entries) | **GET** /api/v1/entries | Search for entries matching filters |
8
+ | [**post_api_v1_entries**](EntriesApi.md#post_api_v1_entries) | **POST** /api/v1/entries | Create a new Entry |
9
+ | [**post_api_v1_entries_id**](EntriesApi.md#post_api_v1_entries_id) | **POST** /api/v1/entries/{id} | Update an existing Entry |
10
+
11
+
12
+ ## get_api_v1_entries
13
+
14
+ > <Array<Entry>> get_api_v1_entries(opts)
15
+
16
+ Search for entries matching filters
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'quake_timesheets_client'
23
+ # setup authorization
24
+ Quake::Timesheets.configure do |config|
25
+ # Configure API key authorization: authToken
26
+ config.api_key['authToken'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ # config.api_key_prefix['authToken'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = Quake::Timesheets::EntriesApi.new
32
+ opts = {
33
+ dataset_id: 'dataset_id_example', # String | Filter to the entries belonging to one of the identified datasets
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)
37
+ }
38
+
39
+ begin
40
+ # Search for entries matching filters
41
+ result = api_instance.get_api_v1_entries(opts)
42
+ p result
43
+ rescue Quake::Timesheets::ApiError => e
44
+ puts "Error when calling EntriesApi->get_api_v1_entries: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the get_api_v1_entries_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<Array<Entry>>, Integer, Hash)> get_api_v1_entries_with_http_info(opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # Search for entries matching filters
57
+ data, status_code, headers = api_instance.get_api_v1_entries_with_http_info(opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <Array<Entry>>
61
+ rescue Quake::Timesheets::ApiError => e
62
+ puts "Error when calling EntriesApi->get_api_v1_entries_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **dataset_id** | **String** | Filter to the entries belonging to one of the identified datasets | [optional] |
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] |
74
+
75
+ ### Return type
76
+
77
+ [**Array&lt;Entry&gt;**](Entry.md)
78
+
79
+ ### Authorization
80
+
81
+ [authToken](../README.md#authToken)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: Not defined
86
+ - **Accept**: */*
87
+
88
+
89
+ ## post_api_v1_entries
90
+
91
+ > <Entry> post_api_v1_entries(opts)
92
+
93
+ Create a new Entry
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'quake_timesheets_client'
100
+ # setup authorization
101
+ Quake::Timesheets.configure do |config|
102
+ # Configure API key authorization: authToken
103
+ config.api_key['authToken'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ # config.api_key_prefix['authToken'] = 'Bearer'
106
+ end
107
+
108
+ api_instance = Quake::Timesheets::EntriesApi.new
109
+ opts = {
110
+ person_id: 'person_id_example', # String | ID of the person to which this entry pertains
111
+ start_at: 'start_at_example', # String | Time period at which this entry starts
112
+ end_at: 'end_at_example', # String | Time period at which this entry ends
113
+ quantity: 8.14, # Float |
114
+ unit: 'hour', # String |
115
+ external_reference: 'external_reference_example' # String | Unique identifier of the activity this Entry relates to
116
+ }
117
+
118
+ begin
119
+ # Create a new Entry
120
+ result = api_instance.post_api_v1_entries(opts)
121
+ p result
122
+ rescue Quake::Timesheets::ApiError => e
123
+ puts "Error when calling EntriesApi->post_api_v1_entries: #{e}"
124
+ end
125
+ ```
126
+
127
+ #### Using the post_api_v1_entries_with_http_info variant
128
+
129
+ This returns an Array which contains the response data, status code and headers.
130
+
131
+ > <Array(<Entry>, Integer, Hash)> post_api_v1_entries_with_http_info(opts)
132
+
133
+ ```ruby
134
+ begin
135
+ # Create a new Entry
136
+ data, status_code, headers = api_instance.post_api_v1_entries_with_http_info(opts)
137
+ p status_code # => 2xx
138
+ p headers # => { ... }
139
+ p data # => <Entry>
140
+ rescue Quake::Timesheets::ApiError => e
141
+ puts "Error when calling EntriesApi->post_api_v1_entries_with_http_info: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Name | Type | Description | Notes |
148
+ | ---- | ---- | ----------- | ----- |
149
+ | **person_id** | **String** | ID of the person to which this entry pertains | [optional] |
150
+ | **start_at** | **String** | Time period at which this entry starts | [optional] |
151
+ | **end_at** | **String** | Time period at which this entry ends | [optional] |
152
+ | **quantity** | **Float** | | [optional] |
153
+ | **unit** | **String** | | [optional] |
154
+ | **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
155
+
156
+ ### Return type
157
+
158
+ [**Entry**](Entry.md)
159
+
160
+ ### Authorization
161
+
162
+ [authToken](../README.md#authToken)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: application/x-www-form-urlencoded, multipart/form-data
167
+ - **Accept**: */*
168
+
169
+
170
+ ## post_api_v1_entries_id
171
+
172
+ > <Entry> post_api_v1_entries_id(id, opts)
173
+
174
+ Update an existing Entry
175
+
176
+ ### Examples
177
+
178
+ ```ruby
179
+ require 'time'
180
+ require 'quake_timesheets_client'
181
+ # setup authorization
182
+ Quake::Timesheets.configure do |config|
183
+ # Configure API key authorization: authToken
184
+ config.api_key['authToken'] = 'YOUR API KEY'
185
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
186
+ # config.api_key_prefix['authToken'] = 'Bearer'
187
+ end
188
+
189
+ api_instance = Quake::Timesheets::EntriesApi.new
190
+ id = 'id_example' # String | The ID for the Entry
191
+ opts = {
192
+ person_id: 'person_id_example', # String | ID of the person to which this entry pertains
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
198
+ }
199
+
200
+ begin
201
+ # Update an existing Entry
202
+ result = api_instance.post_api_v1_entries_id(id, opts)
203
+ p result
204
+ rescue Quake::Timesheets::ApiError => e
205
+ puts "Error when calling EntriesApi->post_api_v1_entries_id: #{e}"
206
+ end
207
+ ```
208
+
209
+ #### Using the post_api_v1_entries_id_with_http_info variant
210
+
211
+ This returns an Array which contains the response data, status code and headers.
212
+
213
+ > <Array(<Entry>, Integer, Hash)> post_api_v1_entries_id_with_http_info(id, opts)
214
+
215
+ ```ruby
216
+ begin
217
+ # Update an existing Entry
218
+ data, status_code, headers = api_instance.post_api_v1_entries_id_with_http_info(id, opts)
219
+ p status_code # => 2xx
220
+ p headers # => { ... }
221
+ p data # => <Entry>
222
+ rescue Quake::Timesheets::ApiError => e
223
+ puts "Error when calling EntriesApi->post_api_v1_entries_id_with_http_info: #{e}"
224
+ end
225
+ ```
226
+
227
+ ### Parameters
228
+
229
+ | Name | Type | Description | Notes |
230
+ | ---- | ---- | ----------- | ----- |
231
+ | **id** | **String** | The ID for the Entry | |
232
+ | **person_id** | **String** | ID of the person to which this entry pertains | [optional] |
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] |
238
+
239
+ ### Return type
240
+
241
+ [**Entry**](Entry.md)
242
+
243
+ ### Authorization
244
+
245
+ [authToken](../README.md#authToken)
246
+
247
+ ### HTTP request headers
248
+
249
+ - **Content-Type**: application/x-www-form-urlencoded, multipart/form-data
250
+ - **Accept**: */*
251
+