spartera_api_sdk 1.0.62 → 1.0.69
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/config.json +1 -1
- data/docs/APIKeysApi.md +45 -35
- data/docs/AlertsApi.md +71 -57
- data/docs/AssetPriceHistoryApi.md +80 -64
- data/docs/AssetsApi.md +116 -378
- data/docs/CloudProvidersApi.md +18 -215
- data/docs/CompaniesApi.md +81 -63
- data/docs/CompaniesCompanyIdApiKeysGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200ResponseData.md +18 -0
- data/docs/ConnectionsApi.md +67 -53
- data/docs/FavoritesApi.md +84 -68
- data/docs/MeGet200Response.md +36 -0
- data/docs/MeGet200ResponseApiKeyInfo.md +20 -0
- data/docs/MeGet200ResponseProfile.md +36 -0
- data/docs/MeGet200ResponseTokenMetadata.md +24 -0
- data/docs/StorageEnginesApi.md +149 -0
- data/docs/UsersApi.md +116 -39
- data/lib/spartera_api_sdk/api/alerts_api.rb +32 -32
- data/lib/spartera_api_sdk/api/api_keys_api.rb +20 -20
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +36 -36
- data/lib/spartera_api_sdk/api/assets_api.rb +52 -328
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +8 -185
- data/lib/spartera_api_sdk/api/companies_api.rb +36 -36
- data/lib/spartera_api_sdk/api/connections_api.rb +30 -30
- data/lib/spartera_api_sdk/api/favorites_api.rb +38 -38
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
- data/lib/spartera_api_sdk/api/users_api.rb +77 -22
- data/lib/spartera_api_sdk/configuration.rb +2 -10
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_get200_response.rb +248 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/me_get200_response.rb +417 -0
- data/lib/spartera_api_sdk/models/me_get200_response_api_key_info.rb +232 -0
- data/lib/spartera_api_sdk/models/me_get200_response_profile.rb +345 -0
- data/lib/spartera_api_sdk/models/me_get200_response_token_metadata.rb +252 -0
- data/lib/spartera_api_sdk/version.rb +1 -1
- data/lib/spartera_api_sdk.rb +46 -0
- data/spec/api/alerts_api_spec.rb +9 -9
- data/spec/api/api_keys_api_spec.rb +5 -5
- data/spec/api/asset_price_history_api_spec.rb +10 -10
- data/spec/api/assets_api_spec.rb +14 -64
- data/spec/api/cloud_providers_api_spec.rb +2 -34
- data/spec/api/companies_api_spec.rb +9 -9
- data/spec/api/connections_api_spec.rb +8 -8
- data/spec/api/favorites_api_spec.rb +11 -11
- data/spec/api/storage_engines_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +16 -6
- data/spec/models/companies_company_id_api_keys_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +42 -0
- data/spec/models/me_get200_response_api_key_info_spec.rb +42 -0
- data/spec/models/me_get200_response_profile_spec.rb +94 -0
- data/spec/models/me_get200_response_spec.rb +94 -0
- data/spec/models/me_get200_response_token_metadata_spec.rb +54 -0
- metadata +208 -22
- data/Gemfile.lock +0 -69
@@ -0,0 +1,149 @@
|
|
1
|
+
# SparteraApiSdk::StorageEnginesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.spartera.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**cloud_providers_provider_id_storage_engines_engine_id_get**](StorageEnginesApi.md#cloud_providers_provider_id_storage_engines_engine_id_get) | **GET** /cloud-providers/{provider_id}/storage-engines/{engine_id} | Get single storage engine by ID |
|
8
|
+
| [**cloud_providers_provider_id_storage_engines_get**](StorageEnginesApi.md#cloud_providers_provider_id_storage_engines_get) | **GET** /cloud-providers/{provider_id}/storage-engines | Get a list of all storage engines |
|
9
|
+
|
10
|
+
|
11
|
+
## cloud_providers_provider_id_storage_engines_engine_id_get
|
12
|
+
|
13
|
+
> <CompaniesCompanyIdApiKeysGet200Response> cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id)
|
14
|
+
|
15
|
+
Get single storage engine by ID
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'spartera_api_sdk'
|
22
|
+
# setup authorization
|
23
|
+
SparteraApiSdk.configure do |config|
|
24
|
+
# Configure API key authorization: ApiKeyAuth
|
25
|
+
config.api_key['x-api-key'] = '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['x-api-key'] = 'Bearer'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = SparteraApiSdk::StorageEnginesApi.new
|
31
|
+
provider_id = 'provider_id_example' # String |
|
32
|
+
engine_id = 'engine_id_example' # String |
|
33
|
+
|
34
|
+
begin
|
35
|
+
# Get single storage engine by ID
|
36
|
+
result = api_instance.cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id)
|
37
|
+
p result
|
38
|
+
rescue SparteraApiSdk::ApiError => e
|
39
|
+
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_engine_id_get: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<CompaniesCompanyIdApiKeysGet200Response>, Integer, Hash)> cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
# Get single storage engine by ID
|
52
|
+
data, status_code, headers = api_instance.cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <CompaniesCompanyIdApiKeysGet200Response>
|
56
|
+
rescue SparteraApiSdk::ApiError => e
|
57
|
+
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **provider_id** | **String** | | |
|
66
|
+
| **engine_id** | **String** | | |
|
67
|
+
|
68
|
+
### Return type
|
69
|
+
|
70
|
+
[**CompaniesCompanyIdApiKeysGet200Response**](CompaniesCompanyIdApiKeysGet200Response.md)
|
71
|
+
|
72
|
+
### Authorization
|
73
|
+
|
74
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
75
|
+
|
76
|
+
### HTTP request headers
|
77
|
+
|
78
|
+
- **Content-Type**: Not defined
|
79
|
+
- **Accept**: application/json
|
80
|
+
|
81
|
+
|
82
|
+
## cloud_providers_provider_id_storage_engines_get
|
83
|
+
|
84
|
+
> <CompaniesCompanyIdApiKeysGet200Response> cloud_providers_provider_id_storage_engines_get(provider_id)
|
85
|
+
|
86
|
+
Get a list of all storage engines
|
87
|
+
|
88
|
+
### Examples
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
require 'time'
|
92
|
+
require 'spartera_api_sdk'
|
93
|
+
# setup authorization
|
94
|
+
SparteraApiSdk.configure do |config|
|
95
|
+
# Configure API key authorization: ApiKeyAuth
|
96
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
97
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
98
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
99
|
+
end
|
100
|
+
|
101
|
+
api_instance = SparteraApiSdk::StorageEnginesApi.new
|
102
|
+
provider_id = 'provider_id_example' # String |
|
103
|
+
|
104
|
+
begin
|
105
|
+
# Get a list of all storage engines
|
106
|
+
result = api_instance.cloud_providers_provider_id_storage_engines_get(provider_id)
|
107
|
+
p result
|
108
|
+
rescue SparteraApiSdk::ApiError => e
|
109
|
+
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_get: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Using the cloud_providers_provider_id_storage_engines_get_with_http_info variant
|
114
|
+
|
115
|
+
This returns an Array which contains the response data, status code and headers.
|
116
|
+
|
117
|
+
> <Array(<CompaniesCompanyIdApiKeysGet200Response>, Integer, Hash)> cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id)
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
begin
|
121
|
+
# Get a list of all storage engines
|
122
|
+
data, status_code, headers = api_instance.cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id)
|
123
|
+
p status_code # => 2xx
|
124
|
+
p headers # => { ... }
|
125
|
+
p data # => <CompaniesCompanyIdApiKeysGet200Response>
|
126
|
+
rescue SparteraApiSdk::ApiError => e
|
127
|
+
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_get_with_http_info: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
| Name | Type | Description | Notes |
|
134
|
+
| ---- | ---- | ----------- | ----- |
|
135
|
+
| **provider_id** | **String** | | |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
[**CompaniesCompanyIdApiKeysGet200Response**](CompaniesCompanyIdApiKeysGet200Response.md)
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: Not defined
|
148
|
+
- **Accept**: application/json
|
149
|
+
|
data/docs/UsersApi.md
CHANGED
@@ -4,18 +4,19 @@ All URIs are relative to *https://api.spartera.com*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**companies_company_id_users_get**](UsersApi.md#companies_company_id_users_get) | **GET** /companies/{company_id}/users | Get a list of all users
|
7
|
+
| [**companies_company_id_users_get**](UsersApi.md#companies_company_id_users_get) | **GET** /companies/{company_id}/users | Get a list of all users in a company |
|
8
8
|
| [**companies_company_id_users_post**](UsersApi.md#companies_company_id_users_post) | **POST** /companies/{company_id}/users | Create a new user |
|
9
9
|
| [**companies_company_id_users_user_id_delete**](UsersApi.md#companies_company_id_users_user_id_delete) | **DELETE** /companies/{company_id}/users/{user_id} | Delete single user by ID |
|
10
10
|
| [**companies_company_id_users_user_id_get**](UsersApi.md#companies_company_id_users_user_id_get) | **GET** /companies/{company_id}/users/{user_id} | Get single user by ID |
|
11
11
|
| [**companies_company_id_users_user_id_patch**](UsersApi.md#companies_company_id_users_user_id_patch) | **PATCH** /companies/{company_id}/users/{user_id} | Update an existing user by ID |
|
12
|
+
| [**me_get**](UsersApi.md#me_get) | **GET** /me | Get current authenticated user's profile information. Returns: JSON response with user profile data from database |
|
12
13
|
|
13
14
|
|
14
15
|
## companies_company_id_users_get
|
15
16
|
|
16
|
-
>
|
17
|
+
> <CompaniesCompanyIdUsersGet200Response> companies_company_id_users_get(company_id)
|
17
18
|
|
18
|
-
Get a list of all users
|
19
|
+
Get a list of all users in a company
|
19
20
|
|
20
21
|
### Examples
|
21
22
|
|
@@ -24,15 +25,17 @@ require 'time'
|
|
24
25
|
require 'spartera_api_sdk'
|
25
26
|
# setup authorization
|
26
27
|
SparteraApiSdk.configure do |config|
|
27
|
-
# Configure
|
28
|
-
config.
|
28
|
+
# Configure API key authorization: ApiKeyAuth
|
29
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
29
32
|
end
|
30
33
|
|
31
34
|
api_instance = SparteraApiSdk::UsersApi.new
|
32
35
|
company_id = 'company_id_example' # String |
|
33
36
|
|
34
37
|
begin
|
35
|
-
# Get a list of all users
|
38
|
+
# Get a list of all users in a company
|
36
39
|
result = api_instance.companies_company_id_users_get(company_id)
|
37
40
|
p result
|
38
41
|
rescue SparteraApiSdk::ApiError => e
|
@@ -44,15 +47,15 @@ end
|
|
44
47
|
|
45
48
|
This returns an Array which contains the response data, status code and headers.
|
46
49
|
|
47
|
-
> <Array(
|
50
|
+
> <Array(<CompaniesCompanyIdUsersGet200Response>, Integer, Hash)> companies_company_id_users_get_with_http_info(company_id)
|
48
51
|
|
49
52
|
```ruby
|
50
53
|
begin
|
51
|
-
# Get a list of all users
|
54
|
+
# Get a list of all users in a company
|
52
55
|
data, status_code, headers = api_instance.companies_company_id_users_get_with_http_info(company_id)
|
53
56
|
p status_code # => 2xx
|
54
57
|
p headers # => { ... }
|
55
|
-
p data # =>
|
58
|
+
p data # => <CompaniesCompanyIdUsersGet200Response>
|
56
59
|
rescue SparteraApiSdk::ApiError => e
|
57
60
|
puts "Error when calling UsersApi->companies_company_id_users_get_with_http_info: #{e}"
|
58
61
|
end
|
@@ -66,11 +69,11 @@ end
|
|
66
69
|
|
67
70
|
### Return type
|
68
71
|
|
69
|
-
**
|
72
|
+
[**CompaniesCompanyIdUsersGet200Response**](CompaniesCompanyIdUsersGet200Response.md)
|
70
73
|
|
71
74
|
### Authorization
|
72
75
|
|
73
|
-
[
|
76
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
74
77
|
|
75
78
|
### HTTP request headers
|
76
79
|
|
@@ -80,7 +83,7 @@ end
|
|
80
83
|
|
81
84
|
## companies_company_id_users_post
|
82
85
|
|
83
|
-
>
|
86
|
+
> <CompaniesCompanyIdUsersPost200Response> companies_company_id_users_post(company_id, user)
|
84
87
|
|
85
88
|
Create a new user
|
86
89
|
|
@@ -91,8 +94,10 @@ require 'time'
|
|
91
94
|
require 'spartera_api_sdk'
|
92
95
|
# setup authorization
|
93
96
|
SparteraApiSdk.configure do |config|
|
94
|
-
# Configure
|
95
|
-
config.
|
97
|
+
# Configure API key authorization: ApiKeyAuth
|
98
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
99
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
100
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
96
101
|
end
|
97
102
|
|
98
103
|
api_instance = SparteraApiSdk::UsersApi.new
|
@@ -112,7 +117,7 @@ end
|
|
112
117
|
|
113
118
|
This returns an Array which contains the response data, status code and headers.
|
114
119
|
|
115
|
-
> <Array(
|
120
|
+
> <Array(<CompaniesCompanyIdUsersPost200Response>, Integer, Hash)> companies_company_id_users_post_with_http_info(company_id, user)
|
116
121
|
|
117
122
|
```ruby
|
118
123
|
begin
|
@@ -120,7 +125,7 @@ begin
|
|
120
125
|
data, status_code, headers = api_instance.companies_company_id_users_post_with_http_info(company_id, user)
|
121
126
|
p status_code # => 2xx
|
122
127
|
p headers # => { ... }
|
123
|
-
p data # =>
|
128
|
+
p data # => <CompaniesCompanyIdUsersPost200Response>
|
124
129
|
rescue SparteraApiSdk::ApiError => e
|
125
130
|
puts "Error when calling UsersApi->companies_company_id_users_post_with_http_info: #{e}"
|
126
131
|
end
|
@@ -135,11 +140,11 @@ end
|
|
135
140
|
|
136
141
|
### Return type
|
137
142
|
|
138
|
-
**
|
143
|
+
[**CompaniesCompanyIdUsersPost200Response**](CompaniesCompanyIdUsersPost200Response.md)
|
139
144
|
|
140
145
|
### Authorization
|
141
146
|
|
142
|
-
[
|
147
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
143
148
|
|
144
149
|
### HTTP request headers
|
145
150
|
|
@@ -149,7 +154,7 @@ end
|
|
149
154
|
|
150
155
|
## companies_company_id_users_user_id_delete
|
151
156
|
|
152
|
-
>
|
157
|
+
> <CompaniesCompanyIdUsersUserIdDelete200Response> companies_company_id_users_user_id_delete(company_id, user_id)
|
153
158
|
|
154
159
|
Delete single user by ID
|
155
160
|
|
@@ -160,8 +165,10 @@ require 'time'
|
|
160
165
|
require 'spartera_api_sdk'
|
161
166
|
# setup authorization
|
162
167
|
SparteraApiSdk.configure do |config|
|
163
|
-
# Configure
|
164
|
-
config.
|
168
|
+
# Configure API key authorization: ApiKeyAuth
|
169
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
170
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
171
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
165
172
|
end
|
166
173
|
|
167
174
|
api_instance = SparteraApiSdk::UsersApi.new
|
@@ -181,7 +188,7 @@ end
|
|
181
188
|
|
182
189
|
This returns an Array which contains the response data, status code and headers.
|
183
190
|
|
184
|
-
> <Array(
|
191
|
+
> <Array(<CompaniesCompanyIdUsersUserIdDelete200Response>, Integer, Hash)> companies_company_id_users_user_id_delete_with_http_info(company_id, user_id)
|
185
192
|
|
186
193
|
```ruby
|
187
194
|
begin
|
@@ -189,7 +196,7 @@ begin
|
|
189
196
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_delete_with_http_info(company_id, user_id)
|
190
197
|
p status_code # => 2xx
|
191
198
|
p headers # => { ... }
|
192
|
-
p data # =>
|
199
|
+
p data # => <CompaniesCompanyIdUsersUserIdDelete200Response>
|
193
200
|
rescue SparteraApiSdk::ApiError => e
|
194
201
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_delete_with_http_info: #{e}"
|
195
202
|
end
|
@@ -204,11 +211,11 @@ end
|
|
204
211
|
|
205
212
|
### Return type
|
206
213
|
|
207
|
-
**
|
214
|
+
[**CompaniesCompanyIdUsersUserIdDelete200Response**](CompaniesCompanyIdUsersUserIdDelete200Response.md)
|
208
215
|
|
209
216
|
### Authorization
|
210
217
|
|
211
|
-
[
|
218
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
212
219
|
|
213
220
|
### HTTP request headers
|
214
221
|
|
@@ -218,7 +225,7 @@ end
|
|
218
225
|
|
219
226
|
## companies_company_id_users_user_id_get
|
220
227
|
|
221
|
-
>
|
228
|
+
> <CompaniesCompanyIdUsersUserIdGet200Response> companies_company_id_users_user_id_get(company_id, user_id)
|
222
229
|
|
223
230
|
Get single user by ID
|
224
231
|
|
@@ -229,8 +236,10 @@ require 'time'
|
|
229
236
|
require 'spartera_api_sdk'
|
230
237
|
# setup authorization
|
231
238
|
SparteraApiSdk.configure do |config|
|
232
|
-
# Configure
|
233
|
-
config.
|
239
|
+
# Configure API key authorization: ApiKeyAuth
|
240
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
241
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
242
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
234
243
|
end
|
235
244
|
|
236
245
|
api_instance = SparteraApiSdk::UsersApi.new
|
@@ -250,7 +259,7 @@ end
|
|
250
259
|
|
251
260
|
This returns an Array which contains the response data, status code and headers.
|
252
261
|
|
253
|
-
> <Array(
|
262
|
+
> <Array(<CompaniesCompanyIdUsersUserIdGet200Response>, Integer, Hash)> companies_company_id_users_user_id_get_with_http_info(company_id, user_id)
|
254
263
|
|
255
264
|
```ruby
|
256
265
|
begin
|
@@ -258,7 +267,7 @@ begin
|
|
258
267
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_get_with_http_info(company_id, user_id)
|
259
268
|
p status_code # => 2xx
|
260
269
|
p headers # => { ... }
|
261
|
-
p data # =>
|
270
|
+
p data # => <CompaniesCompanyIdUsersUserIdGet200Response>
|
262
271
|
rescue SparteraApiSdk::ApiError => e
|
263
272
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_get_with_http_info: #{e}"
|
264
273
|
end
|
@@ -273,11 +282,11 @@ end
|
|
273
282
|
|
274
283
|
### Return type
|
275
284
|
|
276
|
-
**
|
285
|
+
[**CompaniesCompanyIdUsersUserIdGet200Response**](CompaniesCompanyIdUsersUserIdGet200Response.md)
|
277
286
|
|
278
287
|
### Authorization
|
279
288
|
|
280
|
-
[
|
289
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
281
290
|
|
282
291
|
### HTTP request headers
|
283
292
|
|
@@ -287,7 +296,7 @@ end
|
|
287
296
|
|
288
297
|
## companies_company_id_users_user_id_patch
|
289
298
|
|
290
|
-
>
|
299
|
+
> <CompaniesCompanyIdUsersUserIdPatch200Response> companies_company_id_users_user_id_patch(company_id, user_id, user)
|
291
300
|
|
292
301
|
Update an existing user by ID
|
293
302
|
|
@@ -298,8 +307,10 @@ require 'time'
|
|
298
307
|
require 'spartera_api_sdk'
|
299
308
|
# setup authorization
|
300
309
|
SparteraApiSdk.configure do |config|
|
301
|
-
# Configure
|
302
|
-
config.
|
310
|
+
# Configure API key authorization: ApiKeyAuth
|
311
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
312
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
313
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
303
314
|
end
|
304
315
|
|
305
316
|
api_instance = SparteraApiSdk::UsersApi.new
|
@@ -320,7 +331,7 @@ end
|
|
320
331
|
|
321
332
|
This returns an Array which contains the response data, status code and headers.
|
322
333
|
|
323
|
-
> <Array(
|
334
|
+
> <Array(<CompaniesCompanyIdUsersUserIdPatch200Response>, Integer, Hash)> companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user)
|
324
335
|
|
325
336
|
```ruby
|
326
337
|
begin
|
@@ -328,7 +339,7 @@ begin
|
|
328
339
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user)
|
329
340
|
p status_code # => 2xx
|
330
341
|
p headers # => { ... }
|
331
|
-
p data # =>
|
342
|
+
p data # => <CompaniesCompanyIdUsersUserIdPatch200Response>
|
332
343
|
rescue SparteraApiSdk::ApiError => e
|
333
344
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_patch_with_http_info: #{e}"
|
334
345
|
end
|
@@ -344,14 +355,80 @@ end
|
|
344
355
|
|
345
356
|
### Return type
|
346
357
|
|
347
|
-
**
|
358
|
+
[**CompaniesCompanyIdUsersUserIdPatch200Response**](CompaniesCompanyIdUsersUserIdPatch200Response.md)
|
348
359
|
|
349
360
|
### Authorization
|
350
361
|
|
351
|
-
[
|
362
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
352
363
|
|
353
364
|
### HTTP request headers
|
354
365
|
|
355
366
|
- **Content-Type**: application/json
|
356
367
|
- **Accept**: application/json
|
357
368
|
|
369
|
+
|
370
|
+
## me_get
|
371
|
+
|
372
|
+
> <MeGet200Response> me_get
|
373
|
+
|
374
|
+
Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
375
|
+
|
376
|
+
### Examples
|
377
|
+
|
378
|
+
```ruby
|
379
|
+
require 'time'
|
380
|
+
require 'spartera_api_sdk'
|
381
|
+
# setup authorization
|
382
|
+
SparteraApiSdk.configure do |config|
|
383
|
+
# Configure API key authorization: ApiKeyAuth
|
384
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
385
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
386
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = SparteraApiSdk::UsersApi.new
|
390
|
+
|
391
|
+
begin
|
392
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
393
|
+
result = api_instance.me_get
|
394
|
+
p result
|
395
|
+
rescue SparteraApiSdk::ApiError => e
|
396
|
+
puts "Error when calling UsersApi->me_get: #{e}"
|
397
|
+
end
|
398
|
+
```
|
399
|
+
|
400
|
+
#### Using the me_get_with_http_info variant
|
401
|
+
|
402
|
+
This returns an Array which contains the response data, status code and headers.
|
403
|
+
|
404
|
+
> <Array(<MeGet200Response>, Integer, Hash)> me_get_with_http_info
|
405
|
+
|
406
|
+
```ruby
|
407
|
+
begin
|
408
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
409
|
+
data, status_code, headers = api_instance.me_get_with_http_info
|
410
|
+
p status_code # => 2xx
|
411
|
+
p headers # => { ... }
|
412
|
+
p data # => <MeGet200Response>
|
413
|
+
rescue SparteraApiSdk::ApiError => e
|
414
|
+
puts "Error when calling UsersApi->me_get_with_http_info: #{e}"
|
415
|
+
end
|
416
|
+
```
|
417
|
+
|
418
|
+
### Parameters
|
419
|
+
|
420
|
+
This endpoint does not need any parameter.
|
421
|
+
|
422
|
+
### Return type
|
423
|
+
|
424
|
+
[**MeGet200Response**](MeGet200Response.md)
|
425
|
+
|
426
|
+
### Authorization
|
427
|
+
|
428
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
429
|
+
|
430
|
+
### HTTP request headers
|
431
|
+
|
432
|
+
- **Content-Type**: Not defined
|
433
|
+
- **Accept**: application/json
|
434
|
+
|