Skip to content

Commit 45e3b58

Browse files
committed
first commit
0 parents  commit 45e3b58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5035
-0
lines changed

.gitignore

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
# Ref: https://gist.github.com/kmorcinek/2710267
2+
# Download this file using PowerShell v3 under Windows with the following comand
3+
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
4+
5+
# User-specific files
6+
*.suo
7+
*.user
8+
*.sln.docstates
9+
10+
# Build results
11+
12+
[Dd]ebug/
13+
[Rr]elease/
14+
x64/
15+
build/
16+
[Bb]in/
17+
[Oo]bj/
18+
19+
# NuGet Packages
20+
*.nupkg
21+
# The packages folder can be ignored because of Package Restore
22+
**/packages/*
23+
# except build/, which is used as an MSBuild target.
24+
!**/packages/build/
25+
# Uncomment if necessary however generally it will be regenerated when needed
26+
#!**/packages/repositories.config
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
*_i.c
33+
*_p.c
34+
*.ilk
35+
*.meta
36+
*.obj
37+
*.pch
38+
*.pdb
39+
*.pgc
40+
*.pgd
41+
*.rsp
42+
*.sbr
43+
*.tlb
44+
*.tli
45+
*.tlh
46+
*.tmp
47+
*.tmp_proj
48+
*.log
49+
*.vspscc
50+
*.vssscc
51+
.builds
52+
*.pidb
53+
*.log
54+
*.scc
55+
56+
# OS generated files #
57+
.DS_Store*
58+
ehthumbs.db
59+
Icon?
60+
Thumbs.db
61+
62+
# Visual C++ cache files
63+
ipch/
64+
*.aps
65+
*.ncb
66+
*.opensdf
67+
*.sdf
68+
*.cachefile
69+
70+
# Visual Studio profiler
71+
*.psess
72+
*.vsp
73+
*.vspx
74+
75+
# Guidance Automation Toolkit
76+
*.gpState
77+
78+
# ReSharper is a .NET coding add-in
79+
_ReSharper*/
80+
*.[Rr]e[Ss]harper
81+
82+
# TeamCity is a build add-in
83+
_TeamCity*
84+
85+
# DotCover is a Code Coverage Tool
86+
*.dotCover
87+
88+
# NCrunch
89+
*.ncrunch*
90+
.*crunch*.local.xml
91+
92+
# Installshield output folder
93+
[Ee]xpress/
94+
95+
# DocProject is a documentation generator add-in
96+
DocProject/buildhelp/
97+
DocProject/Help/*.HxT
98+
DocProject/Help/*.HxC
99+
DocProject/Help/*.hhc
100+
DocProject/Help/*.hhk
101+
DocProject/Help/*.hhp
102+
DocProject/Help/Html2
103+
DocProject/Help/html
104+
105+
# Click-Once directory
106+
publish/
107+
108+
# Publish Web Output
109+
*.Publish.xml
110+
111+
# Windows Azure Build Output
112+
csx
113+
*.build.csdef
114+
115+
# Windows Store app package directory
116+
AppPackages/
117+
118+
# Others
119+
sql/
120+
*.Cache
121+
ClientBin/
122+
[Ss]tyle[Cc]op.*
123+
~$*
124+
*~
125+
*.dbmdl
126+
*.[Pp]ublish.xml
127+
*.pfx
128+
*.publishsettings
129+
modulesbin/
130+
tempbin/
131+
132+
# EPiServer Site file (VPP)
133+
AppData/
134+
135+
# RIA/Silverlight projects
136+
Generated_Code/
137+
138+
# Backup & report files from converting an old project file to a newer
139+
# Visual Studio version. Backup files are not needed, because we have git ;-)
140+
_UpgradeReport_Files/
141+
Backup*/
142+
UpgradeLog*.XML
143+
UpgradeLog*.htm
144+
145+
# vim
146+
*.txt~
147+
*.swp
148+
*.swo
149+
150+
# svn
151+
.svn
152+
153+
# SQL Server files
154+
**/App_Data/*.mdf
155+
**/App_Data/*.ldf
156+
**/App_Data/*.sdf
157+
158+
159+
#LightSwitch generated files
160+
GeneratedArtifacts/
161+
_Pvt_Extensions/
162+
ModelManifest.xml
163+
164+
# =========================
165+
# Windows detritus
166+
# =========================
167+
168+
# Windows image file caches
169+
Thumbs.db
170+
ehthumbs.db
171+
172+
# Folder config file
173+
Desktop.ini
174+
175+
# Recycle Bin used on file shares
176+
$RECYCLE.BIN/
177+
178+
# Mac desktop service store files
179+
.DS_Store
180+
181+
# SASS Compiler cache
182+
.sass-cache
183+
184+
# Visual Studio 2014 CTP
185+
**/*.sln.ide

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.0-SNAPSHOT

.vs/Aspose.Diagram.Cloud.SDK/v15/Server/sqlite3/db.lock

Whitespace-only changes.
2.73 MB
Binary file not shown.

Aspose.Diagram.Cloud.SDK.sln

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio 15
3+
VisualStudioVersion = 15.0.27428.2011
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspose.Diagram.Cloud.SDK", "src\Aspose.Diagram.Cloud.SDK\Aspose.Diagram.Cloud.SDK.csproj", "{76138BB2-B575-491A-A844-723B583DCB6D}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspose.Diagram.Cloud.SDK.Test", "src\Aspose.Diagram.Cloud.SDK.Test\Aspose.Diagram.Cloud.SDK.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{76138BB2-B575-491A-A844-723B583DCB6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{76138BB2-B575-491A-A844-723B583DCB6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{76138BB2-B575-491A-A844-723B583DCB6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{76138BB2-B575-491A-A844-723B583DCB6D}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {92DDD6A5-8C3C-48C0-A2FC-C5C2C511C50F}
29+
EndGlobalSection
30+
EndGlobal

README.md

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# Aspose.Diagram.Cloud.SDK - the C# library for the Web API Swagger specification
2+
3+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
5+
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
6+
7+
- API version: 1.0
8+
- SDK version: 18.10
9+
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
10+
11+
<a name="frameworks-supported"></a>
12+
## Frameworks supported
13+
- .NET 4.0 or later
14+
- Windows Phone 7.1 (Mango)
15+
16+
<a name="dependencies"></a>
17+
## Dependencies
18+
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
19+
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 9.0.1 or later
20+
21+
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:
22+
```
23+
Install-Package RestSharp
24+
Install-Package Newtonsoft.Json
25+
```
26+
27+
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
28+
29+
<a name="installation"></a>
30+
## Installation
31+
Run the following command to generate the DLL
32+
- [Mac/Linux] `/bin/sh build.sh`
33+
- [Windows] `build.bat`
34+
35+
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
36+
```csharp
37+
using Aspose.Diagram.Cloud.SDK.Api;
38+
using Aspose.Diagram.Cloud.SDK.Client;
39+
using Aspose.Diagram.Cloud.SDK.Model;
40+
```
41+
<a name="packaging"></a>
42+
## Packaging
43+
44+
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
45+
46+
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
47+
48+
```
49+
nuget pack -Build -OutputDirectory out Aspose.Diagram.Cloud.SDK.csproj
50+
```
51+
52+
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
53+
54+
<a name="getting-started"></a>
55+
## Getting Started
56+
57+
```csharp
58+
using System;
59+
using System.Diagnostics;
60+
using Aspose.Diagram.Cloud.SDK.Api;
61+
using Aspose.Diagram.Cloud.SDK.Client;
62+
using Aspose.Diagram.Cloud.SDK.Model;
63+
64+
namespace Example
65+
{
66+
public class Example
67+
{
68+
public void main()
69+
{
70+
71+
var apiInstance = new DiagramFileApi();
72+
var name = name_example; // string | The document name.
73+
var format = format_example; // string | The exported file format. (optional)
74+
var folder = folder_example; // string | The document folder. (optional)
75+
var storage = storage_example; // string | storage name. (optional)
76+
77+
try
78+
{
79+
// Read document info or export.
80+
System.IO.Stream result = apiInstance.DiagramFileGetDiagram(name, format, folder, storage);
81+
Debug.WriteLine(result);
82+
}
83+
catch (Exception e)
84+
{
85+
Debug.Print("Exception when calling DiagramFileApi.DiagramFileGetDiagram: " + e.Message );
86+
}
87+
88+
}
89+
}
90+
}
91+
```
92+
93+
<a name="documentation-for-api-endpoints"></a>
94+
## Documentation for API Endpoints
95+
96+
All URIs are relative to *https://api.aspose.cloud/v1.1/*
97+
98+
Class | Method | HTTP request | Description
99+
------------ | ------------- | ------------- | -------------
100+
*DiagramFileApi* | [**DiagramFileGetDiagram**](docs/DiagramFileApi.md#diagramfilegetdiagram) | **GET** /diagram/{name} | Read document info or export.
101+
*DiagramFileApi* | [**DiagramFilePostSaveAs**](docs/DiagramFileApi.md#diagramfilepostsaveas) | **POST** /diagram/{name}/SaveAs | Convert document and save result to storage.
102+
*DiagramFileApi* | [**DiagramFilePutCreate**](docs/DiagramFileApi.md#diagramfileputcreate) | **PUT** /diagram/{name} | Create new diagram and save result to storage.
103+
*DiagramFileApi* | [**DiagramFilePutUpload**](docs/DiagramFileApi.md#diagramfileputupload) | **PUT** /diagram/{name}/upload | Upload file and save result to storage.
104+
*OAuthApi* | [**OAuthPost**](docs/OAuthApi.md#oauthpost) | **POST** /oauth2/token | Get Access token
105+
106+
107+
<a name="documentation-for-models"></a>
108+
## Documentation for Models
109+
110+
- [Model.AccessTokenResponse](docs/AccessTokenResponse.md)
111+
- [Model.DiagramModel](docs/DiagramModel.md)
112+
- [Model.FileFormatRequest](docs/FileFormatRequest.md)
113+
- [Model.Link](docs/Link.md)
114+
- [Model.PageModel](docs/PageModel.md)
115+
- [Model.SaaSposeResponse](docs/SaaSposeResponse.md)
116+
- [Model.SaveResult](docs/SaveResult.md)
117+
- [Model.SharpModel](docs/SharpModel.md)
118+
- [Model.DiagramResponse](docs/DiagramResponse.md)
119+
- [Model.SaveResponse](docs/SaveResponse.md)
120+
121+
122+
<a name="documentation-for-authorization"></a>
123+
## Documentation for Authorization
124+
125+
<a name="appsid"></a>
126+
### appsid
127+
128+
- **Type**: API key
129+
- **API key parameter name**: appsid
130+
- **Location**: URL query string
131+
132+
<a name="oauth"></a>
133+
### oauth
134+
135+
- **Type**: OAuth
136+
- **Flow**: implicit
137+
- **Authorization URL**:
138+
- **Scopes**:
139+
- write:pets: modify pets in your account
140+
141+
<a name="signature"></a>
142+
### signature
143+
144+
- **Type**: API key
145+
- **API key parameter name**: signature
146+
- **Location**: URL query string
147+

0 commit comments

Comments
 (0)