Skip to content

Commit 7b6dc45

Browse files
author
Fast Reports
committed
sync 2024-02-08
1 parent ad3e2cf commit 7b6dc45

File tree

169 files changed

+393
-207
lines changed

Some content is hidden

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

169 files changed

+393
-207
lines changed

README.md

+63-39
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
# fastreport-cloud-sdk
22

33
FastReport Cloud
4-
54
- API version: v1
65

76
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
87

98

109
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
1110

11+
1212
## Requirements
1313

1414
Building the API client library requires:
15-
1615
1. Java 1.8+
17-
2. Maven/Gradle
16+
2. Maven (3.8.3+)/Gradle (7.2+)
1817

1918
## Installation
2019

2120
To install the API client library to your local Maven repository, simply execute:
2221

2322
```shell
24-
git clone https://github.com/FastReports/FastReport-Cloud-Java.git
25-
cd FastReport-Cloud-Java
2623
mvn clean install
2724
```
2825

26+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
27+
28+
```shell
29+
mvn clean deploy
30+
```
31+
32+
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
33+
2934
### Maven users
3035

3136
Add this dependency to your project's POM:
@@ -34,7 +39,7 @@ Add this dependency to your project's POM:
3439
<dependency>
3540
<groupId>cloud.fastreport.sdk</groupId>
3641
<artifactId>fastreport-cloud-sdk</artifactId>
37-
<version>2024.1.21</version>
42+
<version>2024.1.22</version>
3843
<scope>compile</scope>
3944
</dependency>
4045
```
@@ -44,7 +49,14 @@ Add this dependency to your project's POM:
4449
Add this dependency to your project's build file:
4550

4651
```groovy
47-
compile "cloud.fastreport.sdk:fastreport-cloud-sdk:2024.1.21"
52+
repositories {
53+
mavenCentral() // Needed if the 'fastreport-cloud-sdk' jar has been published to maven central.
54+
mavenLocal() // Needed if the 'fastreport-cloud-sdk' jar has been published to the local maven repo.
55+
}
56+
57+
dependencies {
58+
implementation "cloud.fastreport.sdk:fastreport-cloud-sdk:2024.1.22"
59+
}
4860
```
4961

5062
### Others
@@ -57,43 +69,52 @@ mvn clean package
5769

5870
Then manually install the following JARs:
5971

60-
- `target/fastreport-cloud-sdk-2024.1.21.jar`
61-
- `target/lib/*.jar`
72+
* `target/fastreport-cloud-sdk-2024.1.22.jar`
73+
* `target/lib/*.jar`
6274

6375
## Getting Started
6476

6577
Please follow the [installation](#installation) instruction and execute the following Java code:
6678

6779
```java
68-
import cloud.fastreport.*;
80+
81+
// Import classes:
82+
import cloud.fastreport.ApiClient;
83+
import cloud.fastreport.ApiException;
84+
import cloud.fastreport.Configuration;
6985
import cloud.fastreport.auth.*;
70-
import cloud.fastreport.model.*;
71-
import cloud.fastreport.client.UserProfileApi;
72-
73-
public class AppExample {
74-
75-
public static void main(String[] args) {
76-
77-
ApiClient defaultClient = new ApiClient(
78-
"https://fastreport.cloud",
79-
null,
80-
new BasicAuthentication("apikey", "***PUT YOUR API KEY HERE***"),
81-
null
82-
);
83-
84-
UserProfileApi apiInstance = new UserProfileApi(defaultClient);
85-
try {
86-
UserProfileVM result = apiInstance.userProfileGetMyProfile();
87-
System.out.println(result);
88-
} catch (ApiException e) {
89-
System.err.println("Exception when calling UserProfileApi#userProfileGetMyProfile");
90-
System.err.println("Status code: " + e.getCode());
91-
System.err.println("Reason: " + e.getResponseBody());
92-
System.err.println("Response headers: " + e.getResponseHeaders());
93-
e.printStackTrace();
94-
}
86+
import cloud.fastreport.models.*;
87+
import cloud.fastreport.client.ApiKeysApi;
88+
89+
public class Example {
90+
public static void main(String[] args) {
91+
ApiClient defaultClient = Configuration.getDefaultApiClient();
92+
defaultClient.setBasePath("http://localhost");
93+
94+
// Configure HTTP basic authorization: ApiKey
95+
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
96+
ApiKey.setUsername("YOUR USERNAME");
97+
ApiKey.setPassword("YOUR PASSWORD");
98+
99+
// Configure HTTP bearer authorization: JWT
100+
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
101+
JWT.setBearerToken("BEARER TOKEN");
102+
103+
ApiKeysApi apiInstance = new ApiKeysApi(defaultClient);
104+
CreateApiKeyVM createApiKeyVM = new CreateApiKeyVM(); // CreateApiKeyVM |
105+
try {
106+
ApiKeyVM result = apiInstance.apiKeysCreateApiKey(createApiKeyVM);
107+
System.out.println(result);
108+
} catch (ApiException e) {
109+
System.err.println("Exception when calling ApiKeysApi#apiKeysCreateApiKey");
110+
System.err.println("Status code: " + e.getCode());
111+
System.err.println("Reason: " + e.getResponseBody());
112+
System.err.println("Response headers: " + e.getResponseHeaders());
113+
e.printStackTrace();
95114
}
115+
}
96116
}
117+
97118
```
98119

99120
## Documentation for API Endpoints
@@ -569,17 +590,19 @@ Class | Method | HTTP request | Description
569590
- [WebhookTaskVM](docs/WebhookTaskVM.md)
570591

571592

593+
<a id="documentation-for-authorization"></a>
572594
## Documentation for Authorization
573595

596+
574597
Authentication schemes defined for the API:
598+
<a id="JWT"></a>
575599
### JWT
576600

601+
- **Type**: HTTP Bearer Token authentication (JWT)
577602

578-
- **Type**: HTTP basic authentication
579-
603+
<a id="ApiKey"></a>
580604
### ApiKey
581605

582-
583606
- **Type**: HTTP basic authentication
584607

585608

@@ -589,4 +612,5 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea
589612

590613
## Author
591614

592-
https://www.fast-report.com/en/
615+
616+

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024.1.21
1+
2024.1.22

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'cloud.fastreport.sdk'
7-
version = '2024.1.21'
7+
version = '2024.1.22'
88

99
buildscript {
1010
repositories {

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "cloud.fastreport.sdk",
44
name := "fastreport-cloud-sdk",
5-
version := "2024.1.21",
5+
version := "2024.1.22",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>fastreport-cloud-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>fastreport-cloud-sdk</name>
8-
<version>2024.1.21</version>
8+
<version>2024.1.22</version>
99
<url>https://github.com/FastReports/FastReport-Cloud-Java</url>
1010
<description>FastReport Cloud SDK</description>
1111
<scm>

src/main/java/cloud/fastreport/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void init() {
143143
json = new JSON();
144144

145145
// Set default User-Agent.
146-
setUserAgent("OpenAPI-Generator/2024.1.21/java");
146+
setUserAgent("OpenAPI-Generator/2024.1.22/java");
147147

148148
authentications = new HashMap<String, Authentication>();
149149
}

src/main/java/cloud/fastreport/Configuration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
1717
public class Configuration {
18-
public static final String VERSION = "2024.1.21";
18+
public static final String VERSION = "2024.1.22";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

src/main/java/cloud/fastreport/model/AcceptAgreementsVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public void write(JsonWriter out, AcceptAgreementsVM value) throws IOException {
172172
@Override
173173
public AcceptAgreementsVM read(JsonReader in) throws IOException {
174174
JsonElement jsonElement = elementAdapter.read(in);
175-
validateJsonElement(jsonElement);
175+
// comment by Detrav, do not need to validate JSON while parse
176+
//validateJsonElement(jsonElement);
176177
return thisAdapter.fromJsonTree(jsonElement);
177178
}
178179

src/main/java/cloud/fastreport/model/AdminExportFolderCreateVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ public void write(JsonWriter out, AdminExportFolderCreateVM value) throws IOExce
179179
@Override
180180
public AdminExportFolderCreateVM read(JsonReader in) throws IOException {
181181
JsonElement jsonElement = elementAdapter.read(in);
182-
validateJsonElement(jsonElement);
182+
// comment by Detrav, do not need to validate JSON while parse
183+
//validateJsonElement(jsonElement);
183184
return thisAdapter.fromJsonTree(jsonElement);
184185
}
185186

src/main/java/cloud/fastreport/model/AdminReportFolderCreateVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ public void write(JsonWriter out, AdminReportFolderCreateVM value) throws IOExce
179179
@Override
180180
public AdminReportFolderCreateVM read(JsonReader in) throws IOException {
181181
JsonElement jsonElement = elementAdapter.read(in);
182-
validateJsonElement(jsonElement);
182+
// comment by Detrav, do not need to validate JSON while parse
183+
//validateJsonElement(jsonElement);
183184
return thisAdapter.fromJsonTree(jsonElement);
184185
}
185186

src/main/java/cloud/fastreport/model/AdminSubscriptionVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ public void write(JsonWriter out, AdminSubscriptionVM value) throws IOException
233233
@Override
234234
public AdminSubscriptionVM read(JsonReader in) throws IOException {
235235
JsonElement jsonElement = elementAdapter.read(in);
236-
validateJsonElement(jsonElement);
236+
// comment by Detrav, do not need to validate JSON while parse
237+
//validateJsonElement(jsonElement);
237238
return thisAdapter.fromJsonTree(jsonElement);
238239
}
239240

src/main/java/cloud/fastreport/model/AdminTemplateFolderCreateVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ public void write(JsonWriter out, AdminTemplateFolderCreateVM value) throws IOEx
179179
@Override
180180
public AdminTemplateFolderCreateVM read(JsonReader in) throws IOException {
181181
JsonElement jsonElement = elementAdapter.read(in);
182-
validateJsonElement(jsonElement);
182+
// comment by Detrav, do not need to validate JSON while parse
183+
//validateJsonElement(jsonElement);
183184
return thisAdapter.fromJsonTree(jsonElement);
184185
}
185186

src/main/java/cloud/fastreport/model/ApiKeyVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ public void write(JsonWriter out, ApiKeyVM value) throws IOException {
243243
@Override
244244
public ApiKeyVM read(JsonReader in) throws IOException {
245245
JsonElement jsonElement = elementAdapter.read(in);
246-
validateJsonElement(jsonElement);
246+
// comment by Detrav, do not need to validate JSON while parse
247+
//validateJsonElement(jsonElement);
247248
return thisAdapter.fromJsonTree(jsonElement);
248249
}
249250

src/main/java/cloud/fastreport/model/ApiKeysVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ public void write(JsonWriter out, ApiKeysVM value) throws IOException {
235235
@Override
236236
public ApiKeysVM read(JsonReader in) throws IOException {
237237
JsonElement jsonElement = elementAdapter.read(in);
238-
validateJsonElement(jsonElement);
238+
// comment by Detrav, do not need to validate JSON while parse
239+
//validateJsonElement(jsonElement);
239240
return thisAdapter.fromJsonTree(jsonElement);
240241
}
241242

src/main/java/cloud/fastreport/model/AppMixins.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ public void write(JsonWriter out, AppMixins value) throws IOException {
216216
@Override
217217
public AppMixins read(JsonReader in) throws IOException {
218218
JsonElement jsonElement = elementAdapter.read(in);
219-
validateJsonElement(jsonElement);
219+
// comment by Detrav, do not need to validate JSON while parse
220+
//validateJsonElement(jsonElement);
220221
return thisAdapter.fromJsonTree(jsonElement);
221222
}
222223

src/main/java/cloud/fastreport/model/AuditActionsVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ public void write(JsonWriter out, AuditActionsVM value) throws IOException {
287287
@Override
288288
public AuditActionsVM read(JsonReader in) throws IOException {
289289
JsonElement jsonElement = elementAdapter.read(in);
290-
validateJsonElement(jsonElement);
290+
// comment by Detrav, do not need to validate JSON while parse
291+
//validateJsonElement(jsonElement);
291292
return thisAdapter.fromJsonTree(jsonElement);
292293
}
293294

src/main/java/cloud/fastreport/model/AuditFilePropertyChangedVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ public void write(JsonWriter out, AuditFilePropertyChangedVM value) throws IOExc
282282
@Override
283283
public AuditFilePropertyChangedVM read(JsonReader in) throws IOException {
284284
JsonElement jsonElement = elementAdapter.read(in);
285-
validateJsonElement(jsonElement);
285+
// comment by Detrav, do not need to validate JSON while parse
286+
//validateJsonElement(jsonElement);
286287
return thisAdapter.fromJsonTree(jsonElement);
287288
}
288289

src/main/java/cloud/fastreport/model/AuditSubscriptionActionVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ public void write(JsonWriter out, AuditSubscriptionActionVM value) throws IOExce
256256
@Override
257257
public AuditSubscriptionActionVM read(JsonReader in) throws IOException {
258258
JsonElement jsonElement = elementAdapter.read(in);
259-
validateJsonElement(jsonElement);
259+
// comment by Detrav, do not need to validate JSON while parse
260+
//validateJsonElement(jsonElement);
260261
return thisAdapter.fromJsonTree(jsonElement);
261262
}
262263

src/main/java/cloud/fastreport/model/AuditTaskActionVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ public void write(JsonWriter out, AuditTaskActionVM value) throws IOException {
231231
@Override
232232
public AuditTaskActionVM read(JsonReader in) throws IOException {
233233
JsonElement jsonElement = elementAdapter.read(in);
234-
validateJsonElement(jsonElement);
234+
// comment by Detrav, do not need to validate JSON while parse
235+
//validateJsonElement(jsonElement);
235236
return thisAdapter.fromJsonTree(jsonElement);
236237
}
237238

src/main/java/cloud/fastreport/model/AuthConfigVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ public void write(JsonWriter out, AuthConfigVM value) throws IOException {
239239
@Override
240240
public AuthConfigVM read(JsonReader in) throws IOException {
241241
JsonElement jsonElement = elementAdapter.read(in);
242-
validateJsonElement(jsonElement);
242+
// comment by Detrav, do not need to validate JSON while parse
243+
//validateJsonElement(jsonElement);
243244
return thisAdapter.fromJsonTree(jsonElement);
244245
}
245246

src/main/java/cloud/fastreport/model/BreadcrumbsModel.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ public void write(JsonWriter out, BreadcrumbsModel value) throws IOException {
216216
@Override
217217
public BreadcrumbsModel read(JsonReader in) throws IOException {
218218
JsonElement jsonElement = elementAdapter.read(in);
219-
validateJsonElement(jsonElement);
219+
// comment by Detrav, do not need to validate JSON while parse
220+
//validateJsonElement(jsonElement);
220221
return thisAdapter.fromJsonTree(jsonElement);
221222
}
222223

src/main/java/cloud/fastreport/model/BreadcrumbsVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ public void write(JsonWriter out, BreadcrumbsVM value) throws IOException {
209209
@Override
210210
public BreadcrumbsVM read(JsonReader in) throws IOException {
211211
JsonElement jsonElement = elementAdapter.read(in);
212-
validateJsonElement(jsonElement);
212+
// comment by Detrav, do not need to validate JSON while parse
213+
//validateJsonElement(jsonElement);
213214
return thisAdapter.fromJsonTree(jsonElement);
214215
}
215216

src/main/java/cloud/fastreport/model/ClearNotificationsVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public void write(JsonWriter out, ClearNotificationsVM value) throws IOException
172172
@Override
173173
public ClearNotificationsVM read(JsonReader in) throws IOException {
174174
JsonElement jsonElement = elementAdapter.read(in);
175-
validateJsonElement(jsonElement);
175+
// comment by Detrav, do not need to validate JSON while parse
176+
//validateJsonElement(jsonElement);
176177
return thisAdapter.fromJsonTree(jsonElement);
177178
}
178179

src/main/java/cloud/fastreport/model/ContactGroupVM.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ public void write(JsonWriter out, ContactGroupVM value) throws IOException {
356356
@Override
357357
public ContactGroupVM read(JsonReader in) throws IOException {
358358
JsonElement jsonElement = elementAdapter.read(in);
359-
validateJsonElement(jsonElement);
359+
// comment by Detrav, do not need to validate JSON while parse
360+
//validateJsonElement(jsonElement);
360361
return thisAdapter.fromJsonTree(jsonElement);
361362
}
362363

0 commit comments

Comments
 (0)