Skip to content

Commit a2748e1

Browse files
committed
Added PolyCustom feature for server functions.
1 parent 29966fb commit a2748e1

File tree

7 files changed

+26
-11
lines changed

7 files changed

+26
-11
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Java Client Library (beta)
22

3-
### Latest released version v0.7.1
4-
### Latest snapshot version v0.7.2-SNAPSHOT
3+
### Latest released version v0.7.2
4+
### Latest snapshot version v0.8.0-SNAPSHOT
55

66
## Introduction
77
Welcome my friends! This is the Poly API Java client GitHub page. If you are here, then it means you're familiar with what we do at Poly. If you aren't, you can always check [here](https://github.com/polyapi/poly-alpha).
@@ -55,7 +55,7 @@ Nice to have some customers looking around here! So, you'll need to run the foll
5555
2. **Update the project.** Add the following to your project's `pom.xml`:
5656
```xml
5757
<properties>
58-
<poly.version>0.7.1</poly.version>
58+
<poly.version>0.7.2</poly.version>
5959
</properties>
6060
<dependencies>
6161
<dependency>
@@ -315,6 +315,8 @@ Comparing to its Typescript counterpart, the Java library is still missing the f
315315
These features will be added in the future releases.
316316

317317
## Changelog
318+
### v0.8.0
319+
- Added PolyCustom functionality.
318320
### v0.7.2
319321
- Made JacksonJSonParser extend ObjectMapper instead of using it.
320322
- Made response from server on errors be displayed under debug log instead of info.

commons/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.polyapi</groupId>
66
<artifactId>parent-pom</artifactId>
7-
<version>0.7.3-SNAPSHOT</version>
7+
<version>0.8.0-SNAPSHOT</version>
88
<relativePath>../parent-pom</relativePath>
99
</parent>
1010

library/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.polyapi</groupId>
66
<artifactId>parent-pom</artifactId>
7-
<version>0.7.3-SNAPSHOT</version>
7+
<version>0.8.0-SNAPSHOT</version>
88
<relativePath>../parent-pom</relativePath>
99
</parent>
1010
<artifactId>library</artifactId>
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
package io.polyapi.client.api.model.function;
22

33
import io.polyapi.commons.api.model.PolyObject;
4+
import lombok.AllArgsConstructor;
5+
import lombok.EqualsAndHashCode;
46
import lombok.Getter;
57
import lombok.Setter;
8+
import lombok.ToString;
69

710
/**
8-
* Utility class that provides additional functionality to server functions. Available only during execution time.
11+
* Utility class that provides additional functionality and information to server functions. Available only during execution time.
912
*/
1013
@Getter
11-
public class PolyCustom implements PolyObject {
12-
private String environmentId;
14+
@ToString
15+
@EqualsAndHashCode
16+
@AllArgsConstructor
17+
public final class PolyCustom implements PolyObject {
18+
private String executionId;
19+
private String executionApiKey;
20+
21+
@Setter
22+
private Integer responseStatusCode;
23+
24+
@Setter
25+
private String responseContentType;
1326
}

parent-pom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.polyapi</groupId>
55
<artifactId>parent-pom</artifactId>
6-
<version>0.7.3-SNAPSHOT</version>
6+
<version>0.8.0-SNAPSHOT</version>
77
<packaging>pom</packaging>
88
<name>Poly API Java parent POM</name>
99
<url>https://polyapi.io</url>

polyapi-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.polyapi</groupId>
66
<artifactId>parent-pom</artifactId>
7-
<version>0.7.3-SNAPSHOT</version>
7+
<version>0.8.0-SNAPSHOT</version>
88
<relativePath>../parent-pom</relativePath>
99
</parent>
1010
<artifactId>polyapi-maven-plugin</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.polyapi</groupId>
55
<artifactId>polyapi-java</artifactId>
6-
<version>0.7.3-SNAPSHOT</version>
6+
<version>0.8.0-SNAPSHOT</version>
77
<packaging>pom</packaging>
88
<modules>
99
<module>parent-pom</module>

0 commit comments

Comments
 (0)