docs/ProjectsApi.md in phrase-1.0.1 vs docs/ProjectsApi.md in phrase-1.0.2

- old
+ new

@@ -12,11 +12,11 @@ ## project_create -> project_create(project_create_parameters, opts) +> ProjectDetails project_create(project_create_parameters, opts) Create a project Create a new project. @@ -31,23 +31,23 @@ 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::ProjectsApi.new project_create_parameters = Phrase::ProjectCreateParameters.new # ProjectCreateParameters | opts = { x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional) } begin #Create a project - api_instance.project_create(project_create_parameters, opts) + result = api_instance.project_create(project_create_parameters, opts) + pp result rescue Phrase::ApiError => e puts "Exception when calling ProjectsApi->project_create: #{e}" end ``` @@ -59,20 +59,20 @@ **project_create_parameters** | [**ProjectCreateParameters**](ProjectCreateParameters.md)| | **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional] ### Return type -Response<(nil (empty response body))> +Response<([**ProjectDetails**](ProjectDetails.md))> ### Authorization [Basic](../README.md#Basic), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## project_delete > project_delete(id, opts) @@ -92,12 +92,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::ProjectsApi.new id = 'id_example' # String | ID opts = { @@ -153,12 +152,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::ProjectsApi.new id = 'id_example' # String | ID opts = { @@ -215,12 +213,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::ProjectsApi.new id = 'id_example' # String | ID project_update_parameters = Phrase::ProjectUpdateParameters.new # ProjectUpdateParameters | @@ -279,11 +276,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::ProjectsApi.new opts = { x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)