File tree Expand file tree Collapse file tree 4 files changed +35
-6
lines changed
src/main/java/com/icepanel/core Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Original file line number Diff line number Diff line change 1212 "package-layout" : " flat" ,
1313 "use-local-date-for-dates" : true
1414 },
15- "sdkVersion" : " 0.1.2 "
15+ "sdkVersion" : " 0.1.3 "
1616}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ The IcePanel Java library provides convenient access to the IcePanel APIs from J
99
1010- [ Installation] ( #installation )
1111- [ Reference] ( #reference )
12+ - [ Getting Started] ( #getting-started )
1213- [ Environments] ( #environments )
1314- [ Base Url] ( #base-url )
1415- [ Exception Handling] ( #exception-handling )
@@ -40,14 +41,42 @@ Add the dependency in your `pom.xml` file:
4041<dependency >
4142 <groupId >com.icepanel</groupId >
4243 <artifactId >sdk</artifactId >
43- <version >0.1.2 </version >
44+ <version >0.1.3 </version >
4445</dependency >
4546```
4647
4748## Reference
4849
4950A full reference for this library is available [ here] ( https://github.com/IcePanel/icepanel-java/blob/HEAD/./reference.md ) .
5051
52+ ## Getting Started
53+
54+ Use the following example to list the model objects in the latest version of a landscape.
55+ ``` java
56+ package com.example.usage ;
57+
58+ import com.icepanel.IcePanelClient ;
59+ import com.icepanel.model.types.ModelObjectsListRequest ;
60+
61+ public class Example {
62+ public static void main (String [] args ) {
63+ IcePanelClient client = IcePanelClient
64+ .builder()
65+ .apiKey(" YOUR_API_KEY" )
66+ .build();
67+
68+ client. model(). objects(). list(
69+ ModelObjectsListRequest
70+ .builder()
71+ .landscapeId(" landscapeId" )
72+ .versionId(" latest" )
73+ .build()
74+ );
75+ }
76+ }
77+ ```
78+
79+
5180## Environments
5281
5382This SDK allows you to configure different environments for API requests.
Original file line number Diff line number Diff line change 4747
4848group = ' com.icepanel'
4949
50- version = ' 0.1.2 '
50+ version = ' 0.1.3 '
5151
5252jar {
5353 dependsOn(" :generatePomFileForMavenPublication" )
@@ -78,7 +78,7 @@ publishing {
7878 maven(MavenPublication ) {
7979 groupId = ' com.icepanel'
8080 artifactId = ' sdk'
81- version = ' 0.1.2 '
81+ version = ' 0.1.3 '
8282 from components. java
8383 pom {
8484 name = ' IcePanel <mail@icepanel.io>'
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ private ClientOptions(
3535 this .headers .putAll (headers );
3636 this .headers .putAll (new HashMap <String , String >() {
3737 {
38- put ("User-Agent" , "com.icepanel:sdk/0.1.2 " );
38+ put ("User-Agent" , "com.icepanel:sdk/0.1.3 " );
3939 put ("X-Fern-Language" , "JAVA" );
4040 put ("X-Fern-SDK-Name" , "com.icepanel.fern:api-sdk" );
41- put ("X-Fern-SDK-Version" , "0.1.2 " );
41+ put ("X-Fern-SDK-Version" , "0.1.3 " );
4242 }
4343 });
4444 this .headerSuppliers = headerSuppliers ;
You can’t perform that action at this time.
0 commit comments