Skip to content

Commit ab65a52

Browse files
authored
Merge pull request #18 from databox/release/0.4.1/1720687213698
[SDK release] Generated SDK code based on data-link 0.4.1 API changes
2 parents 8cb6c0c + d35aa4e commit ab65a52

34 files changed

+78
-78
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# databox
22

33
Static OpenAPI document of Push API resource
4-
- API version: 0.3.15-sdk.5
5-
- Build date: 2024-07-10T07:53:22.529213Z[Etc/UTC]
4+
- API version: 0.4.1
5+
- Build date: 2024-07-11T08:40:29.068083Z[Etc/UTC]
66
- Generator version: 7.6.0
77

88
Push API resources Open API documentation
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>org.databox</groupId>
4343
<artifactId>databox</artifactId>
44-
<version>0.1.2</version>
44+
<version>2.5.1</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "org.databox:databox:0.1.2"
60+
implementation "org.databox:databox:2.5.1"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/databox-0.1.2.jar`
74+
* `target/databox-2.5.1.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

src/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# databox
22

33
Static OpenAPI document of Push API resource
4-
- API version: 0.3.15-sdk.5
5-
- Build date: 2024-07-10T07:53:22.529213Z[Etc/UTC]
4+
- API version: 0.4.1
5+
- Build date: 2024-07-11T08:40:29.068083Z[Etc/UTC]
66
- Generator version: 7.6.0
77

88
Push API resources Open API documentation
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>org.databox</groupId>
4343
<artifactId>databox</artifactId>
44-
<version>0.1.2</version>
44+
<version>2.5.1</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "org.databox:databox:0.1.2"
60+
implementation "org.databox:databox:2.5.1"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/databox-0.1.2.jar`
74+
* `target/databox-2.5.1.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

src/api/openapi.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ openapi: 3.0.3
22
info:
33
description: Push API resources Open API documentation
44
title: Static OpenAPI document of Push API resource
5-
version: 0.3.15-sdk.5
5+
version: 0.4.1
66
servers:
77
- description: Dev mode server description
88
url: https://push.databox.com
99
security:
1010
- basicAuth: []
1111
paths:
12-
/data:
13-
delete:
12+
/metrickeys:
13+
get:
1414
responses:
1515
"200":
1616
description: OK
@@ -21,37 +21,25 @@ paths:
2121
content:
2222
application/json:
2323
schema:
24-
items:
25-
$ref: '#/components/schemas/PushData'
26-
type: array
24+
type: object
2725
application/vnd.databox.v2+json:
2826
schema:
29-
items:
30-
$ref: '#/components/schemas/PushData'
31-
type: array
27+
type: object
3228
responses:
3329
"200":
3430
description: OK
3531
x-content-type: application/json
3632
x-accepts:
3733
- application/json
38-
/data/{metricKey}:
39-
delete:
40-
parameters:
41-
- explode: false
42-
in: path
43-
name: metricKey
44-
required: true
45-
schema:
46-
type: string
47-
style: simple
34+
/ping:
35+
get:
4836
responses:
4937
"200":
5038
description: OK
5139
x-accepts:
5240
- application/json
53-
/metrickeys:
54-
get:
41+
/data:
42+
delete:
5543
responses:
5644
"200":
5745
description: OK
@@ -62,18 +50,30 @@ paths:
6250
content:
6351
application/json:
6452
schema:
65-
type: object
53+
items:
54+
$ref: '#/components/schemas/PushData'
55+
type: array
6656
application/vnd.databox.v2+json:
6757
schema:
68-
type: object
58+
items:
59+
$ref: '#/components/schemas/PushData'
60+
type: array
6961
responses:
7062
"200":
7163
description: OK
7264
x-content-type: application/json
7365
x-accepts:
7466
- application/json
75-
/ping:
76-
get:
67+
/data/{metricKey}:
68+
delete:
69+
parameters:
70+
- explode: false
71+
in: path
72+
name: metricKey
73+
required: true
74+
schema:
75+
type: string
76+
style: simple
7777
responses:
7878
"200":
7979
description: OK

src/build.gradle

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

66
group = 'org.databox'
7-
version = '0.1.2'
7+
version = '2.5.1'
88

99
buildscript {
1010
repositories {

src/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.databox",
44
name := "databox",
5-
version := "0.1.2",
5+
version := "2.5.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

src/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>databox</artifactId>
66
<packaging>jar</packaging>
77
<name>databox</name>
8-
<version>0.1.2</version>
8+
<version>2.5.1</version>
99
<url>https://github.com/databox/databox-java</url>
1010
<description>SDK Client for using Databox Push API feature</description>
1111
<scm>

src/src/main/java/org/databox/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Static OpenAPI document of Push API resource
33
* Push API resources Open API documentation
44
*
5-
* The version of the OpenAPI document: 0.3.15-sdk.5
5+
* The version of the OpenAPI document: 0.4.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/src/main/java/org/databox/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Static OpenAPI document of Push API resource
33
* Push API resources Open API documentation
44
*
5-
* The version of the OpenAPI document: 0.3.15-sdk.5
5+
* The version of the OpenAPI document: 0.4.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -141,7 +141,7 @@ private void init() {
141141
json = new JSON();
142142

143143
// Set default User-Agent.
144-
setUserAgent("OpenAPI-Generator/0.1.2/java");
144+
setUserAgent("OpenAPI-Generator/2.5.1/java");
145145

146146
authentications = new HashMap<String, Authentication>();
147147
}

src/src/main/java/org/databox/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Static OpenAPI document of Push API resource
33
* Push API resources Open API documentation
44
*
5-
* The version of the OpenAPI document: 0.3.15-sdk.5
5+
* The version of the OpenAPI document: 0.4.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,7 +21,7 @@
2121
* <p>ApiException class.</p>
2222
*/
2323
@SuppressWarnings("serial")
24-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
24+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T08:40:29.068083Z[Etc/UTC]", comments = "Generator version: 7.6.0")
2525
public class ApiException extends Exception {
2626
private static final long serialVersionUID = 1L;
2727

src/src/main/java/org/databox/ApiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Static OpenAPI document of Push API resource
33
* Push API resources Open API documentation
44
*
5-
* The version of the OpenAPI document: 0.3.15-sdk.5
5+
* The version of the OpenAPI document: 0.4.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)