-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1795 lines (1663 loc) · 74.6 KB
/
Copy pathopenapi.yaml
File metadata and controls
1795 lines (1663 loc) · 74.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Malfacon API
version: 1.1.0
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
description: |
Cet outil permet la déclaration et le traitement d'une malfaçon grâce à des flux normalisés.
## Dépendances
Cette API est basé sur les APIs outils du [projet common](https://github.com/before-interop/common):
* [TroubleTicket](https://before-interop.github.io/common/?urls.primaryName=TroubleTicket)
* [Attachment](https://before-interop.github.io/common/?urls.primaryName=Attachment)
* [Note](https://ggrebert.github.io/before-interop-common/?urls.primaryName=Note)
* [Event](https://before-interop.github.io/common/?urls.primaryName=Event)
## Pagination
Les listes de ressources sont paginées.
* La valeur par défaut d'une page est `limit=50` et `offset=0`.
* La valeur maximale de `limit` est `100`.
servers:
- url: "{protocol}://{host}:{port}{basePath}"
variables:
protocol:
enum:
- https
- http
default: https
host:
default: localhost
port:
default: "8080"
basePath:
default: /api
tags:
- name: TroubleTicket
description: TroubleTicket management
- name: Note
description: Note management
- name: Attachment
description: Attachment management
- name: Event
description: Event management
- name: OI
description: OI endpoints
- name: OC
description: OC endpoints
paths:
/malfacon:
get:
tags:
- TroubleTicket
- OI
summary: Get all trouble tickets
description: Get all trouble tickets
operationId: getMalfacons
parameters: &searchAndPaginateParameters
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/parameters/limit
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/parameters/offset
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/parameters/sort
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/fields.openapi.yaml#/components/parameters/fields
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The list of trouble tickets
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/MalfaconBase"
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- TroubleTicket
- OI
summary: Count the number of trouble tickets
description: Count the number of trouble tickets matching the given criteria.
operationId: countMalfacons
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of trouble tickets.
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- TroubleTicket
- OI
summary: Create a trouble ticket
description: Create a trouble ticket
operationId: createMalfacon
requestBody:
description: The malfacon to create
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconBase"
responses:
"201": &troubleTicket201
description: The created malfacon
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconBase"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/update.openapi.yaml#/components/headers/ETag
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"403":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-403
description: |
**Forbidden**
Le serveur a compris la requête, mais refuse de l'exécuter car le client n'a pas respecté le processus de création ou de mise à jour.
Exemple: passage du status `ACKNOWLEDGED` à `RESOLVED` sans passer par le status `IN_PROGRESS`.
* Le champ `reason` de la réponse d'erreur doit contenir la liste des tickets en conflit séparés par des virgules.
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- TroubleTicket
- OI
summary: Get a trouble ticket
description: Get a trouble ticket
operationId: getMalfacon
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/fields.openapi.yaml#/components/parameters/fields
responses:
"200":
description: The malfacon
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconBase"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/update.openapi.yaml#/components/headers/ETag
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
put:
tags:
- TroubleTicket
- OI
summary: Update a trouble ticket
description: Update a trouble ticket
operationId: updateMalfacon
requestBody:
description: The trouble ticket to update
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconBase"
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/update.openapi.yaml#/components/parameters/If-Match
responses:
"200": *troubleTicket201
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"403":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-403
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-412
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
patch:
tags:
- TroubleTicket
- OI
summary: Partially update a trouble ticket
description: Partially update a trouble ticket
operationId: patchMalfacon
requestBody:
description: The data to update
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconBase"
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/update.openapi.yaml#/components/parameters/If-Match
responses:
"200": *troubleTicket201
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"403":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-403
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-412
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/note:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- Note
- OI
summary: Get all notes of a trouble ticket
description: Get all notes of a trouble ticket
operationId: getMalfaconNotes
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of notes
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Note"
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Note
- OI
summary: Count the number of notes of a trouble ticket
description: Count the number of notes of a trouble ticket matching the given
criteria.
operationId: countMalfaconNotes
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of notes
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Note
- OI
summary: Create a note for a trouble ticket
description: Create a note for a trouble ticket
operationId: createMalfaconNote
requestBody:
description: The note to create
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Note"
responses:
"201":
description: The created note
content:
application/json:
schema:
$ref: "#/components/schemas/Note"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/update.openapi.yaml#/components/headers/ETag
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/attachment:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- Attachment
- OI
summary: List attachments
description: Get all attachments of a trouble ticket
operationId: getMalfaconAttachments
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of attachments
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/AttachmentMalfaconMultiPartStandard"
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Attachment
- OI
summary: Get the number of attachments
description: This method returns the number of attachments matching the criteria.
operationId: countMalfaconAttachments
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of attachments
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Attachment
- OI
summary: Create a attachment
description: This method allows to create a attachment.
operationId: createMalfaconAttachment
requestBody:
description: The attachment to create
required: true
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/AttachmentMalfaconMultiPartStandard"
required:
- size
- sha256
responses:
"200":
description: |
The attachment multipart metadata.
You have to use the generated `id` to upload the content of the attachment with the `POST /attachment/{id}/content` method,
and finalize the creation of the attachment with the `POST /attachment/{id}/finalize` method.
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/AttachmentMalfaconMultiPartStandard"
headers:
ETag:
$ref: "https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/\
common/utils/update.openapi.yaml#/components/headers/ETag"
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/attachment/{attachmentId}/content:
parameters:
- $ref: "#/components/parameters/malfaconId"
- $ref: "#/components/parameters/attachmentId"
get:
tags:
- Attachment
- OI
summary: Download the content of an attachment
description: This method allows to download the content of an attachment.
operationId: downloadMalfaconAttachment
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Match
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/tools/attachment/attachment.openapi.yaml#/components/parameters/If-None-Match
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Modified-Since
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Unmodified-Since
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/tools/attachment/attachment.openapi.yaml#/components/parameters/Range
responses:
"200":
description: The content of the attachment
content:
application/octet-stream:
schema:
type: string
format: binary
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-412
post:
tags:
- Attachment
- OI
summary: upload a specific chunk of the content of an attachment
description: "This method allows to upload a specific chunk of the content of an
attachment identified by its id (attachmentId) for a specific ticket
identified by its id (malfaconId)."
operationId: uploadMalfaconAttachmentContentChunk
requestBody:
description: A chunk of the content of the attachment
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: The chunk of the content of the attachment
metadata:
type: object
properties:
index:
type: integer
format: int32
description: The index of the chunk (from 0 to n-1 where n is the
uploadExpectedChunks)
required:
- file
- metadata
responses:
"200":
description: The chunk has been uploaded (the property uploadChunks has been
updated with the new chunk index)
content:
application/json:
schema:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/schemas/Attachment.openapi.yaml#/components/schemas/Chunk
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
"413":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-413
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/attachment/{attachmentId}/finalize:
parameters:
- $ref: "#/components/parameters/malfaconId"
- $ref: "#/components/parameters/attachmentId"
post:
tags:
- Attachment
- OI
summary: Finalize the creation of the content of an attachment
description: |
This method allows to finalize the creation of the content of an attachment.
The server will aggregate all the chunks uploaded and validate the content of the attachment
in an asynchronous way.
The status of the attachment should be set to UPLOADED.
operationId: finalizeMalfaconAttachmentCreation
requestBody:
description: finalize the content of the attachment. No body is required
content:
application/json:
schema:
type: object
nullable: true
responses:
"200":
description: All the chunks have been uploaded
content:
application/json:
schema:
$ref: "#/components/schemas/AttachmentMalfaconMultiPartStandard"
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/event:
get:
tags:
- Event
- OI
summary: Get all events of all trouble tickets
description: Get all events of all trouble tickets
operationId: getMalfaconEvents
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of events
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Event"
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Event
- OI
summary: Count the number of events of all trouble tickets
description: Count the number of events of all trouble tickets matching the
given criteria.
operationId: countMalfaconEvents
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of events
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Event
- OC
summary: Receive an event for a trouble ticket
description: Receive an event for a trouble ticket
operationId: receiveMalfaconEvent
requestBody:
description: The event to receive
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Event"
responses:
"200":
description: The event has been received
content:
application/json:
schema:
type: object
additionalProperties: true
"204":
description: The event has been received
default:
description: |
L'événement a été reçu avec succès.
La réponse n'a pas l'obligation de contenir un body.
Si l'OC retourne un body, celui-ci pourra être enregistré dans le journal de l'OI.
"400":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-400
"403":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-403
"404":
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-404
"500":
description: |
**Internal Server Error**
Cette erreur se produit lorsque le serveur a rencontré une condition inattendue qui l'a empêché de répondre à la demande.
* Le champ reason de la réponse d'erreur peut contenir des informations sur l'erreur.
content:
application/json:
schema:
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/responses/errors.openapi.yaml#/components/responses/Error-500
"501":
description: |
**Not Implemented**
Cette erreur se produit lorsque le serveur ne prend pas en charge la fonctionnalité nécessaire pour répondre à la demande
* Le champ reason de la réponse d'erreur peut contenir des informations sur l'erreur.
components:
schemas:
MalfaconBase:
allOf:
- $ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/schemas/TroubleTicket.openapi.yaml#/components/schemas/TroubleTicket
- discriminator:
propertyName: "@type"
mapping:
"malfacon.pm.oi": "#/components/schemas/MalfaconOiPm"
"malfacon.amontpm.oi": "#/components/schemas/MalfaconOiAmontPm"
"malfacon.pbo.oi": "#/components/schemas/MalfaconOiPbo"
"malfacon.ccf.oi": "#/components/schemas/MalfaconOiCcf"
"malfacon.pm.oc": "#/components/schemas/MalfaconOcPm"
"malfacon.amontpm.oc": "#/components/schemas/MalfaconOcAmontPm"
"malfacon.pmpbo.oc": "#/components/schemas/MalfaconOcPmPbo"
"malfacon.pbo.oc": "#/components/schemas/MalfaconOcPbo"
"malfacon.ccf.oc": "#/components/schemas/MalfaconOcCcf"
type: object
required:
- code_oi
- code_oc
- "@type"
- severity
- quantity
- name
properties:
code_oi:
#Code ARCEP de l'OI.
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/schemas/Interop.openapi.yaml#/components/schemas/CodeOperateurArcep
code_oc:
#Code ARCEP de l'OC.
$ref: https://raw.githubusercontent.com/before-interop/common/refs/tags/1.0.0/common/schemas/Interop.openapi.yaml#/components/schemas/CodeOperateurArcep
externalId:
description: Référence du ticket créé dans le système de l'OC
type: string
quantity:
description: |
The volumetry of the malfacon.
type: integer
example: 1
recoveryQuantity:
description: |
Ce champs indique la quantité de malfaçon reprise.
C'est un entier qui doit être renseignée au moment du passage en Resolved, par l'OC ou par l'OI suivant le cas de gestion,
et donc la valeur doit être >= au champs quantity renseigné à l'initialisation du ticket.
type: integer
name:
type: string
readOnly: true
"@type":
type: string
readOnly: false
"@baseType":
default: "Malfacon"
type: string
severity:
type: string
description: |
The severity of the malfacon
Allowed values are:
* `CRITICAL`
Si la malfaçon représente un danger grave est imminent pour les personnes,
l'OI se réserve le droit d'effectuer la reprise ou à minima sécurise les lieux
et demande à l'OC d'intervenir.
De son côté, l'OC se doit de signaler à l'OI toute malfaçon
représentant un danger grave et imminent pour les personnes.
* `MAJOR`
La malfaçon signifie une détérioration du site technique ou un risque d'intéruption
massive de service (dérangement collectif) ou un empêchement à produire
de nouveaux client (depuis le passage de commande jusqu'au raccordement).
Exemples:
* défaut d'étanchéité sur PB
* PM ouvert
* site insalubre
* brassage encombrant
* données de localisation erronées
* `MINOR`
Les autres non conformités à corriger.
enum:
- CRITICAL
- MAJOR
- MINOR
status:
type: string
description: |
Status de la malfacon.

enum:
- ACKNOWLEDGED
- CANCELED
- CLOSED
- CREATING
- IN_PROGRESS
- PENDING
- REJECTED
- RESOLVED
default: CREATING
acknowledgedDate:
type: string
format: date
description: Date de passage au status ACKNOWLEDGED.
lastModificationBy:
description: Identifiant du dernier auteur ayant mis à jour la malfaçon.
type: string
enum:
- OI
- OC
MalfaconOcBase:
allOf:
- $ref: "#/components/schemas/MalfaconBase"
- required:
- statusChangeReason
properties:
statusChangeReason:
type: string
enum:
- ACKNOWLEDGED
- CLOSED
- CREATING
- TROUBLE_TICKET_NOT_USABLE
default: CREATING
MalfaconOiBase:
allOf:
- $ref: "#/components/schemas/MalfaconBase"
- required:
- attributable
- ocNumber
- resolutionOwner
- statusChangeReason
properties:
attributable:
type: boolean
ocNumber:
description: |
Nombre d'OCs concernés par la malfaçon.
OcNumber doit être supérieur ou égal à 1 et obligatoire
type: integer
readOnly: true
minimum: 1
activationRate:
description: Le taux d'activation est un pourcentage représentant la part de
lignes activées par l'OC sur l'élément de réseau (PM ou PBO).
type: number
minimum: 0
exclusiveMinimum: true
maximum: 100
readOnly: true
resolutionOwner:
type: string
readOnly: true
enum:
- OI
- OC
default: OC
statusChangeReason:
type: string
enum:
- ACKNOWLEDGED
- ATTRIBUTABLE_ACCEPTED
- CANCELED
- CONTESTATION_ACCEPTED
- CONTESTATION_DUPLICATE
- CONTESTATION_EQUIPMENT_ERROR
- CONTESTATION_NOT_ALLOWED
- CONTESTATION_OC_ERROR
- CONTESTATION_OI_RESPONSABILITY
- CONTESTATION_ORDER_PUT_INTO_SERVICE_FOR_MORE_THAN_A_YEAR
- CONTESTATION_PHOTO_NOT_USABLE
- CONTESTATION_REFUSED
- CREATING
- CRITICAL
- DELAY_ADDED
- INFORMATION_GIVEN
- INFORMATION_REQUEST
- INVALID_FORMAT
- NO_ATTACHMENT
- NON_ATTRIBUTABLE
- OC_RESOLUTION_DELAY_EXPIRED
- OI_RESOLUTION_IMPOSSIBLE
- OI_RESOLUTION_RENUNCIATION
- OI_RESPONSE_DELAY_EXPIRED
- OI_VALIDATION_DELAY_EXPIRED
- RESOLUTION_REFUSED_EQUIPMENT_ERROR
- RESOLUTION_REFUSED_NOT_REPAIRED
- RESOLUTION_REFUSED_PARTIALLY_RESOLVED
- RESOLUTION_REFUSED_PHOTO_NOT_USABLE
- RESOLVED_OC
- RESOLVED_OC_VALIDATED
- RESOLVED_OI_ATTRIBUTABLE
- RESOLVED_OI_CRITICAL
- RESOLVED_OI_NON_ATTRIBUTABLE
- RESOLVED_OI_VALIDATED
default: CREATING
maxResolutionOcDuration:
$ref: "#/components/schemas/MaxResolutionOcDuration"
totalResolutionOcDuration:
description: The OC resolution duration in days. Calculated only as long as
ResolutionOwner = OC
type: number
expectedResolutionDate:
description: The maximum OC resolution date, recalculated only during state
changes taking into account the ticket creation date and
successive pauses.
type: string
format: date
validationDueDate:
description: The deadline for validation status
type: string
format: date
pendingDueDate:
description: The deadline for pending status
type: string
format: date
MaxResolutionOcDuration:
type: object
properties:
value:
type: integer
description: Duration in days
readOnly: true
reason:
type: string
readOnly: true
MalfaconOiPm:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
- required:
- pm
- codeFault
- localizationDetails
properties:
localization:
type: string
default: "PM"
enum:
- PM
localizationDetails:
type: string
description: |
Détails de localisation de la malfacon
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| LD02 | ARMOIRE |
| LD04 | BRASSAGE_OC |
| LD09 | CONNECTEUR_TIROIR_ZAPM |
| LD15 | ROUTE_OPTIQUE |
| LD16 | TIROIR_OC |
| LD17 | TIROIR_ZAPM |
enum:
- LD02
- LD04
- LD09
- LD15
- LD16
- LD17
codeFault:
type: string
description: |
Code du défaut de la malfacon.
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| FD06 | bouchon absent |
| FD09 | cheminement non conforme aux STAS… |
| FD12 | cheminement non conforme surplomb domaine privé, … |
| FD14 | cordon non conforme aux STAS caractéristiques techniques |
| FD17 | dégradation majeure |
| FD18 | dégradation porte |
| FD19 | dégradation serrure |
| FD20 | dégradation tambours |
| FD21 | dégradation tiroirs cassés |
| FD22 | environnement nettoyage déchets, fermeture |
| FD26 | implantation ou étiquetage non conforme aux STAS |
| FD31 | mauvaise fixation |
| FD32 | mauvaise fixation ou fermeture dégradée |
| FD36 | non respect Route Optique communiquée |
| FD41 | présence de cordons à zéro non retirés |
| FD50 | dégradation autres |
enum:
- FD06
- FD09
- FD12
- FD14
- FD17
- FD18
- FD19
- FD20
- FD21
- FD22
- FD26
- FD31
- FD32
- FD36
- FD41
- FD50
pm:
$ref: "#/components/schemas/PM"
opticalRoute:
type: array
items:
$ref: "#/components/schemas/MalfaconOpticalRoutePM"
MalfaconOiAmontPm:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
- required:
- pm
- codeFault
- localizationDetails
properties:
localization:
type: string
default: "AMONT_PM"
enum:
- AMONT_PM
localizationDetails:
type: string
description: |
Détails de localisation de la malfacon
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| LD08 | COLLECTE_LIEN_PM_PRDM |
| LD18 | ADDUCTION_OC |
enum:
- LD08
- LD18
codeFault:
type: string
description: |
Code du défaut de la malfacon.
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| FD06 | bouchon absent |
| FD08 | brassage OC non conforme |
| FD11 | cheminement câble OC/OI non conforme |
| FD27 | implantation tiroir OC/OI ou étiquetage non conforme |