docs/GlossaryTermsApi.md in phrase-1.0.1 vs docs/GlossaryTermsApi.md in phrase-1.0.2
- old
+ new
@@ -12,11 +12,11 @@
## glossary_term_create
-> glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
+> GlossaryTerm glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
Create a glossary term
Create a new glossary term.
@@ -31,12 +31,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::GlossaryTermsApi.new
account_id = 'account_id_example' # String | Account ID
glossary_id = 'glossary_id_example' # String | Glossary ID
@@ -45,11 +44,12 @@
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}
begin
#Create a glossary term
- api_instance.glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
+ result = api_instance.glossary_term_create(account_id, glossary_id, glossary_term_create_parameters, opts)
+ pp result
rescue Phrase::ApiError => e
puts "Exception when calling GlossaryTermsApi->glossary_term_create: #{e}"
end
```
@@ -63,20 +63,20 @@
**glossary_term_create_parameters** | [**GlossaryTermCreateParameters**](GlossaryTermCreateParameters.md)| |
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
### Return type
-Response<(nil (empty response body))>
+Response<([**GlossaryTerm**](GlossaryTerm.md))>
### Authorization
[Basic](../README.md#Basic), [Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: application/json
-- **Accept**: Not defined
+- **Accept**: application/json
## glossary_term_delete
> glossary_term_delete(account_id, glossary_id, id, opts)
@@ -96,12 +96,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::GlossaryTermsApi.new
account_id = 'account_id_example' # String | Account ID
glossary_id = 'glossary_id_example' # String | Glossary ID
@@ -161,12 +160,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::GlossaryTermsApi.new
account_id = 'account_id_example' # String | Account ID
glossary_id = 'glossary_id_example' # String | Glossary ID
@@ -227,12 +225,11 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::GlossaryTermsApi.new
account_id = 'account_id_example' # String | Account ID
glossary_id = 'glossary_id_example' # String | Glossary ID
@@ -295,11 +292,10 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
- #config.api_key_prefix['Authorization'] = 'Bearer'
+ config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::GlossaryTermsApi.new
account_id = 'account_id_example' # String | Account ID
glossary_id = 'glossary_id_example' # String | Glossary ID