Skip to content

Commit

Permalink
Merge pull request #18 from databox/release/0.4.4-alpha.4/1725266439300
Browse files Browse the repository at this point in the history
[SDK release] Generated SDK code based on data-link 0.4.4-alpha.4 API changes
  • Loading branch information
bwiz authored Sep 9, 2024
2 parents 48b9271 + 948a52b commit 8d6b1d8
Show file tree
Hide file tree
Showing 44 changed files with 2,347 additions and 298 deletions.
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Push API resources Open API documentation

This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- SDK version: 0.0.2
- API version: 0.4.4-alpha.4
- SDK version: 0.0.3
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down Expand Up @@ -107,20 +107,23 @@ namespace Example
{

Configuration config = new Configuration();
config.BasePath = "http://localhost:8080/q/openapi";
config.BasePath = "https://push.databox.com";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";

// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new DefaultApi(httpClient, config, httpClientHandler);
var payloadModel = new PayloadModel?(); // PayloadModel? | (optional)

try
{
apiInstance.RootPost(payloadModel);
apiInstance.DataDelete();
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.RootPost: " + e.Message );
Debug.Print("Exception when calling DefaultApi.DataDelete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
Expand All @@ -133,19 +136,25 @@ namespace Example
<a id="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

All URIs are relative to *http://localhost:8080/q/openapi*
All URIs are relative to *https://push.databox.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**RootPost**](docs/DefaultApi.md#rootpost) | **POST** / |
*DefaultApi* | [**DataDelete**](docs/DefaultApi.md#datadelete) | **DELETE** /data |
*DefaultApi* | [**DataMetricKeyDelete**](docs/DefaultApi.md#datametrickeydelete) | **DELETE** /data/{metricKey} |
*DefaultApi* | [**DataPost**](docs/DefaultApi.md#datapost) | **POST** /data |
*DefaultApi* | [**MetrickeysGet**](docs/DefaultApi.md#metrickeysget) | **GET** /metrickeys |
*DefaultApi* | [**MetrickeysPost**](docs/DefaultApi.md#metrickeyspost) | **POST** /metrickeys |
*DefaultApi* | [**PingGet**](docs/DefaultApi.md#pingget) | **GET** /ping |


<a id="documentation-for-models"></a>
## Documentation for Models

- [Model.ApiResponse](docs/ApiResponse.md)
- [Model.PayloadDataModel](docs/PayloadDataModel.md)
- [Model.PayloadModel](docs/PayloadModel.md)
- [Model.PushData](docs/PushData.md)
- [Model.PushDataAttribute](docs/PushDataAttribute.md)
- [Model.State](docs/State.md)


<a id="documentation-for-authorization"></a>
Expand Down
5 changes: 3 additions & 2 deletions src/docs/PayloadModel.md → docs/ApiResponse.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Databox.Model.PayloadModel
# Databox.Model.ApiResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Data** | [**List&lt;PayloadDataModel&gt;**](PayloadDataModel.md) | | [optional]
**Status** | **string** | | [optional]
**Message** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Loading

0 comments on commit 8d6b1d8

Please sign in to comment.