Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-validator-client-ruby/docs/ValidationApi.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
99 lines (62 sloc)
2.12 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ValidatorClient::ValidationApi | |
All URIs are relative to *http://localhost* | |
Method | HTTP request | Description | |
------------- | ------------- | ------------- | |
[**get_validators**](ValidationApi.md#get_validators) | **GET** /validators | lists available validators | |
[**validate**](ValidationApi.md#validate) | **POST** /validators/{validator_id}/validate | performs a validation | |
# **get_validators** | |
> Array<Validator> get_validators | |
lists available validators | |
Lists all of the available validator pipelines. | |
### Example | |
```ruby | |
# load the gem | |
require 'inc-validator-client' | |
api_instance = ValidatorClient::ValidationApi.new | |
begin | |
#lists available validators | |
result = api_instance.get_validators | |
p result | |
rescue ValidatorClient::ApiError => e | |
puts "Exception when calling ValidationApi->get_validators: #{e}" | |
end | |
``` | |
### Parameters | |
This endpoint does not need any parameter. | |
### Return type | |
[**Array<Validator>**](Validator.md) | |
### Authorization | |
No authorization required | |
### HTTP request headers | |
- **Content-Type**: Not defined | |
- **Accept**: application/json | |
# **validate** | |
> Array<Status> validate(validator_id, metadata) | |
performs a validation | |
### Example | |
```ruby | |
# load the gem | |
require 'inc-validator-client' | |
api_instance = ValidatorClient::ValidationApi.new | |
validator_id = "validator_id_example" # String | An identifier for the validation to be performed. | |
metadata = "metadata_example" # String | The metadata to be validated. | |
begin | |
#performs a validation | |
result = api_instance.validate(validator_id, metadata) | |
p result | |
rescue ValidatorClient::ApiError => e | |
puts "Exception when calling ValidationApi->validate: #{e}" | |
end | |
``` | |
### Parameters | |
Name | Type | Description | Notes | |
------------- | ------------- | ------------- | ------------- | |
**validator_id** | **String**| An identifier for the validation to be performed. | | |
**metadata** | **String**| The metadata to be validated. | | |
### Return type | |
[**Array<Status>**](Status.md) | |
### Authorization | |
No authorization required | |
### HTTP request headers | |
- **Content-Type**: application/xml+samlmetadata | |
- **Accept**: application/json | |