Client that can be used to access Live Validation Service.
This C# SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0
- SDK version: 1.0.0
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
- RestSharp - 105.1.0 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
nuget pack -Build -OutputDirectory out IO.Swagger.csproj
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new LiveValidationApi();
var liveValidationParameter = new LiveValidationParameter(); // LiveValidationParameter | Live Validation Parameter
try
{
LiveValidationResponse result = apiInstance.ToolsLiveValidationProdValidate(liveValidationParameter);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling LiveValidationApi.ToolsLiveValidationProdValidate: " + e.Message );
}
}
}
}
All URIs are relative to http://localhost:5002/api
Class | Method | HTTP request | Description |
---|---|---|---|
LiveValidationApi | ToolsLiveValidationProdValidate | POST /prod/validate | |
LiveValidationApi | ToolsLiveValidationProdWhiteList | GET /prod/whitelist | |
LiveValidationApi | ToolsLiveValidationValidate | POST /validate | |
LiveValidationApi | ToolsLiveValidationWhiteList | GET /whitelist | |
ProdValidateApi | ToolsLiveValidationProdValidate | POST /prod/validate | |
ValidateApi | ToolsLiveValidationValidate | POST /validate | |
WhitelistApi | ToolsLiveValidationProdWhiteList | GET /prod/whitelist | |
WhitelistApi | ToolsLiveValidationWhiteList | GET /whitelist |
- Model.LiveRequest
- Model.LiveResponse
- Model.LiveValidationParameter
- Model.LiveValidationResponse
- Model.LiveValidationWhiteListResponse
- Model.RequestValidationResult
- Model.ResponseValidationResult
All endpoints do not require authorization.