Sha256: 5d13fbf4c11f033912a38d00232e825f3373ce251182be9e46c428087edc0995

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

# SwaggerClient::TestApi

All URIs are relative to *http://localhost:4010*

Method | HTTP request | Description
------------- | ------------- | -------------
[**test_connection**](TestApi.md#test_connection) | **GET** /api | Test connection to the API

# **test_connection**
> Test test_connection

Test connection to the API

Returns endpoint call status

### Example
```ruby
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
  # Configure API key authorization: apikey
  config.api_key['api-key'] = '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['api-key'] = 'Bearer'

  # Configure API key authorization: mockType
  config.api_key['Prefer'] = '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['Prefer'] = 'Bearer'

  # Configure API key authorization: userid
  config.api_key['user-uid'] = '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['user-uid'] = 'Bearer'
end

api_instance = SwaggerClient::TestApi.new

begin
  #Test connection to the API
  result = api_instance.test_connection
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling TestApi->test_connection: #{e}"
end
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**Test**](Test.md)

### Authorization

[apikey](../README.md#apikey), [mockType](../README.md#mockType), [userid](../README.md#userid)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emasser-1.0.0 emass_client/ruby_client/docs/TestApi.md