Stellards.SDK
1.0.5
dotnet add package Stellards.SDK --version 1.0.5
NuGet\Install-Package Stellards.SDK -Version 1.0.5
<PackageReference Include="Stellards.SDK" Version="1.0.5" />
<PackageVersion Include="Stellards.SDK" Version="1.0.5" />
<PackageReference Include="Stellards.SDK" />
paket add Stellards.SDK --version 1.0.5
#r "nuget: Stellards.SDK, 1.0.5"
#addin nuget:?package=Stellards.SDK&version=1.0.5
#tool nuget:?package=Stellards.SDK&version=1.0.5
StellarDS.SDK - the C# library for the Stellar DataStore
The Stellar DataStore service is your instantly available, secure and worry-free cloud data storage service. Sign-up now and minutes later, you can start putting your data in the cloud.
- API version: v1
- SDK version: 1.0.0
- Generator version: 7.11.0
<a id="frameworks-supported"></a>
Frameworks supported
- .Net 9.0
<a id="dependencies"></a>
Dependencies
- RestSharp - 112.0.0 or later
- Json.NET - 13.0.2 or later
- JsonSubTypes - 1.8.0 or later
- System.ComponentModel.Annotations - 5.0.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations
<a id="installation"></a>
Installation
<a id="usage"></a>
Usage
To use the API client with a HTTP proxy, setup a System.Net.WebProxy
Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;
<a id="getting-started"></a>
Getting Started
using System.Collections.Generic;
using System.Diagnostics;
using Stellards.SDK.Api;
using Stellards.SDK.Client;
using Stellards.SDK.Model;
namespace Example
{
public class Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure API key authorization: Bearer
config.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new DataApi(config);
var project = "project_example"; // Guid | The project containing the table.
var table = 789L; // long | The table containing the records.
var record = 789L; // long | The record to be queried.
var field = "field_example"; // string | The field of the record.
try
{
// Download a file from a blob field as a stream.
Stream result = apiInstance.BlobGet(project, table, record, field);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DataApi.BlobGet: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
<a id="documentation-for-api-endpoints"></a>
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DataApi | BlobGet | GET /v1/data/table/blob | Download a file from a blob field as a stream. |
DataApi | BlobPost | POST /v1/data/table/blob | Upload a file to a blob field. |
DataApi | ClearDelete | DELETE /v1/data/table/clear | Deletes all records from the given table. |
DataApi | Delete | DELETE /v1/data/table | Deletes records from the given table. |
DataApi | DeletePost | POST /v1/data/table/delete | Deletes records from the given table. |
DataApi | Get | GET /v1/data/table | Gets the records for a given table. |
DataApi | Post | POST /v1/data/table | Adds records to the given table. |
DataApi | Put | PUT /v1/data/table | Updates records in the given table based on the values in record. |
FieldApi | Delete | DELETE /v1/schema/table/field | Deletes the given field within the given table. |
FieldApi | Get | GET /v1/schema/table/field | Gets field(s) from given table. |
FieldApi | Post | POST /v1/schema/table/field | Adds a field to the given table. |
FieldApi | Put | PUT /v1/schema/table/field | Updates the given field in the given table. |
OAuthApi | RevokePost | POST /v1/oauth/revoke | |
OAuthApi | TokenPost | POST /v1/oauth/token | |
ProjectApi | ProjectGet | GET /v1/schema/project | Gets project(s) from the logged in user. |
ProjectApi | ProjectPut | PUT /v1/schema/project | Updates a project. |
ProjectTierApi | CurrentGet | GET /v1/project-tier/current | |
ProjectTierApi | Get | GET /v1/project-tier | |
TableApi | Delete | DELETE /v1/schema/table | Deletes a table from the database. |
TableApi | Get | GET /v1/schema/table | Gets table(s) from the logged in user. |
TableApi | Post | POST /v1/schema/table | Creates a new table in the database. |
TableApi | Put | PUT /v1/schema/table | Updates a table in the database. |
TestApi | Get | GET /v1/ping | |
UserApi | Delete | DELETE /v1/user | |
UserApi | Get | GET /v1/user | |
UserApi | PermissionsGet | GET /v1/user/permissions |
<a id="documentation-for-models"></a>
Documentation for Models
- Model.AbstractObjectQueryResult
- Model.AbstractObjectServiceResult
- Model.CreateRecordRequest
- Model.FieldRequest
- Model.FieldResponse
- Model.FieldResponseServiceResult
- Model.IServiceResult
- Model.ProjectRequest
- Model.RevokeTokenRequest
- Model.ServiceMessage
- Model.ServiceMessageType
- Model.ServiceResult
- Model.Stream
- Model.TableRequest
- Model.TableResponse
- Model.TableResponseIEnumerableServiceResult
- Model.TokenResponse
- Model.UpdateRecordRequest
<a id="documentation-for-authorization"></a>
Documentation for Authorization
Authentication schemes defined for the API: <a id="Bearer"></a>
Bearer
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.2)
- Microsoft.Extensions.Hosting (>= 9.0.2)
- Microsoft.Extensions.Http (>= 9.0.2)
- Microsoft.Extensions.Http.Polly (>= 9.0.2)
- Microsoft.Extensions.Http.Resilience (>= 9.2.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly.Extensions.Http (>= 3.0.0)
- RestSharp (>= 112.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.