Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
80d4a33
Merge pull request #14 from xdev-software/master
AB-xdev Aug 2, 2023
a965b4c
Remove generation date
AB-xdev Aug 7, 2023
3fe0a03
Rename
AB-xdev Aug 7, 2023
740b646
Rename
AB-xdev Aug 7, 2023
dbd7d2a
Create openapi.yml
AB-xdev Aug 7, 2023
396b00f
Create INFO.md
AB-xdev Aug 7, 2023
7f401d9
Update poms
AB-xdev Aug 7, 2023
00e980b
Update README.md
AB-xdev Aug 8, 2023
0aeff63
Update README.md
AB-xdev Aug 8, 2023
956fbca
Correct template
AB-xdev Aug 8, 2023
d07507d
Update update-from-template.yml
AB-xdev Aug 8, 2023
edaa448
Merge remote-tracking branch 'origin/update-from-template' into develop
AB-xdev Aug 8, 2023
9a3747b
Sync poms I
AB-xdev Aug 8, 2023
192da44
Sync poms II
AB-xdev Aug 8, 2023
ec1d719
Sync poms III
AB-xdev Aug 8, 2023
14ced0e
Correct inceptionyear
AB-xdev Aug 8, 2023
069d1ec
Update README.md
AB-xdev Aug 8, 2023
ab64e0e
Update CHANGELOG.md
AB-xdev Aug 8, 2023
9093b71
Add Editor shield
AB-xdev Aug 8, 2023
1b862b7
Merge remote-tracking branch 'origin/update-from-template' into develop
AB-xdev Aug 8, 2023
59d5447
Update CHANGELOG.md
AB-xdev Aug 8, 2023
6cf71f4
Bump org.openapitools:openapi-generator-maven-plugin from 6.6.0 to 7.0.0
dependabot[bot] Aug 28, 2023
4883a90
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 5, 2023
bca34c3
Merge pull request #3 from xdev-software/dependabot/github_actions/ac…
AB-xdev Sep 7, 2023
2decbe8
Merge pull request #5 from xdev-software/update-from-template
AB-xdev Sep 7, 2023
7c38b04
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 7, 2023
ff8b438
Merge pull request #4 from xdev-software/dependabot/github_actions/ac…
AB-xdev Sep 7, 2023
37cc0b7
Merge pull request #3 from xdev-software/update-from-template
AB-xdev Sep 7, 2023
5021b2f
Merge pull request #1 from xdev-software/dependabot/maven/org.openapi…
AB-xdev Sep 7, 2023
52b9ba3
Merge remote-tracking branch 'origin/update-from-template' into develop
AB-xdev Sep 7, 2023
2714840
Fix incorrect package name
AB-xdev Sep 7, 2023
726678c
Regenerate code due to generator update
AB-xdev Sep 7, 2023
e3cf1c5
Update CHANGELOG.md
AB-xdev Sep 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checkBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
distribution: [temurin]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
check_code: # Validates the code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Configure Git
run: |
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
needs: [prepare_release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Init Git and pull
run: |
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
runs-on: ubuntu-latest
needs: [prepare_release]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Init Git and pull
run: |
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
runs-on: ubuntu-latest
needs: [publish_central]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Init Git and pull
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
publish_central: # Publish the code to central
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK OSSRH
uses: actions/setup-java@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-from-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

env:
UPDATE_BRANCH: update-from-template
REMOTE_URL: https://github.com/xdev-software/standard-maven-template.git
REMOTE_URL: https://github.com/xdev-software/openapi-client-maven-template.git
REMOTE_BRANCH: master

permissions:
Expand All @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Required because otherwise there are always changes detected when executing diff/rev-list
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .run/Run Demo.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
</component>
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 1.0.1
* Shrunk generated code a bit
* Updated openapi generator

# 1.0.0

* Initial release
* Supports Sessionize API ``v2`` and the following endpoints
* Supports the following endpoints of the Sessionize API ``v2``:
* ``/view/All``
* ``/view/Speakers``
* ``/view/Sessions``
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[![Latest version](https://img.shields.io/maven-central/v/com.xdev-software/sessionize-java-client?logo=apache%20maven)](https://mvnrepository.com/artifact/com.xdev-software/sessionize-java-client)
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/sessionize-java-client/checkBuild.yml?branch=develop)](https://github.com/xdev-software/sessionize-java-client/actions/workflows/checkBuild.yml?query=branch%3Adevelop)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=xdev-software_sessionize-java-client&metric=alert_status)](https://sonarcloud.io/dashboard?id=xdev-software_sessionize-java-client)
[![API Specification Editor](https://img.shields.io/badge/API--Spec-Editor-85ea2d?logo=swagger)](https://editor.swagger.io/?url=https://raw.githubusercontent.com/xdev-software/sessionize-java-client/develop/openapi/openapi.yml)

# <img src="https://sessionize.com/landing/images/brand/logo/sessionize-avatar.svg" height="22" /> [sessionize](https://sessionize.com/)-java-client
Java client for the [Sessionize API](https://sessionize.com/playbook/api)

This client [is generated](./sessionize-java-client/pom.xml) from an [``openapi.yml``](./openapi/openapi.yml) using [OpenAPI Generator](https://openapi-generator.tech/).

Currently this client supports Sessionize API ``v2`` and the following endpoints
* ``/view/All``
* ``/view/Speakers``
* ``/view/Sessions``
Currently this client supports the following endpoints of the Sessionize API ``v2``:
* ``/view/All``
* ``/view/Speakers``
* ``/view/Sessions``

## Installation
[Installation guide for the latest release](https://github.com/xdev-software/sessionize-java-client/releases/latest#Installation)
Expand Down
3 changes: 2 additions & 1 deletion openapi/INFO.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
This ``openapi.yml`` was written manually as sessionize fails to provide an API schema or something similar.
This ``openapi.yml`` was written manually as Sessionize fails to provide an API schema or something similar.

The Java API Client can be generated using ``mvn clean compile -P openapi-generator`` inside [``sessionize-java-client``](../sessionize-java-client/).

Helpful links:
* https://jsonformatter.org/json-to-jsonschema
* https://swagger.io/specification/
* https://editor.swagger.io/
2 changes: 1 addition & 1 deletion sessionize-java-client-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<inceptionYear>2022</inceptionYear>
<inceptionYear>2023</inceptionYear>

<organization>
<name>XDEV Software</name>
Expand Down
63 changes: 32 additions & 31 deletions sessionize-java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,39 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>pre-generation-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${generatedDir}</directory>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>post-generation-clean</id>
<phase>process-resources</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>6.6.0</version>
<version>7.0.0</version>
<executions>
<execution>
<goals>
Expand All @@ -320,6 +349,7 @@
</disallowAdditionalPropertiesIfNotPresent>
<!-- Use newer Jakarta EE instead of Javax -->
<useJakartaEe>true</useJakartaEe>
<hideGenerationTimestamp>true</hideGenerationTimestamp>
<!-- No tests and documentation because we don't use that -->
<generateModelTests>false</generateModelTests>
<generateApiTests>false</generateApiTests>
Expand All @@ -337,7 +367,7 @@
<executions>
<execution>
<id>copy-generated-resources</id>
<phase>process-resources</phase>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
Expand All @@ -352,35 +382,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>pre-generation-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${generatedDir}</directory>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>post-generation-clean</id>
<phase>process-resources</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import software.xdev.sessionize.client.ApiException;
import software.xdev.sessionize.client.ApiClient;
import software.xdev.sessionize.client.Configuration;
import software.xdev.sessionize.model.*;
import software.xdev.sessionize.client.Pair;

import software.xdev.sessionize.model.AllResult;
Expand All @@ -30,7 +29,7 @@
import java.util.Map;
import java.util.StringJoiner;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AllApi {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import software.xdev.sessionize.client.ApiException;
import software.xdev.sessionize.client.ApiClient;
import software.xdev.sessionize.client.Configuration;
import software.xdev.sessionize.model.*;
import software.xdev.sessionize.client.Pair;

import software.xdev.sessionize.model.SessionGroup;
Expand All @@ -30,7 +29,7 @@
import java.util.Map;
import java.util.StringJoiner;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SessionsApi {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import software.xdev.sessionize.client.ApiException;
import software.xdev.sessionize.client.ApiClient;
import software.xdev.sessionize.client.Configuration;
import software.xdev.sessionize.model.*;
import software.xdev.sessionize.client.Pair;

import software.xdev.sessionize.model.Speaker;
Expand All @@ -30,7 +29,7 @@
import java.util.Map;
import java.util.StringJoiner;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SpeakersApi {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

import software.xdev.sessionize.client.auth.Authentication;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient extends JavaTimeFormatter {
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
private Map<String, String> defaultCookieMap = new HashMap<String, String>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Map;
import java.util.List;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiException extends RuntimeException {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@

package software.xdev.sessionize.client;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "2.0";

private static ApiClient defaultApiClient = new ApiClient();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class.
* It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}.
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class JavaTimeFormatter {

private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package software.xdev.sessionize.client;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Pair {
private String name = "";
private String value = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Map;
import java.util.List;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class HttpBasicAuth implements Authentication {
private String username;
private String password;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private String bearerToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import software.xdev.sessionize.model.Category;
import software.xdev.sessionize.model.Question;
Expand All @@ -43,7 +44,7 @@
AllResult.JSON_PROPERTY_CATEGORIES,
AllResult.JSON_PROPERTY_ROOMS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-04-26T17:30:53.867882+02:00[Europe/Berlin]")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AllResult {
public static final String JSON_PROPERTY_SESSIONS = "sessions";
private List<SessionAll> sessions = new ArrayList<>();
Expand Down
Loading