Skip to content

Sensedia/api-manager-csharp-client-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IO.Swagger - the C# library for the API Manager Portal

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: 2.0
  • SDK version: 1.0.0
  • Build package: 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 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

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 IO.Swagger.Model;

Packaging

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.

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()
        {

            var apiInstance = new APIsApi();
            var id = id_example;  // string | API id
            var sensediaAuth = sensediaAuth_example;  // string | Sensedia-Auth (optional) 
            var apiBean = new API(); // API | API json to update a api (optional) 

            try
            {
                // Clone a API
                APIResponse result = apiInstance.CloneApiUsingPOST1(id, sensediaAuth, apiBean);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APIsApi.CloneApiUsingPOST1: " + e.Message );
            }

        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://localhost/api-manager/api/v3

Class Method HTTP request Description
APIsApi CloneApiUsingPOST1 POST /apis/{id}/clone Clone a API
APIsApi CreateAPIUsingPOST1 POST /apis Create a new API
APIsApi DeleteAPIUsingDELETE1 DELETE /apis/{id} Delete a API
APIsApi FindLastRevisionUsingGET1 GET /apis/{id}/revisions Find last revision by API id
APIsApi FindVersionsByAPIUsingGET1 GET /apis/{id}/versions Find version by API id
APIsApi GetAPIByIdUsingGET1 GET /apis/{apiId} Find API by id
APIsApi GetAPIChangeLogUsingGET1 GET /apis/{id}/changelog Retrive changelog per API id
APIsApi GetAPIsUsingGET1 GET /apis Return all APIs
APIsApi NewVersionAPIUsingPOST1 POST /apis/{id}/versions Create new version
APIsApi RemoveEnvironmentUsingDELETE1 DELETE /apis/{id}/environments/{environmentId} Delete environment link with API
APIsApi UpdateAPIUsingPUT1 PUT /apis/{id} Update a API
APIsApi ValidatePartialAPIUsingPOST1 POST /apis/validate Validate partial a API
AccessTokensApi CountUsingGET10 GET /access-tokens/count Retrieve access token total
AccessTokensApi RemoveAuthTokenUsingDELETE1 DELETE /access-tokens/{id} Remove a access token
AccessTokensApi RetrieveAuthTokenChangeLogUsingGET1 GET /access-tokens/{id}/changelog Retrive changelog per access token id
AccessTokensApi RetriveAuthTokenByCodeUsingGET1 GET /access-tokens/{code} Find access token by code
AccessTokensApi RetriveAuthTokenUsingGET1 GET /access-tokens Find access token list by filters
AccessTokensApi SaveAuthTokenUsingPOST1 POST /access-tokens Create a new access token
AccessTokensApi UpdateAuthTokenUsingPUT1 PUT /access-tokens/{id} Update a access token
AccessTokensApi ValidatePartialAccessTokenUsingPOST1 POST /access-tokens/validate Validate partial access token
AppsApi CountUsingGET11 GET /apps/count Retrieve App total
AppsApi DeleteAppTokenUsingDELETE1 DELETE /apps/{code} Delete a app
AppsApi GetAppTokenByAppGalleryUsingGET1 GET /apps/gallery Return all apps
AppsApi GetAppTokenByFilterUsingGET1 GET /apps Find app list by filters
AppsApi GetAppTokenByIdUsingGET1 GET /apps/{code} Find app by code
AppsApi GetAppTokenChangeLogUsingGET1 GET /apps/{code}/changelog Retrive changelog per app id
AppsApi PostAppTokenUsingPOST1 POST /apps Create a new app
AppsApi PutAppTokenUsingPUT1 PUT /apps/{id} Update a app
AppsApi ValidatePartialAppUsingPOST1 POST /apps/validate Validate partial app
CallsApi RetrieveCallByIdUsingGET1 GET /calls/{id} Retrive call by id
CallsApi RetrieveCallsWithFiltersUsingGET1 GET /calls Retrive calls with filters
CallsApi RetrieveTotalCallsByDateUsingGET1 GET /calls/count/{date} Retrive calls total by date
DevelopersApi CountUsingGET12 GET /developers/count Retrieve developers total
DevelopersApi CreateOrUpdateDeveloper1 PUT /developers/{login} Create or update developer
DevelopersApi RemoveUserAccountUsingDELETE1 DELETE /developers/{login} Delete developer
DevelopersApi RetieveUserAccountUsingGET1 GET /developers/{login} Retrive developer per Login
DevelopersApi RetrieveAccountChangeLogUsingGET1 GET /developers/{username}/changelog Retrive audit developer per username
DevelopersApi RetrieveUserAccountsUsingGET1 GET /developers Retrive developers
MetricsApi FindHealthUsingGET1 GET /metrics/health Find Health
MetricsApi FindTopAccessTokensUsingGET1 GET /metrics/top-access-tokens/{howMany} Find top access token
MetricsApi FindTopAppsUsingGET1 GET /metrics/top-apps/{howMany} Find top apps
MetricsApi GetAccessTokensByMonthUsingGET1 GET /metrics/access-tokens Find access token consolited by month
MetricsApi GetAppsByMonthUsingGET1 GET /metrics/apps Find apps consolited by month
MetricsApi GetCacheLatencyUsingGET1 GET /metrics/cache/latency Find cache latency
MetricsApi GetCacheSizeUsingGET1 GET /metrics/cache/size Retrive cache size
MetricsApi GetCacheUsingGET1 GET /metrics/cache Find cache
MetricsApi GetCallsByMonthUsingGET1 GET /metrics/calls Find calls by month
MetricsApi GetLatencyByMonthUsingGET1 GET /metrics/latency Find latency by month
MetricsApi GetStatusErrorUsingGET1 GET /metrics/statusError Retrive Status Error
PlansApi ClonePlanUsingPOST1 POST /plans/{id}/clone Clone a plan
PlansApi CountUsingGET13 GET /plans/count Retrieve plan total
PlansApi DeletePlanUsingDELETE1 DELETE /plans/{id} Delete a plan
PlansApi GetPlanChangeLogUsingGET3 GET /plans/{id}/changelog Retrive changelog per plan id
PlansApi GetPlanDefaultByApiUsingGET1 GET /plans/{id}/defaultPlan Find default plan by api id
PlansApi GetPlanUsingGET2 GET /plans/{id} Find plan by id
PlansApi GetPlanUsingGET3 GET /plans Return all plan
PlansApi PostPlanUsingPOST1 POST /plans Create a new plan
PlansApi PutPlanUsingPUT1 PUT /plans/{id} Update a plan
PlansApi ValidatePartialPlanUsingPOST1 POST /plans/validate Validate partial a plan

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

Releases

No releases published

Packages

No packages published

Languages