fmea-api-mcp-server 1.1.35 → 1.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,11 +4,107 @@
4
4
  "description": "",
5
5
  "endpoints": [
6
6
  {
7
- "path": "/api/v2/evaluation/tree",
7
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}",
8
+ "method": "DELETE",
9
+ "operationId": "deleteCriteriaEndpoint",
10
+ "summary": "Delete evaluation criteria (cascade)",
11
+ "description": "Deletes the evaluation criteria and all its descendants (S/O/D nodes, rating items, significance_criteria). Returns 400 if any item is in use by a project.",
12
+ "tags": [
13
+ "Evaluation Criteria"
14
+ ],
15
+ "parameters": [
16
+ {
17
+ "name": "fmeaType",
18
+ "in": "path",
19
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
20
+ "required": true,
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ {
26
+ "name": "criteriaId",
27
+ "in": "path",
28
+ "description": "Unique ID of the evaluation criteria",
29
+ "required": true,
30
+ "schema": {
31
+ "type": "string"
32
+ }
33
+ }
34
+ ],
35
+ "requestBody": null,
36
+ "responses": {
37
+ "default": {
38
+ "description": "default response",
39
+ "content": {
40
+ "application/json": {}
41
+ }
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}/{itemId}",
47
+ "method": "DELETE",
48
+ "operationId": "deleteRatingEndpoint",
49
+ "summary": "Delete rating item",
50
+ "description": "Deletes the rating item under the specified S/O/D category. Returns 404 if item does not exist.",
51
+ "tags": [
52
+ "Evaluation Criteria"
53
+ ],
54
+ "parameters": [
55
+ {
56
+ "name": "fmeaType",
57
+ "in": "path",
58
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
59
+ "required": true,
60
+ "schema": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ {
65
+ "name": "criteriaId",
66
+ "in": "path",
67
+ "description": "Unique ID of the evaluation criteria",
68
+ "required": true,
69
+ "schema": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ {
74
+ "name": "category",
75
+ "in": "path",
76
+ "description": "Rating category: severity|occurrence|detection",
77
+ "required": true,
78
+ "schema": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ {
83
+ "name": "itemId",
84
+ "in": "path",
85
+ "description": "Unique ID of the rating item",
86
+ "required": true,
87
+ "schema": {
88
+ "type": "string"
89
+ }
90
+ }
91
+ ],
92
+ "requestBody": null,
93
+ "responses": {
94
+ "default": {
95
+ "description": "default response",
96
+ "content": {
97
+ "application/json": {}
98
+ }
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "path": "/api/v2/evaluation",
8
104
  "method": "GET",
9
- "operationId": "getTree",
10
- "summary": "Get evaluation criteria tree",
11
- "description": "Returns the full tree structure of significance evaluation criteria. Returned as a recursive children structure from the root node down to SOD items.",
105
+ "operationId": "getAllEvaluation",
106
+ "summary": "Get all evaluation criteria by FMEA type",
107
+ "description": "Returns all FMEA types with their criteria lists. Each entry includes the FMEA type name and its child criteria. Used for overview of all evaluation criteria across FMEA types.",
12
108
  "tags": [
13
109
  "Evaluation Criteria"
14
110
  ],
@@ -20,22 +116,35 @@
20
116
  "content": {
21
117
  "application/json": {
22
118
  "schema": {
23
- "type": "object",
24
- "properties": {
25
- "id": {
26
- "type": "string"
27
- },
28
- "title": {
29
- "type": "string"
30
- },
31
- "type": {
32
- "type": "string"
33
- },
34
- "children": {
35
- "type": "array",
36
- "items": {
37
- "type": "object",
38
- "description": "(circular: EvaluationTreeNodeDTO)"
119
+ "type": "array",
120
+ "items": {
121
+ "type": "object",
122
+ "properties": {
123
+ "fmeaType": {
124
+ "type": "string"
125
+ },
126
+ "criteria": {
127
+ "type": "array",
128
+ "items": {
129
+ "type": "object",
130
+ "properties": {
131
+ "id": {
132
+ "type": "string"
133
+ },
134
+ "name": {
135
+ "type": "string"
136
+ },
137
+ "description": {
138
+ "type": "string"
139
+ },
140
+ "defaultSelected": {
141
+ "type": "boolean"
142
+ },
143
+ "displayed": {
144
+ "type": "boolean"
145
+ }
146
+ }
147
+ }
39
148
  }
40
149
  }
41
150
  }
@@ -46,63 +155,82 @@
46
155
  }
47
156
  },
48
157
  {
49
- "path": "/api/v2/evaluation/display",
50
- "method": "PATCH",
51
- "operationId": "updateDisplay",
52
- "summary": "Bulk update display visibility",
53
- "description": "Updates the display visibility of evaluation criteria items in bulk. At least one item must remain visible.",
158
+ "path": "/api/v2/evaluation/{fmeaType}",
159
+ "method": "GET",
160
+ "operationId": "getCriteriaByFmeaType",
161
+ "summary": "List criteria for a specific FMEA type",
162
+ "description": "Returns the evaluation criteria list for the specified FMEA type. Returns an empty list if the FMEA type has no criteria configured. Returns 400 if the fmeaType is invalid.",
54
163
  "tags": [
55
164
  "Evaluation Criteria"
56
165
  ],
57
- "parameters": [],
58
- "requestBody": {
59
- "content": {
60
- "application/json": {
61
- "schema": {
62
- "type": "object",
63
- "properties": {
64
- "items": {
65
- "type": "array",
66
- "items": {
67
- "type": "object",
68
- "properties": {
69
- "id": {
70
- "type": "string"
71
- },
72
- "display": {
73
- "type": "boolean"
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }
166
+ "parameters": [
167
+ {
168
+ "name": "fmeaType",
169
+ "in": "path",
170
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
171
+ "required": true,
172
+ "schema": {
173
+ "type": "string"
80
174
  }
81
175
  }
82
- },
176
+ ],
177
+ "requestBody": null,
83
178
  "responses": {
84
179
  "default": {
85
180
  "description": "default response",
86
181
  "content": {
87
- "application/json": {}
182
+ "application/json": {
183
+ "schema": {
184
+ "type": "array",
185
+ "items": {
186
+ "type": "object",
187
+ "properties": {
188
+ "id": {
189
+ "type": "string"
190
+ },
191
+ "name": {
192
+ "type": "string"
193
+ },
194
+ "description": {
195
+ "type": "string"
196
+ },
197
+ "defaultSelected": {
198
+ "type": "boolean"
199
+ },
200
+ "displayed": {
201
+ "type": "boolean"
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
88
207
  }
89
208
  }
90
209
  }
91
210
  },
92
211
  {
93
- "path": "/api/v2/evaluation/{id}",
94
- "method": "DELETE",
95
- "operationId": "deleteItem_2",
96
- "summary": "Delete evaluation criteria item",
97
- "description": "Deletes the evaluation criteria item for the specified ID. Returns 400 if the item is in use by any project.",
212
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}",
213
+ "method": "GET",
214
+ "operationId": "getRatingsByCriteria",
215
+ "summary": "Get S/O/D ratings for a criteria",
216
+ "description": "Returns severity, occurrence, and detection rating items for the specified criteria under the given FMEA type. Rating items are sorted by level descending (10 → 1). Returns 404 if the criteria does not exist or does not belong to the specified FMEA type.",
98
217
  "tags": [
99
218
  "Evaluation Criteria"
100
219
  ],
101
220
  "parameters": [
102
221
  {
103
- "name": "id",
222
+ "name": "fmeaType",
104
223
  "in": "path",
105
- "description": "Unique ID of the evaluation criteria item",
224
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
225
+ "required": true,
226
+ "schema": {
227
+ "type": "string"
228
+ }
229
+ },
230
+ {
231
+ "name": "criteriaId",
232
+ "in": "path",
233
+ "description": "Unique ID of the evaluation criteria",
106
234
  "required": true,
107
235
  "schema": {
108
236
  "type": "string"
@@ -114,25 +242,100 @@
114
242
  "default": {
115
243
  "description": "default response",
116
244
  "content": {
117
- "application/json": {}
245
+ "application/json": {
246
+ "schema": {
247
+ "type": "object",
248
+ "properties": {
249
+ "severity": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "id": {
255
+ "type": "string"
256
+ },
257
+ "name": {
258
+ "type": "string"
259
+ },
260
+ "description": {
261
+ "type": "string"
262
+ },
263
+ "level": {
264
+ "type": "integer"
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "occurrence": {
270
+ "type": "array",
271
+ "items": {
272
+ "type": "object",
273
+ "properties": {
274
+ "id": {
275
+ "type": "string"
276
+ },
277
+ "name": {
278
+ "type": "string"
279
+ },
280
+ "description": {
281
+ "type": "string"
282
+ },
283
+ "level": {
284
+ "type": "integer"
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "detection": {
290
+ "type": "array",
291
+ "items": {
292
+ "type": "object",
293
+ "properties": {
294
+ "id": {
295
+ "type": "string"
296
+ },
297
+ "name": {
298
+ "type": "string"
299
+ },
300
+ "description": {
301
+ "type": "string"
302
+ },
303
+ "level": {
304
+ "type": "integer"
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
118
312
  }
119
313
  }
120
314
  }
121
315
  },
122
316
  {
123
- "path": "/api/v2/evaluation/{id}",
317
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/significance",
124
318
  "method": "GET",
125
- "operationId": "getItem",
126
- "summary": "Get evaluation criteria item",
127
- "description": "Returns the details of the evaluation criteria item for the specified ID. Returns 404 if the ID does not exist.",
319
+ "operationId": "getSignificanceByCriteria",
320
+ "summary": "Get significance criteria for a criteria",
321
+ "description": "Returns the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria under the given FMEA type. Returns an empty DTO if not configured.",
128
322
  "tags": [
129
323
  "Evaluation Criteria"
130
324
  ],
131
325
  "parameters": [
132
326
  {
133
- "name": "id",
327
+ "name": "fmeaType",
134
328
  "in": "path",
135
- "description": "Unique ID of the evaluation criteria item",
329
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
330
+ "required": true,
331
+ "schema": {
332
+ "type": "string"
333
+ }
334
+ },
335
+ {
336
+ "name": "criteriaId",
337
+ "in": "path",
338
+ "description": "Unique ID of the evaluation criteria",
136
339
  "required": true,
137
340
  "schema": {
138
341
  "type": "string"
@@ -148,26 +351,23 @@
148
351
  "schema": {
149
352
  "type": "object",
150
353
  "properties": {
151
- "id": {
152
- "type": "string"
153
- },
154
- "title": {
155
- "type": "string"
354
+ "rpn": {
355
+ "type": "integer"
156
356
  },
157
- "description": {
158
- "type": "string"
357
+ "s": {
358
+ "type": "integer"
159
359
  },
160
- "type": {
161
- "type": "string"
360
+ "o": {
361
+ "type": "integer"
162
362
  },
163
- "count": {
363
+ "d": {
164
364
  "type": "integer"
165
365
  },
166
- "defaultSelected": {
167
- "type": "boolean"
366
+ "rpnRating": {
367
+ "type": "string"
168
368
  },
169
- "displayed": {
170
- "type": "boolean"
369
+ "limitType": {
370
+ "type": "string"
171
371
  }
172
372
  }
173
373
  }
@@ -177,19 +377,37 @@
177
377
  }
178
378
  },
179
379
  {
180
- "path": "/api/v2/evaluation/{id}/items",
380
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}",
181
381
  "method": "GET",
182
- "operationId": "getItems",
183
- "summary": "List child evaluation criteria items",
184
- "description": "Returns the direct child evaluation criteria items of the specified parent ID.",
382
+ "operationId": "getRatingsByCategory",
383
+ "summary": "Get ratings for a specific S/O/D category",
384
+ "description": "Returns rating items for the specified category (severity, occurrence, or detection) under the given criteria and FMEA type. Returns 400 if category is invalid.",
185
385
  "tags": [
186
386
  "Evaluation Criteria"
187
387
  ],
188
388
  "parameters": [
189
389
  {
190
- "name": "id",
390
+ "name": "fmeaType",
191
391
  "in": "path",
192
- "description": "ID of the parent item",
392
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
393
+ "required": true,
394
+ "schema": {
395
+ "type": "string"
396
+ }
397
+ },
398
+ {
399
+ "name": "criteriaId",
400
+ "in": "path",
401
+ "description": "Unique ID of the evaluation criteria",
402
+ "required": true,
403
+ "schema": {
404
+ "type": "string"
405
+ }
406
+ },
407
+ {
408
+ "name": "category",
409
+ "in": "path",
410
+ "description": "Rating category: severity|occurrence|detection",
193
411
  "required": true,
194
412
  "schema": {
195
413
  "type": "string"
@@ -210,23 +428,14 @@
210
428
  "id": {
211
429
  "type": "string"
212
430
  },
213
- "title": {
431
+ "name": {
214
432
  "type": "string"
215
433
  },
216
434
  "description": {
217
435
  "type": "string"
218
436
  },
219
- "type": {
220
- "type": "string"
221
- },
222
- "count": {
437
+ "level": {
223
438
  "type": "integer"
224
- },
225
- "defaultSelected": {
226
- "type": "boolean"
227
- },
228
- "displayed": {
229
- "type": "boolean"
230
439
  }
231
440
  }
232
441
  }
@@ -237,73 +446,73 @@
237
446
  }
238
447
  },
239
448
  {
240
- "path": "/api/v2/evaluation/{id}/significance-criteria",
241
- "method": "GET",
242
- "operationId": "getSignificanceCriteria",
243
- "summary": "Get significance criteria",
244
- "description": "Returns the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria ID. Returns an empty DTO if not configured.",
449
+ "path": "/api/v2/evaluation/{fmeaType}/display",
450
+ "method": "PATCH",
451
+ "operationId": "updateDisplayEndpoint",
452
+ "summary": "Bulk update criteria display visibility",
453
+ "description": "Updates the display visibility of evaluation criteria items for the specified FMEA type. At least one item must remain visible.",
245
454
  "tags": [
246
455
  "Evaluation Criteria"
247
456
  ],
248
457
  "parameters": [
249
458
  {
250
- "name": "id",
459
+ "name": "fmeaType",
251
460
  "in": "path",
252
- "description": "ID of the evaluation criteria item",
461
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
253
462
  "required": true,
254
463
  "schema": {
255
464
  "type": "string"
256
465
  }
257
466
  }
258
467
  ],
259
- "requestBody": null,
260
- "responses": {
261
- "default": {
262
- "description": "default response",
263
- "content": {
264
- "application/json": {
265
- "schema": {
266
- "type": "object",
267
- "properties": {
268
- "rpn": {
269
- "type": "integer"
270
- },
271
- "s": {
272
- "type": "integer"
273
- },
274
- "o": {
275
- "type": "integer"
276
- },
277
- "d": {
278
- "type": "integer"
279
- },
280
- "rpnRating": {
281
- "type": "string"
282
- },
283
- "limitType": {
284
- "type": "string"
468
+ "requestBody": {
469
+ "content": {
470
+ "application/json": {
471
+ "schema": {
472
+ "type": "object",
473
+ "properties": {
474
+ "items": {
475
+ "type": "array",
476
+ "items": {
477
+ "type": "object",
478
+ "properties": {
479
+ "id": {
480
+ "type": "string"
481
+ },
482
+ "display": {
483
+ "type": "boolean"
484
+ }
485
+ }
285
486
  }
286
487
  }
287
488
  }
288
489
  }
289
490
  }
290
491
  }
492
+ },
493
+ "responses": {
494
+ "default": {
495
+ "description": "default response",
496
+ "content": {
497
+ "application/json": {}
498
+ }
499
+ }
291
500
  }
292
501
  },
293
502
  {
294
- "path": "/api/v2/evaluation/{parentId}/items",
503
+ "path": "/api/v2/evaluation/{fmeaType}",
295
504
  "method": "POST",
296
- "operationId": "createItem_2",
297
- "summary": "Create evaluation criteria item",
298
- "description": "Adds a new evaluation criteria item under the specified parent. The type is automatically determined by the parent's type.",
505
+ "operationId": "createCriteriaEndpoint",
506
+ "summary": "Create evaluation criteria",
507
+ "description": "Creates a new evaluation criteria under the specified FMEA type. Auto-generates Severity, Occurrence, and Detection sub-categories and a significance_criteria row. Returns 400 if the fmeaType is invalid or unsupported for evaluation.",
299
508
  "tags": [
300
509
  "Evaluation Criteria"
301
510
  ],
302
511
  "parameters": [
303
512
  {
304
- "name": "parentId",
513
+ "name": "fmeaType",
305
514
  "in": "path",
306
- "description": "ID of the parent item",
515
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
307
516
  "required": true,
308
517
  "schema": {
309
518
  "type": "string"
@@ -342,18 +551,12 @@
342
551
  "id": {
343
552
  "type": "string"
344
553
  },
345
- "title": {
554
+ "name": {
346
555
  "type": "string"
347
556
  },
348
557
  "description": {
349
558
  "type": "string"
350
559
  },
351
- "type": {
352
- "type": "string"
353
- },
354
- "count": {
355
- "type": "integer"
356
- },
357
560
  "defaultSelected": {
358
561
  "type": "boolean"
359
562
  },
@@ -368,19 +571,37 @@
368
571
  }
369
572
  },
370
573
  {
371
- "path": "/api/v2/evaluation/{id}",
372
- "method": "PUT",
373
- "operationId": "updateItem_2",
374
- "summary": "Update evaluation criteria item",
375
- "description": "Updates the evaluation criteria item for the specified ID. When the name is changed, mainproject sync is also performed.",
574
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}",
575
+ "method": "POST",
576
+ "operationId": "createRatingEndpoint",
577
+ "summary": "Create rating item",
578
+ "description": "Creates a new rating item under the specified S/O/D category. Returns 400 if category is invalid.",
376
579
  "tags": [
377
580
  "Evaluation Criteria"
378
581
  ],
379
582
  "parameters": [
380
583
  {
381
- "name": "id",
584
+ "name": "fmeaType",
585
+ "in": "path",
586
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
587
+ "required": true,
588
+ "schema": {
589
+ "type": "string"
590
+ }
591
+ },
592
+ {
593
+ "name": "criteriaId",
382
594
  "in": "path",
383
- "description": "Unique ID of the evaluation criteria item",
595
+ "description": "Unique ID of the evaluation criteria",
596
+ "required": true,
597
+ "schema": {
598
+ "type": "string"
599
+ }
600
+ },
601
+ {
602
+ "name": "category",
603
+ "in": "path",
604
+ "description": "Rating category: severity|occurrence|detection",
384
605
  "required": true,
385
606
  "schema": {
386
607
  "type": "string"
@@ -419,23 +640,14 @@
419
640
  "id": {
420
641
  "type": "string"
421
642
  },
422
- "title": {
643
+ "name": {
423
644
  "type": "string"
424
645
  },
425
646
  "description": {
426
647
  "type": "string"
427
648
  },
428
- "type": {
429
- "type": "string"
430
- },
431
- "count": {
649
+ "level": {
432
650
  "type": "integer"
433
- },
434
- "defaultSelected": {
435
- "type": "boolean"
436
- },
437
- "displayed": {
438
- "type": "boolean"
439
651
  }
440
652
  }
441
653
  }
@@ -445,19 +657,28 @@
445
657
  }
446
658
  },
447
659
  {
448
- "path": "/api/v2/evaluation/{id}/default",
660
+ "path": "/api/v2/evaluation/{fmeaType}/default/{criteriaId}",
449
661
  "method": "PUT",
450
- "operationId": "setDefault",
451
- "summary": "Set default evaluation criteria item",
452
- "description": "Sets the specified item as the default. The existing default under the same parent is unset.",
662
+ "operationId": "setDefaultEndpoint",
663
+ "summary": "Set default evaluation criteria",
664
+ "description": "Sets the specified criteria as the default for the FMEA type. Unsets the previous default under the same parent.",
453
665
  "tags": [
454
666
  "Evaluation Criteria"
455
667
  ],
456
668
  "parameters": [
457
669
  {
458
- "name": "id",
670
+ "name": "fmeaType",
671
+ "in": "path",
672
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
673
+ "required": true,
674
+ "schema": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ {
679
+ "name": "criteriaId",
459
680
  "in": "path",
460
- "description": "ID of the item to set as default",
681
+ "description": "Unique ID of the criteria to set as default",
461
682
  "required": true,
462
683
  "schema": {
463
684
  "type": "string"
@@ -475,19 +696,108 @@
475
696
  }
476
697
  },
477
698
  {
478
- "path": "/api/v2/evaluation/{id}/significance-criteria",
699
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}",
700
+ "method": "PUT",
701
+ "operationId": "updateCriteriaEndpoint",
702
+ "summary": "Update evaluation criteria",
703
+ "description": "Updates the evaluation criteria for the specified FMEA type and criteria ID. Syncs mainproject when the name is changed. Returns 404 if criteria does not exist or does not belong to the FMEA type.",
704
+ "tags": [
705
+ "Evaluation Criteria"
706
+ ],
707
+ "parameters": [
708
+ {
709
+ "name": "fmeaType",
710
+ "in": "path",
711
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
712
+ "required": true,
713
+ "schema": {
714
+ "type": "string"
715
+ }
716
+ },
717
+ {
718
+ "name": "criteriaId",
719
+ "in": "path",
720
+ "description": "Unique ID of the evaluation criteria",
721
+ "required": true,
722
+ "schema": {
723
+ "type": "string"
724
+ }
725
+ }
726
+ ],
727
+ "requestBody": {
728
+ "content": {
729
+ "application/json": {
730
+ "schema": {
731
+ "type": "object",
732
+ "properties": {
733
+ "title": {
734
+ "type": "string"
735
+ },
736
+ "description": {
737
+ "type": "string"
738
+ },
739
+ "count": {
740
+ "type": "integer",
741
+ "format": "int32"
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ },
748
+ "responses": {
749
+ "default": {
750
+ "description": "default response",
751
+ "content": {
752
+ "application/json": {
753
+ "schema": {
754
+ "type": "object",
755
+ "properties": {
756
+ "id": {
757
+ "type": "string"
758
+ },
759
+ "name": {
760
+ "type": "string"
761
+ },
762
+ "description": {
763
+ "type": "string"
764
+ },
765
+ "defaultSelected": {
766
+ "type": "boolean"
767
+ },
768
+ "displayed": {
769
+ "type": "boolean"
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+ },
778
+ {
779
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/significance",
479
780
  "method": "PUT",
480
- "operationId": "saveSignificanceCriteria",
481
- "summary": "Save significance criteria",
482
- "description": "Creates or updates the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria ID.",
781
+ "operationId": "saveSignificanceEndpoint",
782
+ "summary": "Save significance criteria (with fmeaType)",
783
+ "description": "Creates or updates the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria under the given FMEA type.",
483
784
  "tags": [
484
785
  "Evaluation Criteria"
485
786
  ],
486
787
  "parameters": [
487
788
  {
488
- "name": "id",
789
+ "name": "fmeaType",
489
790
  "in": "path",
490
- "description": "ID of the evaluation criteria item",
791
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
792
+ "required": true,
793
+ "schema": {
794
+ "type": "string"
795
+ }
796
+ },
797
+ {
798
+ "name": "criteriaId",
799
+ "in": "path",
800
+ "description": "Unique ID of the evaluation criteria",
491
801
  "required": true,
492
802
  "schema": {
493
803
  "type": "string"
@@ -559,6 +869,101 @@
559
869
  }
560
870
  }
561
871
  }
872
+ },
873
+ {
874
+ "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}/{itemId}",
875
+ "method": "PUT",
876
+ "operationId": "updateRatingEndpoint",
877
+ "summary": "Update rating item",
878
+ "description": "Updates the rating item for the specified S/O/D category. Returns 404 if item does not exist.",
879
+ "tags": [
880
+ "Evaluation Criteria"
881
+ ],
882
+ "parameters": [
883
+ {
884
+ "name": "fmeaType",
885
+ "in": "path",
886
+ "description": "FMEA type: Design|Process|Equipment|FA|FTA",
887
+ "required": true,
888
+ "schema": {
889
+ "type": "string"
890
+ }
891
+ },
892
+ {
893
+ "name": "criteriaId",
894
+ "in": "path",
895
+ "description": "Unique ID of the evaluation criteria",
896
+ "required": true,
897
+ "schema": {
898
+ "type": "string"
899
+ }
900
+ },
901
+ {
902
+ "name": "category",
903
+ "in": "path",
904
+ "description": "Rating category: severity|occurrence|detection",
905
+ "required": true,
906
+ "schema": {
907
+ "type": "string"
908
+ }
909
+ },
910
+ {
911
+ "name": "itemId",
912
+ "in": "path",
913
+ "description": "Unique ID of the rating item",
914
+ "required": true,
915
+ "schema": {
916
+ "type": "string"
917
+ }
918
+ }
919
+ ],
920
+ "requestBody": {
921
+ "content": {
922
+ "application/json": {
923
+ "schema": {
924
+ "type": "object",
925
+ "properties": {
926
+ "title": {
927
+ "type": "string"
928
+ },
929
+ "description": {
930
+ "type": "string"
931
+ },
932
+ "count": {
933
+ "type": "integer",
934
+ "format": "int32"
935
+ }
936
+ }
937
+ }
938
+ }
939
+ }
940
+ },
941
+ "responses": {
942
+ "default": {
943
+ "description": "default response",
944
+ "content": {
945
+ "application/json": {
946
+ "schema": {
947
+ "type": "object",
948
+ "properties": {
949
+ "id": {
950
+ "type": "string"
951
+ },
952
+ "name": {
953
+ "type": "string"
954
+ },
955
+ "description": {
956
+ "type": "string"
957
+ },
958
+ "level": {
959
+ "type": "integer"
960
+ }
961
+ }
962
+ }
963
+ }
964
+ }
965
+ }
966
+ }
562
967
  }
563
968
  ]
564
969
  }