using System;
using System.Collections.Generic;
using System.Linq;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace SwaggerClientTest
{
class Program
{
static void Main(string[] args)
{
//Create a new instance
var clientConfig = new Configuration();
//Add the key to the Authorization header
clientConfig.ApiKey["api_key"] = "special-key";
//Pass the config through the api ctor
var petapi = new PetApi(clientConfig);
//Pet statuses
var statuses = new List<string> {"available"};
//Get top 10 pets with status: available
List<Pet> pets = petapi.FindPetsByStatus(statuses).Take(10).ToList();
foreach (var pet in pets)
{
Console.WriteLine(pet.Name);
}
Console.ReadKey();
}
}
}