Skip to content

Commit 077f7b3

Browse files
authored
Merge pull request #29 from xdev-software/develop
Release 1.1.0
2 parents 1c800fe + ea137d9 commit 077f7b3

File tree

9 files changed

+692
-35
lines changed

9 files changed

+692
-35
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.0
2+
* Added new endpoint:
3+
* ``/view/SpeakerEmails`` (undocumented)
4+
15
# 1.0.1
26
* Shrunk generated code a bit
37
* Updated openapi generator

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ Java client for the [Sessionize API](https://sessionize.com/playbook/api)
88

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

11-
Currently this client supports the following endpoints of the Sessionize API ``v2``:
12-
* ``/view/All``
13-
* ``/view/Speakers``
14-
* ``/view/Sessions``
11+
#### API Support Status
12+
13+
<details><summary>Supported endpoints</summary>
14+
15+
Sessionize API ``v2``:
16+
* ``view``
17+
* All ✔️
18+
* Speakers ✔️
19+
* SpeakerEmails ✔️ (undocumented endpoint)
20+
* Sessions ✔️
21+
22+
</details>
1523

1624
## Installation
1725
[Installation guide for the latest release](https://github.com/xdev-software/sessionize-java-client/releases/latest#Installation)

openapi/openapi.yml

Lines changed: 72 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,35 @@ paths:
5858
items:
5959
$ref: '#/components/schemas/Speaker'
6060
deprecated: false
61+
/api/v2/{endpointId}/view/SpeakersEmails:
62+
get:
63+
tags:
64+
- "speakers"
65+
operationId: getAllSpeakersEmails
66+
description: 'Undocumented endpoint for retrieving the speakers with emails'
67+
parameters:
68+
- name: endpointId
69+
in: path
70+
required: true
71+
schema:
72+
type: string
73+
example: jl4ktls0
74+
- name: s
75+
in: query
76+
required: true
77+
schema:
78+
type: string
79+
description: 'Special key that is only available/retrievable for unlocked admins (Contacting Sessionize-Support is required)'
80+
responses:
81+
'200':
82+
description: Returned if the request is successful
83+
content:
84+
application/json:
85+
schema:
86+
type: array
87+
items:
88+
$ref: '#/components/schemas/SpeakerWithEmail'
89+
deprecated: false
6190
/api/v2/{endpointId}/view/Sessions:
6291
get:
6392
tags:
@@ -341,7 +370,7 @@ components:
341370
required:
342371
- id
343372
- name
344-
BaseSpeaker:
373+
BaseSpeakerEssential:
345374
type: object
346375
readOnly: true
347376
properties:
@@ -352,34 +381,41 @@ components:
352381
type: string
353382
lastName:
354383
type: string
355-
bio:
356-
type: string
357-
nullable: true
358-
tagLine:
359-
type: string
360-
nullable: true
361-
profilePicture:
362-
type: string
363-
format: uri
364-
nullable: true
365-
isTopSpeaker:
366-
type: boolean
367-
links:
368-
type: array
369-
items:
370-
$ref: '#/components/schemas/Link'
371-
fullName:
372-
type: string
373-
# categoryItems - Always empty; ignored
374-
# questionAnswers - Always empty; ignored
375384
required:
376385
- firstName
377-
- fullName
378386
- id
379-
- isTopSpeaker
380387
- lastName
381-
- links
382-
- tagLine
388+
BaseSpeaker:
389+
allOf:
390+
- $ref: '#/components/schemas/BaseSpeakerEssential'
391+
- type: object
392+
readOnly: true
393+
properties:
394+
bio:
395+
type: string
396+
nullable: true
397+
tagLine:
398+
type: string
399+
nullable: true
400+
profilePicture:
401+
type: string
402+
format: uri
403+
nullable: true
404+
isTopSpeaker:
405+
type: boolean
406+
links:
407+
type: array
408+
items:
409+
$ref: '#/components/schemas/Link'
410+
fullName:
411+
type: string
412+
# categoryItems - Always empty; ignored
413+
# questionAnswers - Always empty; ignored
414+
required:
415+
- fullName
416+
- isTopSpeaker
417+
- links
418+
- tagLine
383419
Speaker:
384420
allOf:
385421
- $ref: '#/components/schemas/BaseSpeaker'
@@ -404,6 +440,17 @@ components:
404440
type: integer # All Endpoint
405441
required:
406442
- sessions
443+
SpeakerWithEmail:
444+
allOf:
445+
- $ref: '#/components/schemas/BaseSpeakerEssential'
446+
- type: object
447+
readOnly: true
448+
properties:
449+
email:
450+
type: string
451+
format: email
452+
required:
453+
- email
407454
SpeakerMinimal:
408455
type: object
409456
readOnly: true

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sessionize-java-client-root</artifactId>
9-
<version>1.0.2-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>

sessionize-java-client-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sessionize-java-client-demo</artifactId>
9-
<version>1.0.2-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<inceptionYear>2023</inceptionYear>

sessionize-java-client/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sessionize-java-client</artifactId>
9-
<version>1.0.2-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>sessionize-java-client</name>
@@ -148,7 +148,7 @@
148148
<plugin>
149149
<groupId>com.mycila</groupId>
150150
<artifactId>license-maven-plugin</artifactId>
151-
<version>4.2</version>
151+
<version>4.3</version>
152152
<configuration>
153153
<properties>
154154
<email>${project.organization.url}</email>
@@ -188,7 +188,7 @@
188188
<plugin>
189189
<groupId>org.apache.maven.plugins</groupId>
190190
<artifactId>maven-javadoc-plugin</artifactId>
191-
<version>3.5.0</version>
191+
<version>3.6.0</version>
192192
<executions>
193193
<execution>
194194
<id>attach-javadocs</id>
@@ -327,7 +327,7 @@
327327
<plugin>
328328
<groupId>org.openapitools</groupId>
329329
<artifactId>openapi-generator-maven-plugin</artifactId>
330-
<version>7.0.0</version>
330+
<version>7.0.1</version>
331331
<executions>
332332
<execution>
333333
<goals>

sessionize-java-client/src/generated/java/software/xdev/sessionize/api/SpeakersApi.java

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import software.xdev.sessionize.client.Pair;
2121

2222
import software.xdev.sessionize.model.Speaker;
23+
import software.xdev.sessionize.model.SpeakerWithEmail;
2324

2425

2526
import java.util.ArrayList;
@@ -126,4 +127,87 @@ public List<Speaker> getAllSpeakers(String endpointId, Map<String, String> addit
126127
);
127128
}
128129

130+
/**
131+
*
132+
* Undocumented endpoint for retrieving the speakers with emails
133+
* @param endpointId (required)
134+
* @param s Special key that is only available/retrievable for unlocked admins (Contacting Sessionize-Support is required) (required)
135+
* @return List&lt;SpeakerWithEmail&gt;
136+
* @throws ApiException if fails to make API call
137+
*/
138+
public List<SpeakerWithEmail> getAllSpeakersEmails(String endpointId, String s) throws ApiException {
139+
return this.getAllSpeakersEmails(endpointId, s, Collections.emptyMap());
140+
}
141+
142+
143+
/**
144+
*
145+
* Undocumented endpoint for retrieving the speakers with emails
146+
* @param endpointId (required)
147+
* @param s Special key that is only available/retrievable for unlocked admins (Contacting Sessionize-Support is required) (required)
148+
* @param additionalHeaders additionalHeaders for this call
149+
* @return List&lt;SpeakerWithEmail&gt;
150+
* @throws ApiException if fails to make API call
151+
*/
152+
public List<SpeakerWithEmail> getAllSpeakersEmails(String endpointId, String s, Map<String, String> additionalHeaders) throws ApiException {
153+
Object localVarPostBody = null;
154+
155+
// verify the required parameter 'endpointId' is set
156+
if (endpointId == null) {
157+
throw new ApiException(400, "Missing the required parameter 'endpointId' when calling getAllSpeakersEmails");
158+
}
159+
160+
// verify the required parameter 's' is set
161+
if (s == null) {
162+
throw new ApiException(400, "Missing the required parameter 's' when calling getAllSpeakersEmails");
163+
}
164+
165+
// create path and map variables
166+
String localVarPath = "/api/v2/{endpointId}/view/SpeakersEmails"
167+
.replaceAll("\\{" + "endpointId" + "\\}", apiClient.escapeString(endpointId.toString()));
168+
169+
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
170+
String localVarQueryParameterBaseName;
171+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
172+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
173+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
174+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
175+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
176+
177+
localVarQueryParams.addAll(apiClient.parameterToPair("s", s));
178+
179+
localVarHeaderParams.putAll(additionalHeaders);
180+
181+
182+
183+
final String[] localVarAccepts = {
184+
"application/json"
185+
};
186+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
187+
188+
final String[] localVarContentTypes = {
189+
190+
};
191+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
192+
193+
String[] localVarAuthNames = new String[] { };
194+
195+
TypeReference<List<SpeakerWithEmail>> localVarReturnType = new TypeReference<List<SpeakerWithEmail>>() {};
196+
return apiClient.invokeAPI(
197+
localVarPath,
198+
"GET",
199+
localVarQueryParams,
200+
localVarCollectionQueryParams,
201+
localVarQueryStringJoiner.toString(),
202+
localVarPostBody,
203+
localVarHeaderParams,
204+
localVarCookieParams,
205+
localVarFormParams,
206+
localVarAccept,
207+
localVarContentType,
208+
localVarAuthNames,
209+
localVarReturnType
210+
);
211+
}
212+
129213
}

0 commit comments

Comments
 (0)