-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.yml
More file actions
4967 lines (4967 loc) · 149 KB
/
Copy pathswagger.yml
File metadata and controls
4967 lines (4967 loc) · 149 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.0"
info:
title: "Eventownik backend"
version: "0.5.0"
description: "Eventownik backend API documentation"
components:
responses:
Forbidden:
description: "Access token is missing or invalid"
Accepted:
description: "The request was accepted"
Created:
description: "The resource has been created"
NotFound:
description: "The resource has been created"
NotAcceptable:
description: "The resource has been created"
securitySchemes:
BearerAuth:
type: "http"
scheme: "bearer"
BasicAuth:
type: "http"
scheme: "basic"
ApiKeyAuth:
type: "apiKey"
in: "header"
name: "X-API-Key"
schemas:
Any:
description: "Any JSON object not defined as schema"
Admin:
type: "object"
required: []
properties:
id:
type: "number"
example: 246
firstName:
type: "string"
example: "John"
lastName:
type: "string"
example: "Doe"
email:
type: "string"
example: "johndoe@example.com"
format: "email"
type:
$ref: '#/components/schemas/"organizer"'
example: "organizer"
enum:
- "organizer"
- "superadmin"
active:
type: "boolean"
example: true
permissions:
type: "array"
items:
$ref: "#/components/schemas/Permission"
example: null
events:
type: "array"
items:
$ref: "#/components/schemas/Event"
example: null
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
description: "Admin (Model)"
Attribute:
type: "object"
required: []
properties:
id:
type: "number"
example: 399
name:
type: "string"
example: "John Doe"
slug:
type: "string"
example: "Lorem Ipsum"
eventId:
type: "number"
example: 419
options:
type: "string"
example: "Lorem Ipsum"
type:
type: "string"
example: "Lorem Ipsum"
showInList:
type: "boolean"
example: true
order:
type: "number"
example: 360
isSensitiveData:
type: "boolean"
example: true
reason:
type: "string"
example: "Lorem Ipsum"
event:
$ref: "#/components/schemas/Event"
example: null
forms:
type: "array"
items:
$ref: "#/components/schemas/Form"
example: null
participantAttributes:
type: "array"
items:
$ref: "#/components/schemas/Participant"
example: null
rootBlock:
$ref: "#/components/schemas/Block"
example: null
blocks:
type: "array"
items:
$ref: "#/components/schemas/Block"
example: null
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
serializeExtras = true:
$ref: "#/components/schemas/"
example: null
description: "Attribute (Model)"
Block:
type: "object"
required: []
properties:
id:
type: "number"
example: 112
name:
type: "string"
example: "John Doe"
description:
type: "string"
example: "Lorem ipsum dolor sit amet"
parentId:
type: "number"
example: 697
capacity:
type: "number"
example: 800
isRootBlock:
type: "boolean"
example: true
attributeId:
type: "number"
example: 630
order:
type: "number"
example: 409
children:
type: "array"
items:
$ref: "#/components/schemas/Block"
example: null
parent:
$ref: "#/components/schemas/Block"
example: null
attribute:
$ref: "#/components/schemas/Attribute"
example: null
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
description: "Block (Model)"
Email:
type: "object"
required: []
properties:
id:
type: "number"
example: 859
eventId:
type: "number"
example: 518
name:
type: "string"
example: "John Doe"
content:
type: "string"
example: "Lorem Ipsum"
trigger:
type: "string"
example: "Lorem Ipsum"
triggerValue:
type: "string"
example: "Lorem Ipsum"
triggerValue2:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 976
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
event:
$ref: "#/components/schemas/Event"
example: null
formId:
type: "number"
example: 464
form:
$ref: "#/components/schemas/Form"
example: null
participants:
type: "array"
items:
$ref: "#/components/schemas/Participant"
example: null
description: "Email (Model)"
Event:
type: "object"
required: []
properties:
id:
type: "number"
example: 439
organizerId:
type: "number"
example: 378
name:
type: "string"
example: "John Doe"
description:
type: "string"
example: "Lorem ipsum dolor sit amet"
slug:
type: "string"
example: "Lorem Ipsum"
startDate:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
endDate:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
lat:
type: "number"
example: 41.705
long:
type: "number"
example: -87.475
primaryColor:
type: "string"
example: "Lorem Ipsum"
contactEmail:
type: "string"
example: "Lorem Ipsum"
organizer:
type: "string"
example: "Lorem Ipsum"
participantsCount:
type: "number"
example: 543
location:
type: "string"
example: "Lorem Ipsum"
isActive:
type: "boolean"
example: true
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
photoUrl:
type: "string"
example: "Lorem Ipsum"
admins:
type: "array"
items:
$ref: "#/components/schemas/Admin"
example: null
mainOrganizer:
$ref: "#/components/schemas/Admin"
example: null
permissions:
type: "array"
items:
$ref: "#/components/schemas/Permission"
example: null
participants:
type: "array"
items:
$ref: "#/components/schemas/Participant"
example: null
emails:
type: "array"
items:
$ref: "#/components/schemas/Email"
example: null
forms:
type: "array"
items:
$ref: "#/components/schemas/Form"
example: null
firstForm:
$ref: "#/components/schemas/Form"
example: null
attributes:
type: "array"
items:
$ref: "#/components/schemas/Attribute"
example: null
socialMediaLinks:
type: "array"
items:
type: "string"
example: "Lorem Ipsum"
termsLink:
type: "string"
example: "Lorem Ipsum"
description: "Event (Model)"
Form:
type: "object"
required: []
properties:
id:
type: "number"
example: 326
eventId:
type: "number"
example: 385
isOpen:
type: "boolean"
example: true
description:
type: "string"
example: "Lorem ipsum dolor sit amet"
name:
type: "string"
example: "John Doe"
isFirstForm:
type: "boolean"
example: true
slug:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 195
submissionsLeft:
type: "number"
example: 838
startDate:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
endDate:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
event:
$ref: "#/components/schemas/Event"
example: null
attributes:
type: "array"
items:
$ref: "#/components/schemas/Attribute"
example: null
description: "Form (Model)"
Participant:
type: "object"
required: []
properties:
id:
type: "number"
example: 967
email:
type: "string"
example: "johndoe@example.com"
format: "email"
eventId:
type: "number"
example: 171
slug:
type: "string"
example: "Lorem Ipsum"
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
event:
$ref: "#/components/schemas/Event"
example: null
attributes:
type: "array"
items:
$ref: "#/components/schemas/Attribute"
example: null
emails:
type: "array"
items:
$ref: "#/components/schemas/Email"
example: null
description: "Participant (Model)"
PasswordReset:
type: "object"
required: []
properties:
id:
type: "number"
example: 311
email:
type: "string"
example: "johndoe@example.com"
format: "email"
token:
type: "string"
example: "Lorem Ipsum"
used:
type: "boolean"
example: true
expiryDate:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
createdAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
updatedAt:
type: "string"
example: "2021-03-23T16:13:08.489+01:00"
format: "date-time"
description: "PasswordReset (Model)"
Permission:
type: "object"
required: []
properties:
id:
type: "number"
example: 515
action:
type: "string"
example: "Lorem Ipsum"
subject:
type: "string"
example: "Lorem Ipsum"
admins:
type: "array"
items:
$ref: "#/components/schemas/Admin"
example: null
description: "Permission (Model)"
PaginationMeta:
type: "object"
properties:
total:
type: "number"
example: 100
nullable: false
page:
type: "number"
example: 2
nullable: false
perPage:
type: "number"
example: 10
nullable: false
currentPage:
type: "number"
example: 3
nullable: false
lastPage:
type: "number"
example: 10
nullable: false
firstPage:
type: "number"
example: 1
nullable: false
lastPageUrl:
type: "string"
example: "/?page=10"
nullable: false
firstPageUrl:
type: "string"
example: "/?page=1"
nullable: false
nextPageUrl:
type: "string"
example: "/?page=6"
nullable: false
previousPageUrl:
type: "string"
example: "/?page=5"
nullable: false
createAdminValidator:
type: "object"
properties:
firstName:
type: "string"
example: "Lorem Ipsum"
required: true
lastName:
type: "string"
example: "Lorem Ipsum"
required: true
password:
type: "string"
example: "Lorem Ipsum"
required: true
email:
type: "string"
example: "Lorem Ipsum"
required: true
type:
type: "number"
example: 705
choices:
- "organizer"
- "superadmin"
active:
type: "boolean"
example: true
permissions:
type: "array"
items:
type: "object"
properties:
permissionId:
type: "number"
example: 928
required: true
eventId:
type: "number"
example: 729
required: true
example:
firstName: "Lorem Ipsum"
lastName: "Lorem Ipsum"
password: "Lorem Ipsum"
email: "Lorem Ipsum"
type: 705
active: true
permissions:
- permissionId: 928
eventId: 729
description: "createAdminValidator (Validator)"
updateAdminValidator:
type: "object"
properties:
firstName:
type: "string"
example: "Lorem Ipsum"
required: true
lastName:
type: "string"
example: "Lorem Ipsum"
required: true
password:
type: "string"
example: "Lorem Ipsum"
required: true
email:
type: "string"
example: "Lorem Ipsum"
required: true
type:
type: "number"
example: 762
choices:
- "organizer"
- "superadmin"
active:
type: "boolean"
example: true
permissions:
type: "array"
items:
type: "object"
properties:
permissionId:
type: "number"
example: 751
required: true
eventId:
type: "number"
example: 286
required: true
example:
firstName: "Lorem Ipsum"
lastName: "Lorem Ipsum"
password: "Lorem Ipsum"
email: "Lorem Ipsum"
type: 762
active: true
permissions:
- permissionId: 751
eventId: 286
description: "updateAdminValidator (Validator)"
createAttributeValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
required: true
slug:
type: "string"
example: "Lorem Ipsum"
type:
type: "number"
example: 433
choices:
- "text"
- "textarea"
- "number"
- "file"
- "select"
- "block"
- "date"
- "time"
- "datetime"
- "multiselect"
- "email"
- "tel"
- "color"
- "checkbox"
- "drawing"
required: true
options:
type: "array"
items:
type: "number"
example: 1
minimum: 1
properties:
items:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 163
showInList:
type: "boolean"
example: true
isSensitiveData:
type: "boolean"
example: true
reason:
type: "string"
example: "Lorem Ipsum"
example:
name: "Lorem Ipsum"
slug: "Lorem Ipsum"
type: 433
options:
- "Lorem Ipsum"
order: 163
showInList: true
isSensitiveData: true
reason: "Lorem Ipsum"
description: "createAttributeValidator (Validator)"
updateAttributeValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
slug:
type: "string"
example: "Lorem Ipsum"
type:
type: "number"
example: 57
choices:
- "text"
- "textarea"
- "number"
- "file"
- "select"
- "multiselect"
- "block"
- "date"
- "time"
- "datetime"
- "email"
- "tel"
- "color"
- "checkbox"
- "drawing"
options:
type: "array"
items:
type: "number"
example: 1
minimum: 1
properties:
items:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 111
showInList:
type: "boolean"
example: true
isSensitiveData:
type: "boolean"
example: true
reason:
type: "string"
example: "Lorem Ipsum"
example:
name: "Lorem Ipsum"
slug: "Lorem Ipsum"
type: 57
options:
- "Lorem Ipsum"
order: 111
showInList: true
isSensitiveData: true
reason: "Lorem Ipsum"
description: "updateAttributeValidator (Validator)"
loginValidator:
type: "object"
properties:
email:
type: "string"
example: "Lorem Ipsum"
required: true
password:
type: "string"
example: "Lorem Ipsum"
required: true
rememberMe:
type: "boolean"
example: true
example:
email: "Lorem Ipsum"
password: "Lorem Ipsum"
rememberMe: true
description: "loginValidator (Validator)"
registerAdminValidator:
type: "object"
properties:
email:
type: "string"
example: "Lorem Ipsum"
required: true
password:
type: "string"
example: "Lorem Ipsum"
required: true
minLength: 8
firstName:
type: "string"
example: "Lorem Ipsum"
required: true
lastName:
type: "string"
example: "Lorem Ipsum"
required: true
example:
email: "Lorem Ipsum"
password: "Lorem Ipsum"
firstName: "Lorem Ipsum"
lastName: "Lorem Ipsum"
description: "registerAdminValidator (Validator)"
resetPasswordValidator:
type: "object"
properties:
token:
type: "string"
example: "Lorem Ipsum"
required: true
newPassword:
type: "string"
example: "Lorem Ipsum"
required: true
minLength: 8
example:
token: "Lorem Ipsum"
newPassword: "Lorem Ipsum"
description: "resetPasswordValidator (Validator)"
sendPasswordResetTokenValidator:
type: "object"
properties:
email:
type: "string"
example: "Lorem Ipsum"
required: true
example:
email: "Lorem Ipsum"
description: "sendPasswordResetTokenValidator (Validator)"
createBlockValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
required: true
parentId:
type: "number"
example: 319
required: true
description:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 221
capacity:
type: "number"
example: 1
minimum: 1
example:
name: "Lorem Ipsum"
parentId: 319
description: "Lorem Ipsum"
order: 221
capacity: 1
description: "createBlockValidator (Validator)"
updateBlockValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
parentId:
type: "number"
example: 453
description:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 54
capacity:
type: "number"
example: 1
minimum: 1
example:
name: "Lorem Ipsum"
parentId: 453
description: "Lorem Ipsum"
order: 54
capacity: 1
description: "updateBlockValidator (Validator)"
emailDuplicateValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
required: true
example:
name: "Lorem Ipsum"
description: "emailDuplicateValidator (Validator)"
emailsSendValidator:
type: "object"
properties:
participants:
type: "array"
items:
type: "number"
example: 333
required: true
example:
participants:
- 333
description: "emailsSendValidator (Validator)"
emailsStoreValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
required: true
content:
type: "string"
example: "Lorem Ipsum"
required: true
order:
type: "number"
example: 949
trigger:
type: "number"
example: 934
choices:
- "participant_registered"
- "participant_deleted"
- "form_filled"
- "attribute_changed"
- "manual"
required: true
triggerValue:
type: "string"
example: "Lorem Ipsum"
triggerValue2:
type: "string"
example: "Lorem Ipsum"
formId:
type: "number"
example: 254
example:
name: "Lorem Ipsum"
content: "Lorem Ipsum"
order: 949
trigger: 934
triggerValue: "Lorem Ipsum"
triggerValue2: "Lorem Ipsum"
formId: 254
description: "emailsStoreValidator (Validator)"
emailsUpdateValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
content:
type: "string"
example: "Lorem Ipsum"
order:
type: "number"
example: 449
trigger:
type: "number"
example: 357
choices:
- "participant_registered"
- "participant_deleted"
- "form_filled"
- "attribute_changed"
- "manual"
triggerValue:
type: "string"
example: "Lorem Ipsum"
triggerValue2:
type: "string"
example: "Lorem Ipsum"
formId:
type: "number"
example: 68
example:
name: "Lorem Ipsum"
content: "Lorem Ipsum"
order: 449
trigger: 357
triggerValue: "Lorem Ipsum"
triggerValue2: "Lorem Ipsum"
formId: 68
description: "emailsUpdateValidator (Validator)"
createEventValidator:
type: "object"
properties:
name:
type: "string"
example: "Lorem Ipsum"
required: true