Skip to content

facestorept/api-sdk-csharp-dotnet2

Repository files navigation

IO.Swagger - the C# library for the

No description 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: 1.0.0
  • SDK version: 1.0.0
  • Build date: 2017-11-21T13:59:55.778Z
  • Build package: io.swagger.codegen.languages.CsharpDotNet2ClientCodegen

Frameworks supported

  • .NET 2.0

Dependencies

  • Mono compiler
  • Newtonsoft.Json.7.0.1
  • RestSharp.Net2.1.1.11

Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh compile-mono.sh
  • [Windows] TODO

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;

Getting Started

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()
        {
            
            // Configure API key authorization: APIKeyHeader
            Configuration.Default.ApiKey.Add("APIToken", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("APIToken", "Bearer");

            var apiInstance = new BrandsApi();
            var brand = new Brand(); // Brand | Brand to add to the store

            try
            {
                InlineResponse201 result = apiInstance.AddBrands(brand);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BrandsApi.AddBrands: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.facestore.local/v1

Class Method HTTP request Description
BrandsApi AddBrands POST /brands
BrandsApi DeleteBrandById DELETE /brands/{id}/
BrandsApi GetBrandById GET /brands/{id}/
BrandsApi GetBrands GET /brands
BrandsApi UpdateCategoryById PUT /brands/{id}/
BrandsApi UpdateCategoryById_0 PATCH /brands/{id}/
CategoriesApi AddCategories POST /categories
CategoriesApi DeleteCategoryById DELETE /categories/{id}/
CategoriesApi GetCategories GET /categories
CategoriesApi GetCategoryById GET /categories/{id}/
CategoriesApi UpdateCategoryById PUT /categories/{id}/
CustomersApi GetCustomerById GET /customers/{id}/
CustomersApi GetCustomers GET /customers
OrdersApi GetOrderById GET /orders/{id}/
OrdersApi GetOrders GET /orders
PaymentsApi GetPaymentById GET /payments/{id}/
PaymentsApi GetPayments GET /payments
ProductsApi AddProduct POST /products
ProductsApi DeleteProductById DELETE /products/{id}/
ProductsApi GetProductById GET /products/{id}/
ProductsApi GetProducts GET /products
ProductsApi UpdateProductById PUT /products/{id}/
ProductsApi UpdateProductById_0 PATCH /products/{id}/
ProductsAttributesApi AddProductsAttributes POST /attributes
ProductsAttributesApi DeleteProductAttributeById DELETE /attributes/{id}/
ProductsAttributesApi GetProductAttributeById GET /attributes/{id}/
ProductsAttributesApi GetProductsAttributes GET /attributes
ProductsAttributesApi UpdateProductAttributeById PUT /attributes/{id}/
ShippingsApi AddShipping POST /shippings
ShippingsApi DeleteShippingById DELETE /shippings/{id}/
ShippingsApi GetShippingById GET /shippings/{id}/
ShippingsApi GetShippings GET /shippings
ShippingsApi UpdateShippingById PUT /shippings/{id}/
ShippingsApi UpdateShippingById_0 PATCH /shippings/{id}/
TaxesApi AddTaxes POST /taxes
TaxesApi DeleteTaxById DELETE /taxes/{id}/
TaxesApi GetTaxById GET /taxes/{id}/
TaxesApi GetTaxes GET /taxes
TaxesApi UpdateTaxById PUT /taxes/{id}/
TaxesApi UpdateTaxById_0 PATCH /taxes/{id}/

Documentation for Models

Documentation for Authorization

APIKeyHeader

  • Type: API key
  • API key parameter name: APIToken
  • Location: HTTP header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published