Skip to content

Commit de80d63

Browse files
Merge pull request #13 from RusticiSoftware/v3.0-release
Updated library to work with `X-Total-Count` header and new GetApplications endpoint
2 parents 0524634 + e58c164 commit de80d63

File tree

161 files changed

+421
-312
lines changed

Some content is hidden

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

161 files changed

+421
-312
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SCORM Cloud Rest API
44
- API version: 2.0
5-
- Build date: 2022-09-26T11:33:06.485-05:00
5+
- Build date: 2022-11-09T17:35:58.398-06:00
66

77
REST API used for SCORM Cloud integrations.
88

@@ -42,7 +42,7 @@ Add this dependency to your project's POM:
4242
<dependency>
4343
<groupId>com.rusticisoftware.cloud.v2.client</groupId>
4444
<artifactId>scormcloud-api-v2-client</artifactId>
45-
<version>2.1.0</version>
45+
<version>3.0.0</version>
4646
<scope>compile</scope>
4747
</dependency>
4848
```
@@ -52,7 +52,7 @@ Add this dependency to your project's POM:
5252
Add this dependency to your project's build file:
5353

5454
```groovy
55-
compile "com.rusticisoftware.cloud.v2.client:scormcloud-api-v2-client:2.1.0"
55+
compile "com.rusticisoftware.cloud.v2.client:scormcloud-api-v2-client:3.0.0"
5656
```
5757

5858
#### Others
@@ -65,7 +65,7 @@ mvn clean package
6565

6666
Then manually install the following JARs:
6767

68-
* `target/scormcloud-api-v2-client-2.1.0.jar`
68+
* `target/scormcloud-api-v2-client-3.0.0.jar`
6969
* `target/lib/*.jar`
7070

7171
## Tips and Tricks
@@ -376,13 +376,13 @@ public class ScormCloud_Java_Sample {
376376
// Additional filters can be provided to this call to get a subset
377377
// of all courses.
378378
CourseApi courseApi = new CourseApi();
379-
CourseListSchema response = courseApi.getCourses(null, null, null, null, null, null, null, null, null, null);
379+
CourseListSchema response = courseApi.getCourses(null, null, null, null, null, null, null, null, null, null, null);
380380

381381
// This call is paginated, with a token provided if more results exist
382382
List<CourseSchema> courseList = response.getCourses();
383383
while (response.getMore() != null)
384384
{
385-
response = courseApi.getCourses(null, null, null, null, null, null, null, response.getMore(), null, null);
385+
response = courseApi.getCourses(null, null, null, null, null, null, null, response.getMore(), null, null, null);
386386
courseList.addAll(response.getCourses());
387387
}
388388

@@ -412,13 +412,13 @@ public class ScormCloud_Java_Sample {
412412
// Additional filters can be provided to this call to get a subset
413413
// of all registrations.
414414
RegistrationApi registrationApi = new RegistrationApi();
415-
RegistrationListSchema response = registrationApi.getRegistrations(null, null, null, null, null, null, null, null, null, null, null, null, null);
415+
RegistrationListSchema response = registrationApi.getRegistrations(null, null, null, null, null, null, null, null, null, null, null, null, null, null);
416416

417417
// This call is paginated, with a token provided if more results exist
418418
List<RegistrationSchema> registrationList = response.getRegistrations();
419419
while (response.getMore() != null)
420420
{
421-
response = registrationApi.getRegistrations(null, null, null, null, null, null, null, null, null, response.getMore(), null, null, null);
421+
response = registrationApi.getRegistrations(null, null, null, null, null, null, null, null, null, response.getMore(), null, null, null, null);
422422
registrationList.addAll(response.getRegistrations());
423423
}
424424

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.rusticisoftware.cloud.v2.client'
5-
version = '2.1.0'
5+
version = '3.0.0'
66

77
buildscript {
88
repositories {

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 := "com.rusticisoftware.cloud.v2.client",
44
name := "scormcloud-api-v2-client",
5-
version := "2.1.0",
5+
version := "3.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>scormcloud-api-v2-client</artifactId>
55
<packaging>jar</packaging>
66
<name>scormcloud-api-v2-client</name>
7-
<version>2.1.1-SNAPSHOT</version>
7+
<version>3.0.1-SNAPSHOT</version>
88
<url>https://rusticisoftware.com/products/scorm-cloud/api/</url>
99
<description>Swagger Generated Java Client for SCORM Cloud API v2</description>
1010
<scm>
@@ -277,7 +277,7 @@
277277
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
278278
<swagger-core-version>1.5.24</swagger-core-version>
279279
<jersey-version>2.29.1</jersey-version>
280-
<jackson-version>2.11.4</jackson-version>
280+
<jackson-version>2.13.4</jackson-version>
281281
<maven-plugin-version>1.0.0</maven-plugin-version>
282282
</properties>
283283
<distributionManagement>

src/main/java/com/rusticisoftware/cloud/v2/client/ApiClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
import com.rusticisoftware.cloud.v2.client.auth.ApiKeyAuth;
5252
import com.rusticisoftware.cloud.v2.client.auth.OAuth;
5353

54-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
5554
public class ApiClient {
5655
protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
5756
protected String basePath = "https://cloud.scorm.com/api/v2/";
@@ -74,14 +73,13 @@ public ApiClient() {
7473
this.dateFormat = new RFC3339DateFormat();
7574

7675
// Set default User-Agent.
77-
setUserAgent("Swagger-Codegen/2.1.0/java");
76+
setUserAgent("Swagger-Codegen/3.0.0/java");
7877

7978
// Setup authentications (key: authentication name, value: authentication).
8079
authentications = new HashMap<String, Authentication>();
8180
authentications.put("APP_MANAGEMENT", new HttpBasicAuth());
8281
authentications.put("APP_NORMAL", new HttpBasicAuth());
8382
authentications.put("OAUTH", new OAuth());
84-
authentications.put("UNSECURED", new HttpBasicAuth());
8583
// Prevent the authentications from being modified.
8684
authentications = Collections.unmodifiableMap(authentications);
8785
}

src/main/java/com/rusticisoftware/cloud/v2/client/ApiException.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import java.util.Map;
1717
import java.util.List;
1818

19-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
2019
public class ApiException extends Exception {
2120
private int code = 0;
2221
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/rusticisoftware/cloud/v2/client/Configuration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
package com.rusticisoftware.cloud.v2.client;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
1716
public class Configuration {
1817
private static ApiClient defaultApiClient = new ApiClient();
1918

src/main/java/com/rusticisoftware/cloud/v2/client/JSON.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import javax.ws.rs.ext.ContextResolver;
1010

11-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
1211
public class JSON implements ContextResolver<ObjectMapper> {
1312
private ObjectMapper mapper;
1413

src/main/java/com/rusticisoftware/cloud/v2/client/Pair.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
package com.rusticisoftware.cloud.v2.client;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
1716
public class Pair {
1817
private String name = "";
1918
private String value = "";

src/main/java/com/rusticisoftware/cloud/v2/client/StringUtil.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
package com.rusticisoftware.cloud.v2.client;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-26T11:33:06.485-05:00")
1716
public class StringUtil {
1817
/**
1918
* Check if the given array contains the given value (with case-insensitive comparison).

0 commit comments

Comments
 (0)