Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
19450c3
Merge remote-tracking branch 'origin/feature/genai' into experimental…
stark-cybertech Jul 20, 2025
070f6a7
Merge remote-tracking branch 'origin/feature/genai' into experimental…
stark-cybertech Jul 20, 2025
d8f690c
added .env file to debug compose
stark-cybertech Jul 20, 2025
532bffb
fix: Critical bugfix regarding overwriting clients
stark-cybertech Jul 20, 2025
cc6c253
spec: API v2.3.2 replace GenAi GET endpoint
stark-cybertech Jul 20, 2025
b1cdd55
gen: generate code and documentation based on latest version of opena…
github-actions[bot] Jul 20, 2025
9288fe6
Merge remote-tracking branch 'origin/feature/genai' into spec/api-v2.3.2
stark-cybertech Jul 20, 2025
d93e7c1
fix: update function signature to match spec
stark-cybertech Jul 20, 2025
06656e7
fix remove useless output
stark-cybertech Jul 20, 2025
80d44a9
Merge branch 'main' into experimental/genai-demo
stark-cybertech Jul 20, 2025
f5f527d
Merge remote-tracking branch 'origin/feature/genai' into experimental…
stark-cybertech Jul 20, 2025
ba1c22a
Merge remote-tracking branch 'origin/feature/genai' into experimental…
stark-cybertech Jul 20, 2025
5f436a7
Implement GenAI functionality and testing (#94)
a-kori Jul 20, 2025
82c9d9a
Merge branch 'main' into experimental/genai-demo
stark-cybertech Jul 20, 2025
1749d97
added .env file to debug compose
stark-cybertech Jul 20, 2025
bd3cdd3
fix: Critical bugfix regarding overwriting clients
stark-cybertech Jul 20, 2025
8035734
spec: API v2.3.2 replace GenAi GET endpoint
stark-cybertech Jul 20, 2025
a9d150e
gen: generate code and documentation based on latest version of opena…
github-actions[bot] Jul 20, 2025
1be41fb
fix: update function signature to match spec
stark-cybertech Jul 20, 2025
0c7710f
fix remove useless output
stark-cybertech Jul 20, 2025
3c10169
Merge branch 'experimental/genai-demo' of https://github.com/AET-DevO…
stark-cybertech Jul 20, 2025
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
21 changes: 21 additions & 0 deletions api/changelogs/changelog_v2_3_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Info
### Version
v2.3.0
### Date
2025-20-07
### Autor
James Stark, Anastasiia Korzhylova
## Changelog:

### Endpoints
- Replace @GET /api/v2/genai/conversation-starter endpoint with POST


``` diff

@@ /api/v2/genai/conversation-starter @@
- Remove GET endpoint
+ add POST endpoint
# fixes issue where GET request body is empty

```
2 changes: 1 addition & 1 deletion api/flags/flags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

# DO NOT CHANGE
info:
version: 2.3.1
version: 2.3.2
26 changes: 13 additions & 13 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-stoplight:
id: ceylawji1yc2t
info:
title: MeetAtMensa
version: 2.3.1
version: 2.3.2
description: |-
This OpenAPI specification defines the endpoints, schemas, and security mechanisms
for the Meet@Mensa User micro-service.
Expand Down Expand Up @@ -1009,10 +1009,9 @@ paths:
parameters:
- $ref: '#/components/parameters/match-id'
/api/v2/genai/conversation-starter:
get:
summary: Request conversation starter
x-stoplight:
id: 2gb78xli5e55w
parameters: []
post:
summary: Request Conversation Starter
tags:
- GenAI
responses:
Expand All @@ -1023,22 +1022,23 @@ paths:
schema:
$ref: '#/components/schemas/ConversationStarterCollection'
'400':
$ref: '#/components/responses/BadRequestError'
'401':
$ref: '#/components/responses/UnauthorizedError'
description: Bad Request
'403':
description: Forbidden
'404':
$ref: '#/components/responses/NotFoundError'
description: Not Found
'500':
description: Internal Server Error
operationId: get-api-v2-genai-conversation-starter
operationId: post-api-v2-genai-conversation-starter
x-stoplight:
id: dhdc3v3wiauk8
description: Request a series of conversation starter prompts from the GenAI microservice. Provide infomation about users on request.
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserCollection'
description: Request Conversation starter for these users
description: Request a series of conversation starter prompts from the GenAI microservice. Provide infomation about users on request.
parameters: []
description: ''
'/api/v2/user/me/{auth-id}':
parameters:
- $ref: '#/components/parameters/auth-id'
Expand Down
35 changes: 26 additions & 9 deletions client/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ export interface paths {
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Request conversation starter
* Request Conversation Starter
* @description Request a series of conversation starter prompts from the GenAI microservice. Provide infomation about users on request.
*/
get: operations["get-api-v2-genai-conversation-starter"];
put?: never;
post?: never;
post: operations["post-api-v2-genai-conversation-starter"];
delete?: never;
options?: never;
head?: never;
Expand Down Expand Up @@ -1071,14 +1071,13 @@ export interface operations {
};
};
};
"get-api-v2-genai-conversation-starter": {
"post-api-v2-genai-conversation-starter": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** @description Request Conversation starter for these users */
requestBody?: {
content: {
"application/json": components["schemas"]["UserCollection"];
Expand All @@ -1094,9 +1093,27 @@ export interface operations {
"application/json": components["schemas"]["ConversationStarterCollection"];
};
};
400: components["responses"]["BadRequestError"];
401: components["responses"]["UnauthorizedError"];
404: components["responses"]["NotFoundError"];
/** @description Bad Request */
400: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Forbidden */
403: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Not Found */
404: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Internal Server Error */
500: {
headers: {
Expand Down
2 changes: 2 additions & 0 deletions deployment/docker_debug/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
- "8083:80"
networks:
- backend
env_file:
- .env

meetatmensa-client:
build:
Expand Down
30 changes: 14 additions & 16 deletions docs/api.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions server/gateway/generated-client/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# openapi-client-gateway

MeetAtMensa
- API version: 2.3.1
- Build date: 2025-07-19T17:33:16.376117886Z[Etc/UTC]
- API version: 2.3.2
- Build date: 2025-07-20T16:12:03.521616557Z[Etc/UTC]
- Generator version: 7.14.0

This OpenAPI specification defines the endpoints, schemas, and security mechanisms
Expand Down Expand Up @@ -43,7 +43,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.openapitools.client</groupId>
<artifactId>openapi-client-gateway</artifactId>
<version>2.3.1</version>
<version>2.3.2</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -59,7 +59,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "org.openapitools.client:openapi-client-gateway:2.3.1"
implementation "org.openapitools.client:openapi-client-gateway:2.3.2"
}
```

Expand All @@ -73,7 +73,7 @@ mvn clean package

Then manually install the following JARs:

* `target/openapi-client-gateway-2.3.1.jar`
* `target/openapi-client-gateway-2.3.2.jar`
* `target/lib/*.jar`

## Getting Started
Expand All @@ -100,12 +100,12 @@ public class Example {
jwt-bearer.setBearerToken("BEARER TOKEN");

GenAiApi apiInstance = new GenAiApi(defaultClient);
UserCollection userCollection = new UserCollection(); // UserCollection | Request Conversation starter for these users
UserCollection userCollection = new UserCollection(); // UserCollection |
try {
ConversationStarterCollection result = apiInstance.getApiV2GenaiConversationStarter(userCollection);
ConversationStarterCollection result = apiInstance.postApiV2GenaiConversationStarter(userCollection);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GenAiApi#getApiV2GenaiConversationStarter");
System.err.println("Exception when calling GenAiApi#postApiV2GenaiConversationStarter");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand All @@ -122,7 +122,7 @@ All URIs are relative to *http://api.meetatmensa.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*GenAiApi* | [**getApiV2GenaiConversationStarter**](docs/GenAiApi.md#getApiV2GenaiConversationStarter) | **GET** /api/v2/genai/conversation-starter | Request conversation starter
*GenAiApi* | [**postApiV2GenaiConversationStarter**](docs/GenAiApi.md#postApiV2GenaiConversationStarter) | **POST** /api/v2/genai/conversation-starter | Request Conversation Starter
*MatchingApi* | [**deleteApiV2MatchingRequestRequestId**](docs/MatchingApi.md#deleteApiV2MatchingRequestRequestId) | **DELETE** /api/v2/matching/request/{request-id} | Delete MatchRequest with {request-id}
*MatchingApi* | [**getApiV2MatchingMatchesUserID**](docs/MatchingApi.md#getApiV2MatchingMatchesUserID) | **GET** /api/v2/matching/matches/{user-id} | Retrieve all matches for a {user-id}
*MatchingApi* | [**getApiV2MatchingRequestsUserID**](docs/MatchingApi.md#getApiV2MatchingRequestsUserID) | **GET** /api/v2/matching/requests/{user-id} | Retrieve all MatchRequests for a {user-id}
Expand Down
20 changes: 10 additions & 10 deletions server/gateway/generated-client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
url: https://mit-license.org/
termsOfService: ""
title: MeetAtMensa
version: 2.3.1
version: 2.3.2
servers:
- description: ""
url: api.meetatmensa.com
Expand Down Expand Up @@ -363,16 +363,16 @@ paths:
parameters:
- $ref: "#/components/parameters/match-id"
/api/v2/genai/conversation-starter:
get:
post:
description: Request a series of conversation starter prompts from the GenAI
microservice. Provide infomation about users on request.
operationId: get-api-v2-genai-conversation-starter
operationId: post-api-v2-genai-conversation-starter
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UserCollection"
description: Request Conversation starter for these users
description: ""
responses:
"200":
content:
Expand All @@ -381,18 +381,18 @@ paths:
$ref: "#/components/schemas/ConversationStarterCollection"
description: OK
"400":
$ref: "#/components/responses/BadRequestError"
"401":
$ref: "#/components/responses/UnauthorizedError"
description: Bad Request
"403":
description: Forbidden
"404":
$ref: "#/components/responses/NotFoundError"
description: Not Found
"500":
description: Internal Server Error
summary: Request conversation starter
summary: Request Conversation Starter
tags:
- GenAI
x-stoplight:
id: 2gb78xli5e55w
id: dhdc3v3wiauk8
x-content-type: application/json
x-accepts:
- application/json
Expand Down
2 changes: 1 addition & 1 deletion server/gateway/generated-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
}

group = 'org.openapitools.client'
version = '2.3.1'
version = '2.3.2'
description = 'openapi-client-gateway'
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
2 changes: 1 addition & 1 deletion server/gateway/generated-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.openapitools.client",
name := "openapi-client-gateway",
version := "2.3.1",
version := "2.3.2",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
24 changes: 12 additions & 12 deletions server/gateway/generated-client/docs/GenAiApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ All URIs are relative to *http://api.meetatmensa.com*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getApiV2GenaiConversationStarter**](GenAiApi.md#getApiV2GenaiConversationStarter) | **GET** /api/v2/genai/conversation-starter | Request conversation starter |
| [**postApiV2GenaiConversationStarter**](GenAiApi.md#postApiV2GenaiConversationStarter) | **POST** /api/v2/genai/conversation-starter | Request Conversation Starter |


<a id="getApiV2GenaiConversationStarter"></a>
# **getApiV2GenaiConversationStarter**
> ConversationStarterCollection getApiV2GenaiConversationStarter(userCollection)
<a id="postApiV2GenaiConversationStarter"></a>
# **postApiV2GenaiConversationStarter**
> ConversationStarterCollection postApiV2GenaiConversationStarter(userCollection)

Request conversation starter
Request Conversation Starter

Request a series of conversation starter prompts from the GenAI microservice. Provide infomation about users on request.

Expand All @@ -35,12 +35,12 @@ public class Example {
jwt-bearer.setBearerToken("BEARER TOKEN");

GenAiApi apiInstance = new GenAiApi(defaultClient);
UserCollection userCollection = new UserCollection(); // UserCollection | Request Conversation starter for these users
UserCollection userCollection = new UserCollection(); // UserCollection |
try {
ConversationStarterCollection result = apiInstance.getApiV2GenaiConversationStarter(userCollection);
ConversationStarterCollection result = apiInstance.postApiV2GenaiConversationStarter(userCollection);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GenAiApi#getApiV2GenaiConversationStarter");
System.err.println("Exception when calling GenAiApi#postApiV2GenaiConversationStarter");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
Expand All @@ -54,7 +54,7 @@ public class Example {

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **userCollection** | [**UserCollection**](UserCollection.md)| Request Conversation starter for these users | [optional] |
| **userCollection** | [**UserCollection**](UserCollection.md)| | [optional] |

### Return type

Expand All @@ -73,8 +73,8 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | The request was malformed or contained invalid parameters. | - |
| **401** | Authentication failed due to missing or invalid OAuth2 token. | - |
| **404** | The requested resource was not found. | - |
| **400** | Bad Request | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |
| **500** | Internal Server Error | - |

2 changes: 1 addition & 1 deletion server/gateway/generated-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>openapi-client-gateway</artifactId>
<packaging>jar</packaging>
<name>openapi-client-gateway</name>
<version>2.3.1</version>
<version>2.3.2</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* MeetAtMensa
* This OpenAPI specification defines the endpoints, schemas, and security mechanisms for the Meet@Mensa User micro-service.
*
* The version of the OpenAPI document: 2.3.1
* The version of the OpenAPI document: 2.3.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* MeetAtMensa
* This OpenAPI specification defines the endpoints, schemas, and security mechanisms for the Meet@Mensa User micro-service.
*
* The version of the OpenAPI document: 2.3.1
* The version of the OpenAPI document: 2.3.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -141,7 +141,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.3.1/java");
setUserAgent("OpenAPI-Generator/2.3.2/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading
Loading