# IO.Swagger - the C# library for the Swagger Petstore ' \" =end This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 1.0.0 ' \" =end - SDK version: 1.0.0 - Build date: 2016-06-29T22:47:27.264+08:00 - Build package: class io.swagger.codegen.languages.CSharpClientCodegen ## Frameworks supported - .NET 4.0 or later - Windows Phone 7.1 (Mango) ## Dependencies - [RestSharp] (https://www.nuget.org/packages/RestSharp) - 105.1.0 or later - [Json.NET] (https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: ``` Install-Package RestSharp Install-Package Newtonsoft.Json ``` NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742) ## Installation 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: ```csharp using IO.Swagger.Api; using IO.Swagger.Client; using Model; ``` ## Getting Started ```csharp using System; using System.Diagnostics; using IO.Swagger.Api; using IO.Swagger.Client; using Model; namespace Example { public class Example { public void main() { var apiInstance = new FakeApi(); var testCodeInjectEnd = testCodeInjectEnd_example; // string | To test code injection ' \" =end (optional) try { // To test code injection ' \" =end apiInstance.TestCodeInjectEnd(testCodeInjectEnd); } catch (Exception e) { Debug.Print("Exception when calling FakeApi.TestCodeInjectEnd: " + e.Message ); } } } } ``` ## Documentation for API Endpoints All URIs are relative to *https://petstore.swagger.io ' \" =end/v2 ' \" =end* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *FakeApi* | [**TestCodeInjectEnd**](docs/FakeApi.md#testcodeinjectend) | **PUT** /fake | To test code injection ' \" =end ## Documentation for Models - [Model.ModelReturn](docs/ModelReturn.md) ## Documentation for Authorization ### api_key - **Type**: API key - **API key parameter name**: api_key */ ' " =end - **Location**: HTTP header ### petstore_auth - **Type**: OAuth - **Flow**: implicit - **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog - **Scopes**: - write:pets: modify pets in your account */ ' " =end - read:pets: read your pets */ ' " =end