Skip to content

Latest commit

 

History

History
104 lines (81 loc) · 3.73 KB

File metadata and controls

104 lines (81 loc) · 3.73 KB

IO.Swagger - the C# library for the DealersAndVehicles

No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • SDK version: 1.0.0
  • Build date: 2016-09-30T22:47:19.122Z
  • Build package: class io.swagger.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

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

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:

using IO.Swagger.Api;
using IO.Swagger.Client;
using Model;

Getting Started

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 DataSetApi();
            var datasetId = datasetId_example;  // string | 

            try
            {
                // Get correct answer for dataset (cheat)
                Answer result = apiInstance.DataSetGetCheat(datasetId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DataSetApi.DataSetGetCheat: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to http://vautointerview.azurewebsites.net

Class Method HTTP request Description
DataSetApi DataSetGetCheat GET /api/{datasetId}/cheat Get correct answer for dataset (cheat)
DataSetApi DataSetGetDataSetId GET /api/datasetId Creates new dataset and returns its ID
DataSetApi DataSetPostAnswer POST /api/{datasetId}/answer Submit answer for dataset
DealersApi DealersGetDealer GET /api/{datasetId}/dealers/{dealerid} Get information about a dealer
VehiclesApi VehiclesGetIds GET /api/{datasetId}/vehicles Get a list of all vehicleids in dataset
VehiclesApi VehiclesGetVehicle GET /api/{datasetId}/vehicles/{vehicleid} Get information about a vehicle

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.