Skip to content

Commit 9b43169

Browse files
Feature / Update API Spec to v2.2.1 (#78)
2 parents 3ef6e59 + 6ec775c commit 9b43169

File tree

237 files changed

+3083
-330
lines changed

Some content is hidden

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

237 files changed

+3083
-330
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Info
22
### Version
3-
v2.0
3+
v2.0.0
44
### Date
55
2025-06-26
66
### Autor
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Info
22
### Version
3-
v2.1
3+
v2.1.0
44
### Date
55
2025-06-27
66
### Autor

api/changelogs/changelog_v2_1_1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Info
22
### Version
3-
v2.1
3+
v2.1.1
44
### Date
55
2025-06-27
66
### Autor

api/changelogs/changelog_v2_1_5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Info
22
### Version
3-
v2.1.4
3+
v2.1.5
44
### Date
55
2025-07-01
66
### Autor

api/changelogs/changelog_v2_1_6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Info
22
### Version
3-
v2.1.4
3+
v2.1.6
44
### Date
55
2025-07-01
66
### Autor

api/changelogs/changelog_v2_2_0.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Info
2+
### Version
3+
v2.2.0
4+
### Date
5+
2025-07-07
6+
### Autor
7+
James Stark & Enrico Bausenhart
8+
## Changelog:
9+
10+
### Models
11+
- Add authID field to userNew
12+
13+
``` diff
14+
15+
@@ UserNew @@
16+
+ create field authID
17+
# This means that newly created users will be tied to their Auth0 accounds
18+
19+
20+
```
21+
22+
### Paths
23+
- Add new Endpoint GET@user/me to allow a user to retrieve their own ID based on auth0 sub
24+
25+
26+
``` diff
27+
28+
@@ get-api-v2-user-me-auth-id @@
29+
+ create new path /api/v2/user/me/{auth-id}
30+
+ create new endpoint GET@/api/v2/user/me/{auth-id}
31+
+ Add responses 200 (User)
32+
+ Add responses 400, 403, 404
33+
34+
```

api/changelogs/changelog_v2_2_1.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Info
2+
### Version
3+
v2.2.1
4+
### Date
5+
2025-07-07
6+
### Autor
7+
James Stark & Enrico Bausenhart
8+
## Changelog:
9+
10+
### Paths
11+
- Fix: add tag to GET@api/v2/user/me/{auth-id}
12+
13+
14+
``` diff
15+
16+
@@ get-api-v2-user-me-auth-id @@
17+
+ create new tag "User"
18+
19+
```

api/flags/flags.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
# DO NOT CHANGE
55
info:
6-
version: 2.1.6
6+
version: 2.2.1

api/openapi.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ x-stoplight:
33
id: ceylawji1yc2t
44
info:
55
title: MeetAtMensa
6-
version: 2.1.6
6+
version: 2.2.1
77
description: |-
88
This OpenAPI specification defines the endpoints, schemas, and security mechanisms
99
for the Meet@Mensa User micro-service.
@@ -58,6 +58,13 @@ components:
5858
type: string
5959
format: uuid
6060
description: UUID associated with a given match
61+
auth-id:
62+
name: auth-id
63+
in: path
64+
required: true
65+
schema:
66+
type: string
67+
description: User's Auth0 sub ID
6168
schemas:
6269
ConversationStarter:
6370
title: ConversationStarter
@@ -568,6 +575,7 @@ components:
568575
type: object
569576
description: Object representing a student user in the Meet@Mensa system.
570577
required:
578+
- authID
571579
- email
572580
- firstname
573581
- lastname
@@ -578,6 +586,11 @@ components:
578586
- interests
579587
- bio
580588
properties:
589+
authID:
590+
type: string
591+
x-stoplight:
592+
id: gtbfgvrafpds9
593+
description: "Auth0 user.sub, used as a unique key\r\n"
581594
email:
582595
type: string
583596
x-stoplight:
@@ -1027,6 +1040,29 @@ paths:
10271040
description: Request Conversation starter for these users
10281041
description: Request a series of conversation starter prompts from the GenAI microservice. Provide infomation about users on request.
10291042
parameters: []
1043+
'/api/v2/user/me/{auth-id}':
1044+
parameters:
1045+
- $ref: '#/components/parameters/auth-id'
1046+
get:
1047+
summary: Retrieve User based on AuthID
1048+
tags:
1049+
- User
1050+
responses:
1051+
'200':
1052+
description: OK
1053+
content:
1054+
application/json:
1055+
schema:
1056+
$ref: '#/components/schemas/User'
1057+
'400':
1058+
description: Bad Request
1059+
'403':
1060+
description: Forbidden
1061+
'404':
1062+
description: Not Found
1063+
operationId: get-api-v2-user-me-auth-id
1064+
x-stoplight:
1065+
id: 3fke7st84x7x9
10301066
tags:
10311067
- name: GenAI
10321068
description: Paths belonging to the GenAI microservice

client/src/api.ts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,26 @@ export interface paths {
214214
patch?: never;
215215
trace?: never;
216216
};
217+
"/api/v2/user/me/{auth-id}": {
218+
parameters: {
219+
query?: never;
220+
header?: never;
221+
path: {
222+
/** @description User's Auth0 sub ID */
223+
"auth-id": components["parameters"]["auth-id"];
224+
};
225+
cookie?: never;
226+
};
227+
/** Retrieve User based on AuthID */
228+
get: operations["get-api-v2-user-me-auth-id"];
229+
put?: never;
230+
post?: never;
231+
delete?: never;
232+
options?: never;
233+
head?: never;
234+
patch?: never;
235+
trace?: never;
236+
};
217237
}
218238
export type webhooks = Record<string, never>;
219239
export interface components {
@@ -489,6 +509,9 @@ export interface components {
489509
* @description Object representing a student user in the Meet@Mensa system.
490510
*/
491511
UserNew: {
512+
/** @description Auth0 user.sub, used as a unique key
513+
* */
514+
authID: string;
492515
/**
493516
* Format: email
494517
* @description Users's e-mail
@@ -614,6 +637,8 @@ export interface components {
614637
"request-id": string;
615638
/** @description UUID associated with a given match */
616639
"match-id": string;
640+
/** @description User's Auth0 sub ID */
641+
"auth-id": string;
617642
};
618643
requestBodies: never;
619644
headers: never;
@@ -1038,4 +1063,48 @@ export interface operations {
10381063
};
10391064
};
10401065
};
1066+
"get-api-v2-user-me-auth-id": {
1067+
parameters: {
1068+
query?: never;
1069+
header?: never;
1070+
path: {
1071+
/** @description User's Auth0 sub ID */
1072+
"auth-id": components["parameters"]["auth-id"];
1073+
};
1074+
cookie?: never;
1075+
};
1076+
requestBody?: never;
1077+
responses: {
1078+
/** @description OK */
1079+
200: {
1080+
headers: {
1081+
[name: string]: unknown;
1082+
};
1083+
content: {
1084+
"application/json": components["schemas"]["User"];
1085+
};
1086+
};
1087+
/** @description Bad Request */
1088+
400: {
1089+
headers: {
1090+
[name: string]: unknown;
1091+
};
1092+
content?: never;
1093+
};
1094+
/** @description Forbidden */
1095+
403: {
1096+
headers: {
1097+
[name: string]: unknown;
1098+
};
1099+
content?: never;
1100+
};
1101+
/** @description Not Found */
1102+
404: {
1103+
headers: {
1104+
[name: string]: unknown;
1105+
};
1106+
content?: never;
1107+
};
1108+
};
1109+
};
10411110
}

0 commit comments

Comments
 (0)