Skip to content

Commit 91da6b1

Browse files
committed
Update ID<>CM openapi yaml file
1 parent 21703ea commit 91da6b1

File tree

1 file changed

+7
-91
lines changed

1 file changed

+7
-91
lines changed

backend/id-openapi.yaml

Lines changed: 7 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
description: API endpoints for LFX Community Data Platform application
66

77
servers:
8-
- url: https://cm.lfx.dev/api
8+
- url: https://cm.lfx.dev/api/v1
99
description: LFX CM Production
1010

1111
tags:
@@ -18,7 +18,7 @@ security:
1818
- BearerAuth: []
1919

2020
paths:
21-
/tenant/{tenantId}/member/{memberId}/organization:
21+
/member/{memberId}/organization:
2222
get:
2323
security:
2424
- BearerAuth: []
@@ -27,25 +27,11 @@ paths:
2727
summary: List Work History Organizations
2828
description: Retrieve a list of organizations for a specific profile
2929
parameters:
30-
- name: tenantId
31-
in: path
32-
required: true
33-
schema:
34-
type: string
3530
- name: memberId
3631
in: path
3732
required: true
3833
schema:
3934
type: string
40-
- name: segments
41-
in: query
42-
required: true
43-
schema:
44-
type: array
45-
items:
46-
type: string
47-
minItems: 1
48-
description: Array of segment IDs
4935
responses:
5036
'200':
5137
description: Successful operation
@@ -68,25 +54,11 @@ paths:
6854
summary: Create Work History Organization
6955
description: Create a new organization for a specific profile
7056
parameters:
71-
- name: tenantId
72-
in: path
73-
required: true
74-
schema:
75-
type: string
7657
- name: memberId
7758
in: path
7859
required: true
7960
schema:
8061
type: string
81-
- name: segments
82-
in: query
83-
required: true
84-
schema:
85-
type: array
86-
items:
87-
type: string
88-
minItems: 1
89-
description: Array of segment IDs
9062
requestBody:
9163
required: true
9264
content:
@@ -134,7 +106,7 @@ paths:
134106
'404':
135107
description: Member not found
136108

137-
/tenant/{tenantId}/member/{memberId}/organization/{organizationId}:
109+
/member/{memberId}/organization/{workHistoryId}:
138110
patch:
139111
security:
140112
- BearerAuth: []
@@ -143,30 +115,16 @@ paths:
143115
summary: Update Work History Organization
144116
description: Update an existing organization for a specific profile
145117
parameters:
146-
- name: tenantId
147-
in: path
148-
required: true
149-
schema:
150-
type: string
151118
- name: memberId
152119
in: path
153120
required: true
154121
schema:
155122
type: string
156-
- name: organizationId
123+
- name: workHistoryId
157124
in: path
158125
required: true
159126
schema:
160127
type: string
161-
- name: segments
162-
in: query
163-
required: true
164-
schema:
165-
type: array
166-
items:
167-
type: string
168-
minItems: 1
169-
description: Array of sub-project IDs
170128
requestBody:
171129
required: true
172130
content:
@@ -175,7 +133,7 @@ paths:
175133
type: object
176134
required:
177135
- id
178-
- organizationId
136+
- workHistoryId
179137
- source
180138
properties:
181139
id:
@@ -227,30 +185,16 @@ paths:
227185
summary: Delete Work History Organization
228186
description: Delete an organization for a specific profile
229187
parameters:
230-
- name: tenantId
231-
in: path
232-
required: true
233-
schema:
234-
type: string
235188
- name: memberId
236189
in: path
237190
required: true
238191
schema:
239192
type: string
240-
- name: organizationId
193+
- name: workHistoryId
241194
in: path
242195
required: true
243196
schema:
244197
type: string
245-
- name: segments
246-
in: query
247-
required: true
248-
schema:
249-
type: array
250-
items:
251-
type: string
252-
minItems: 1
253-
description: Array of segment IDs
254198
responses:
255199
'200':
256200
description: Successful operation
@@ -263,7 +207,7 @@ paths:
263207
'404':
264208
description: Organization or member not found
265209

266-
/tenant/{tenantId}/member/{memberId}/affiliation:
210+
/member/{memberId}/affiliation:
267211
get:
268212
security:
269213
- BearerAuth: []
@@ -272,25 +216,11 @@ paths:
272216
summary: List Project Affiliations
273217
description: Retrieve a list of project affiliations for a specific profile
274218
parameters:
275-
- name: tenantId
276-
in: path
277-
required: true
278-
schema:
279-
type: string
280219
- name: memberId
281220
in: path
282221
required: true
283222
schema:
284223
type: string
285-
- name: segments
286-
in: query
287-
required: true
288-
schema:
289-
type: array
290-
items:
291-
type: string
292-
minItems: 1
293-
description: Array of segment IDs
294224
responses:
295225
'200':
296226
description: Successful operation
@@ -313,25 +243,11 @@ paths:
313243
summary: Update Multiple Project Affiliations
314244
description: Bulk update project affiliations for a specific profile
315245
parameters:
316-
- name: tenantId
317-
in: path
318-
required: true
319-
schema:
320-
type: string
321246
- name: memberId
322247
in: path
323248
required: true
324249
schema:
325250
type: string
326-
- name: segments
327-
in: query
328-
required: true
329-
schema:
330-
type: array
331-
items:
332-
type: string
333-
minItems: 1
334-
description: Array of segment IDs
335251
requestBody:
336252
required: true
337253
content:

0 commit comments

Comments
 (0)