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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "FakeRESTApi.Web V1",
5
+ "version": "v1"
6
+ },
7
+ "paths": {
8
+ "/api/v1/Activities": {
9
+ "get": {
10
+ "tags": [
11
+ "Activities"
12
+ ],
13
+ "responses": {
14
+ "200": {
15
+ "description": "Success",
16
+ "content": {
17
+ "text/plain; v=1.0": {
18
+ "schema": {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "#/components/schemas/Activity"
22
+ }
23
+ }
24
+ },
25
+ "application/json; v=1.0": {
26
+ "schema": {
27
+ "type": "array",
28
+ "items": {
29
+ "$ref": "#/components/schemas/Activity"
30
+ }
31
+ }
32
+ },
33
+ "text/json; v=1.0": {
34
+ "schema": {
35
+ "type": "array",
36
+ "items": {
37
+ "$ref": "#/components/schemas/Activity"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ },
45
+ "post": {
46
+ "tags": [
47
+ "Activities"
48
+ ],
49
+ "requestBody": {
50
+ "content": {
51
+ "application/json; v=1.0": {
52
+ "schema": {
53
+ "$ref": "#/components/schemas/Activity"
54
+ }
55
+ },
56
+ "text/json; v=1.0": {
57
+ "schema": {
58
+ "$ref": "#/components/schemas/Activity"
59
+ }
60
+ },
61
+ "application/*+json; v=1.0": {
62
+ "schema": {
63
+ "$ref": "#/components/schemas/Activity"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "responses": {
69
+ "200": {
70
+ "description": "Success",
71
+ "content": {
72
+ "text/plain; v=1.0": {
73
+ "schema": {
74
+ "$ref": "#/components/schemas/Activity"
75
+ }
76
+ },
77
+ "application/json; v=1.0": {
78
+ "schema": {
79
+ "$ref": "#/components/schemas/Activity"
80
+ }
81
+ },
82
+ "text/json; v=1.0": {
83
+ "schema": {
84
+ "$ref": "#/components/schemas/Activity"
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "/api/v1/Activities/{id}": {
93
+ "get": {
94
+ "tags": [
95
+ "Activities"
96
+ ],
97
+ "parameters": [
98
+ {
99
+ "name": "id",
100
+ "in": "path",
101
+ "required": true,
102
+ "schema": {
103
+ "type": "integer",
104
+ "format": "int32"
105
+ }
106
+ }
107
+ ],
108
+ "responses": {
109
+ "200": {
110
+ "description": "Success",
111
+ "content": {
112
+ "text/plain; v=1.0": {
113
+ "schema": {
114
+ "$ref": "#/components/schemas/Activity"
115
+ }
116
+ },
117
+ "application/json; v=1.0": {
118
+ "schema": {
119
+ "$ref": "#/components/schemas/Activity"
120
+ }
121
+ },
122
+ "text/json; v=1.0": {
123
+ "schema": {
124
+ "$ref": "#/components/schemas/Activity"
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ },
131
+ "put": {
132
+ "tags": [
133
+ "Activities"
134
+ ],
135
+ "parameters": [
136
+ {
137
+ "name": "id",
138
+ "in": "path",
139
+ "required": true,
140
+ "schema": {
141
+ "type": "integer",
142
+ "format": "int32"
143
+ }
144
+ }
145
+ ],
146
+ "requestBody": {
147
+ "content": {
148
+ "application/json; v=1.0": {
149
+ "schema": {
150
+ "$ref": "#/components/schemas/Activity"
151
+ }
152
+ },
153
+ "text/json; v=1.0": {
154
+ "schema": {
155
+ "$ref": "#/components/schemas/Activity"
156
+ }
157
+ },
158
+ "application/*+json; v=1.0": {
159
+ "schema": {
160
+ "$ref": "#/components/schemas/Activity"
161
+ }
162
+ }
163
+ }
164
+ },
165
+ "responses": {
166
+ "200": {
167
+ "description": "Success",
168
+ "content": {
169
+ "text/plain; v=1.0": {
170
+ "schema": {
171
+ "$ref": "#/components/schemas/Activity"
172
+ }
173
+ },
174
+ "application/json; v=1.0": {
175
+ "schema": {
176
+ "$ref": "#/components/schemas/Activity"
177
+ }
178
+ },
179
+ "text/json; v=1.0": {
180
+ "schema": {
181
+ "$ref": "#/components/schemas/Activity"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "delete": {
189
+ "tags": [
190
+ "Activities"
191
+ ],
192
+ "parameters": [
193
+ {
194
+ "name": "id",
195
+ "in": "path",
196
+ "required": true,
197
+ "schema": {
198
+ "type": "integer",
199
+ "format": "int32"
200
+ }
201
+ }
202
+ ],
203
+ "responses": {
204
+ "200": {
205
+ "description": "Success"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "/api/v1/Authors": {
211
+ "get": {
212
+ "tags": [
213
+ "Authors"
214
+ ],
215
+ "responses": {
216
+ "200": {
217
+ "description": "Success",
218
+ "content": {
219
+ "text/plain; v=1.0": {
220
+ "schema": {
221
+ "type": "array",
222
+ "items": {
223
+ "$ref": "#/components/schemas/Author"
224
+ }
225
+ }
226
+ },
227
+ "application/json; v=1.0": {
228
+ "schema": {
229
+ "type": "array",
230
+ "items": {
231
+ "$ref": "#/components/schemas/Author"
232
+ }
233
+ }
234
+ },
235
+ "text/json; v=1.0": {
236
+ "schema": {
237
+ "type": "array",
238
+ "items": {
239
+ "$ref": "#/components/schemas/Author"
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "post": {
248
+ "tags": [
249
+ "Authors"
250
+ ],
251
+ "requestBody": {
252
+ "content": {
253
+ "application/json; v=1.0": {
254
+ "schema": {
255
+ "$ref": "#/components/schemas/Author"
256
+ }
257
+ },
258
+ "text/json; v=1.0": {
259
+ "schema": {
260
+ "$ref": "#/components/schemas/Author"
261
+ }
262
+ },
263
+ "application/*+json; v=1.0": {
264
+ "schema": {
265
+ "$ref": "#/components/schemas/Author"
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "responses": {
271
+ "200": {
272
+ "description": "Success",
273
+ "content": {
274
+ "text/plain; v=1.0": {
275
+ "schema": {
276
+ "$ref": "#/components/schemas/Author"
277
+ }
278
+ },
279
+ "application/json; v=1.0": {
280
+ "schema": {
281
+ "$ref": "#/components/schemas/Author"
282
+ }
283
+ },
284
+ "text/json; v=1.0": {
285
+ "schema": {
286
+ "$ref": "#/components/schemas/Author"
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
293
+ },
294
+ "/api/v1/Authors/authors/books/{idBook}": {
295
+ "get": {
296
+ "tags": [
297
+ "Authors"
298
+ ],
299
+ "parameters": [
300
+ {
301
+ "name": "idBook",
302
+ "in": "path",
303
+ "required": true,
304
+ "schema": {
305
+ "type": "integer",
306
+ "format": "int32"
307
+ }
308
+ }
309
+ ],
310
+ "responses": {
311
+ "200": {
312
+ "description": "Success",
313
+ "content": {
314
+ "text/plain; v=1.0": {
315
+ "schema": {
316
+ "type": "array",
317
+ "items": {
318
+ "$ref": "#/components/schemas/Author"
319
+ }
320
+ }
321
+ },
322
+ "application/json; v=1.0": {
323
+ "schema": {
324
+ "type": "array",
325
+ "items": {
326
+ "$ref": "#/components/schemas/Author"
327
+ }
328
+ }
329
+ },
330
+ "text/json; v=1.0": {
331
+ "schema": {
332
+ "type": "array",
333
+ "items": {
334
+ "$ref": "#/components/schemas/Author"
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ }
342
+ },
343
+ "/api/v1/Authors/{id}": {
344
+ "get": {
345
+ "tags": [
346
+ "Authors"
347
+ ],
348
+ "parameters": [
349
+ {
350
+ "name": "id",
351
+ "in": "path",
352
+ "required": true,
353
+ "schema": {
354
+ "type": "integer",
355
+ "format": "int32"
356
+ }
357
+ }
358
+ ],
359
+ "responses": {
360
+ "200": {
361
+ "description": "Success",
362
+ "content": {
363
+ "text/plain; v=1.0": {
364
+ "schema": {
365
+ "$ref": "#/components/schemas/Author"
366
+ }
367
+ },
368
+ "application/json; v=1.0": {
369
+ "schema": {
370
+ "$ref": "#/components/schemas/Author"
371
+ }
372
+ },
373
+ "text/json; v=1.0": {
374
+ "schema": {
375
+ "$ref": "#/components/schemas/Author"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+ },
382
+ "put": {
383
+ "tags": [
384
+ "Authors"
385
+ ],
386
+ "parameters": [
387
+ {
388
+ "name": "id",
389
+ "in": "path",
390
+ "required": true,
391
+ "schema": {
392
+ "type": "integer",
393
+ "format": "int32"
394
+ }
395
+ }
396
+ ],
397
+ "requestBody": {
398
+ "content": {
399
+ "application/json; v=1.0": {
400
+ "schema": {
401
+ "$ref": "#/components/schemas/Author"
402
+ }
403
+ },
404
+ "text/json; v=1.0": {
405
+ "schema": {
406
+ "$ref": "#/components/schemas/Author"
407
+ }
408
+ },
409
+ "application/*+json; v=1.0": {
410
+ "schema": {
411
+ "$ref": "#/components/schemas/Author"
412
+ }
413
+ }
414
+ }
415
+ },
416
+ "responses": {
417
+ "200": {
418
+ "description": "Success",
419
+ "content": {
420
+ "text/plain; v=1.0": {
421
+ "schema": {
422
+ "$ref": "#/components/schemas/Author"
423
+ }
424
+ },
425
+ "application/json; v=1.0": {
426
+ "schema": {
427
+ "$ref": "#/components/schemas/Author"
428
+ }
429
+ },
430
+ "text/json; v=1.0": {
431
+ "schema": {
432
+ "$ref": "#/components/schemas/Author"
433
+ }
434
+ }
435
+ }
436
+ }
437
+ }
438
+ },
439
+ "delete": {
440
+ "tags": [
441
+ "Authors"
442
+ ],
443
+ "parameters": [
444
+ {
445
+ "name": "id",
446
+ "in": "path",
447
+ "required": true,
448
+ "schema": {
449
+ "type": "integer",
450
+ "format": "int32"
451
+ }
452
+ }
453
+ ],
454
+ "responses": {
455
+ "200": {
456
+ "description": "Success"
457
+ }
458
+ }
459
+ }
460
+ },
461
+ "/api/v1/Books": {
462
+ "get": {
463
+ "tags": [
464
+ "Books"
465
+ ],
466
+ "responses": {
467
+ "200": {
468
+ "description": "Success",
469
+ "content": {
470
+ "text/plain; v=1.0": {
471
+ "schema": {
472
+ "type": "array",
473
+ "items": {
474
+ "$ref": "#/components/schemas/Book"
475
+ }
476
+ }
477
+ },
478
+ "application/json; v=1.0": {
479
+ "schema": {
480
+ "type": "array",
481
+ "items": {
482
+ "$ref": "#/components/schemas/Book"
483
+ }
484
+ }
485
+ },
486
+ "text/json; v=1.0": {
487
+ "schema": {
488
+ "type": "array",
489
+ "items": {
490
+ "$ref": "#/components/schemas/Book"
491
+ }
492
+ }
493
+ }
494
+ }
495
+ }
496
+ }
497
+ },
498
+ "post": {
499
+ "tags": [
500
+ "Books"
501
+ ],
502
+ "requestBody": {
503
+ "content": {
504
+ "application/json; v=1.0": {
505
+ "schema": {
506
+ "$ref": "#/components/schemas/Book"
507
+ }
508
+ },
509
+ "text/json; v=1.0": {
510
+ "schema": {
511
+ "$ref": "#/components/schemas/Book"
512
+ }
513
+ },
514
+ "application/*+json; v=1.0": {
515
+ "schema": {
516
+ "$ref": "#/components/schemas/Book"
517
+ }
518
+ }
519
+ }
520
+ },
521
+ "responses": {
522
+ "200": {
523
+ "description": "Success"
524
+ }
525
+ }
526
+ }
527
+ },
528
+ "/api/v1/Books/{id}": {
529
+ "get": {
530
+ "tags": [
531
+ "Books"
532
+ ],
533
+ "parameters": [
534
+ {
535
+ "name": "id",
536
+ "in": "path",
537
+ "required": true,
538
+ "schema": {
539
+ "type": "integer",
540
+ "format": "int32"
541
+ }
542
+ }
543
+ ],
544
+ "responses": {
545
+ "200": {
546
+ "description": "Success",
547
+ "content": {
548
+ "text/plain; v=1.0": {
549
+ "schema": {
550
+ "$ref": "#/components/schemas/Book"
551
+ }
552
+ },
553
+ "application/json; v=1.0": {
554
+ "schema": {
555
+ "$ref": "#/components/schemas/Book"
556
+ }
557
+ },
558
+ "text/json; v=1.0": {
559
+ "schema": {
560
+ "$ref": "#/components/schemas/Book"
561
+ }
562
+ }
563
+ }
564
+ }
565
+ }
566
+ },
567
+ "put": {
568
+ "tags": [
569
+ "Books"
570
+ ],
571
+ "parameters": [
572
+ {
573
+ "name": "id",
574
+ "in": "path",
575
+ "required": true,
576
+ "schema": {
577
+ "type": "integer",
578
+ "format": "int32"
579
+ }
580
+ }
581
+ ],
582
+ "requestBody": {
583
+ "content": {
584
+ "application/json; v=1.0": {
585
+ "schema": {
586
+ "$ref": "#/components/schemas/Book"
587
+ }
588
+ },
589
+ "text/json; v=1.0": {
590
+ "schema": {
591
+ "$ref": "#/components/schemas/Book"
592
+ }
593
+ },
594
+ "application/*+json; v=1.0": {
595
+ "schema": {
596
+ "$ref": "#/components/schemas/Book"
597
+ }
598
+ }
599
+ }
600
+ },
601
+ "responses": {
602
+ "200": {
603
+ "description": "Success"
604
+ }
605
+ }
606
+ },
607
+ "delete": {
608
+ "tags": [
609
+ "Books"
610
+ ],
611
+ "parameters": [
612
+ {
613
+ "name": "id",
614
+ "in": "path",
615
+ "required": true,
616
+ "schema": {
617
+ "type": "integer",
618
+ "format": "int32"
619
+ }
620
+ }
621
+ ],
622
+ "responses": {
623
+ "200": {
624
+ "description": "Success"
625
+ }
626
+ }
627
+ }
628
+ },
629
+ "/api/v1/CoverPhotos": {
630
+ "get": {
631
+ "tags": [
632
+ "CoverPhotos"
633
+ ],
634
+ "responses": {
635
+ "200": {
636
+ "description": "Success",
637
+ "content": {
638
+ "text/plain; v=1.0": {
639
+ "schema": {
640
+ "type": "array",
641
+ "items": {
642
+ "$ref": "#/components/schemas/CoverPhoto"
643
+ }
644
+ }
645
+ },
646
+ "application/json; v=1.0": {
647
+ "schema": {
648
+ "type": "array",
649
+ "items": {
650
+ "$ref": "#/components/schemas/CoverPhoto"
651
+ }
652
+ }
653
+ },
654
+ "text/json; v=1.0": {
655
+ "schema": {
656
+ "type": "array",
657
+ "items": {
658
+ "$ref": "#/components/schemas/CoverPhoto"
659
+ }
660
+ }
661
+ }
662
+ }
663
+ }
664
+ }
665
+ },
666
+ "post": {
667
+ "tags": [
668
+ "CoverPhotos"
669
+ ],
670
+ "requestBody": {
671
+ "content": {
672
+ "application/json; v=1.0": {
673
+ "schema": {
674
+ "$ref": "#/components/schemas/CoverPhoto"
675
+ }
676
+ },
677
+ "text/json; v=1.0": {
678
+ "schema": {
679
+ "$ref": "#/components/schemas/CoverPhoto"
680
+ }
681
+ },
682
+ "application/*+json; v=1.0": {
683
+ "schema": {
684
+ "$ref": "#/components/schemas/CoverPhoto"
685
+ }
686
+ }
687
+ }
688
+ },
689
+ "responses": {
690
+ "200": {
691
+ "description": "Success",
692
+ "content": {
693
+ "text/plain; v=1.0": {
694
+ "schema": {
695
+ "$ref": "#/components/schemas/CoverPhoto"
696
+ }
697
+ },
698
+ "application/json; v=1.0": {
699
+ "schema": {
700
+ "$ref": "#/components/schemas/CoverPhoto"
701
+ }
702
+ },
703
+ "text/json; v=1.0": {
704
+ "schema": {
705
+ "$ref": "#/components/schemas/CoverPhoto"
706
+ }
707
+ }
708
+ }
709
+ }
710
+ }
711
+ }
712
+ },
713
+ "/api/v1/CoverPhotos/books/covers/{idBook}": {
714
+ "get": {
715
+ "tags": [
716
+ "CoverPhotos"
717
+ ],
718
+ "parameters": [
719
+ {
720
+ "name": "idBook",
721
+ "in": "path",
722
+ "required": true,
723
+ "schema": {
724
+ "type": "integer",
725
+ "format": "int32"
726
+ }
727
+ }
728
+ ],
729
+ "responses": {
730
+ "200": {
731
+ "description": "Success",
732
+ "content": {
733
+ "text/plain; v=1.0": {
734
+ "schema": {
735
+ "type": "array",
736
+ "items": {
737
+ "$ref": "#/components/schemas/CoverPhoto"
738
+ }
739
+ }
740
+ },
741
+ "application/json; v=1.0": {
742
+ "schema": {
743
+ "type": "array",
744
+ "items": {
745
+ "$ref": "#/components/schemas/CoverPhoto"
746
+ }
747
+ }
748
+ },
749
+ "text/json; v=1.0": {
750
+ "schema": {
751
+ "type": "array",
752
+ "items": {
753
+ "$ref": "#/components/schemas/CoverPhoto"
754
+ }
755
+ }
756
+ }
757
+ }
758
+ }
759
+ }
760
+ }
761
+ },
762
+ "/api/v1/CoverPhotos/{id}": {
763
+ "get": {
764
+ "tags": [
765
+ "CoverPhotos"
766
+ ],
767
+ "parameters": [
768
+ {
769
+ "name": "id",
770
+ "in": "path",
771
+ "required": true,
772
+ "schema": {
773
+ "type": "integer",
774
+ "format": "int32"
775
+ }
776
+ }
777
+ ],
778
+ "responses": {
779
+ "200": {
780
+ "description": "Success",
781
+ "content": {
782
+ "text/plain; v=1.0": {
783
+ "schema": {
784
+ "$ref": "#/components/schemas/CoverPhoto"
785
+ }
786
+ },
787
+ "application/json; v=1.0": {
788
+ "schema": {
789
+ "$ref": "#/components/schemas/CoverPhoto"
790
+ }
791
+ },
792
+ "text/json; v=1.0": {
793
+ "schema": {
794
+ "$ref": "#/components/schemas/CoverPhoto"
795
+ }
796
+ }
797
+ }
798
+ }
799
+ }
800
+ },
801
+ "put": {
802
+ "tags": [
803
+ "CoverPhotos"
804
+ ],
805
+ "parameters": [
806
+ {
807
+ "name": "id",
808
+ "in": "path",
809
+ "required": true,
810
+ "schema": {
811
+ "type": "integer",
812
+ "format": "int32"
813
+ }
814
+ }
815
+ ],
816
+ "requestBody": {
817
+ "content": {
818
+ "application/json; v=1.0": {
819
+ "schema": {
820
+ "$ref": "#/components/schemas/CoverPhoto"
821
+ }
822
+ },
823
+ "text/json; v=1.0": {
824
+ "schema": {
825
+ "$ref": "#/components/schemas/CoverPhoto"
826
+ }
827
+ },
828
+ "application/*+json; v=1.0": {
829
+ "schema": {
830
+ "$ref": "#/components/schemas/CoverPhoto"
831
+ }
832
+ }
833
+ }
834
+ },
835
+ "responses": {
836
+ "200": {
837
+ "description": "Success",
838
+ "content": {
839
+ "text/plain; v=1.0": {
840
+ "schema": {
841
+ "$ref": "#/components/schemas/CoverPhoto"
842
+ }
843
+ },
844
+ "application/json; v=1.0": {
845
+ "schema": {
846
+ "$ref": "#/components/schemas/CoverPhoto"
847
+ }
848
+ },
849
+ "text/json; v=1.0": {
850
+ "schema": {
851
+ "$ref": "#/components/schemas/CoverPhoto"
852
+ }
853
+ }
854
+ }
855
+ }
856
+ }
857
+ },
858
+ "delete": {
859
+ "tags": [
860
+ "CoverPhotos"
861
+ ],
862
+ "parameters": [
863
+ {
864
+ "name": "id",
865
+ "in": "path",
866
+ "required": true,
867
+ "schema": {
868
+ "type": "integer",
869
+ "format": "int32"
870
+ }
871
+ }
872
+ ],
873
+ "responses": {
874
+ "200": {
875
+ "description": "Success"
876
+ }
877
+ }
878
+ }
879
+ },
880
+ "/api/v1/Users": {
881
+ "get": {
882
+ "tags": [
883
+ "Users"
884
+ ],
885
+ "responses": {
886
+ "200": {
887
+ "description": "Success",
888
+ "content": {
889
+ "text/plain; v=1.0": {
890
+ "schema": {
891
+ "type": "array",
892
+ "items": {
893
+ "$ref": "#/components/schemas/User"
894
+ }
895
+ }
896
+ },
897
+ "application/json; v=1.0": {
898
+ "schema": {
899
+ "type": "array",
900
+ "items": {
901
+ "$ref": "#/components/schemas/User"
902
+ }
903
+ }
904
+ },
905
+ "text/json; v=1.0": {
906
+ "schema": {
907
+ "type": "array",
908
+ "items": {
909
+ "$ref": "#/components/schemas/User"
910
+ }
911
+ }
912
+ }
913
+ }
914
+ }
915
+ }
916
+ },
917
+ "post": {
918
+ "tags": [
919
+ "Users"
920
+ ],
921
+ "requestBody": {
922
+ "content": {
923
+ "application/json; v=1.0": {
924
+ "schema": {
925
+ "$ref": "#/components/schemas/User"
926
+ }
927
+ },
928
+ "text/json; v=1.0": {
929
+ "schema": {
930
+ "$ref": "#/components/schemas/User"
931
+ }
932
+ },
933
+ "application/*+json; v=1.0": {
934
+ "schema": {
935
+ "$ref": "#/components/schemas/User"
936
+ }
937
+ }
938
+ }
939
+ },
940
+ "responses": {
941
+ "200": {
942
+ "description": "Success"
943
+ }
944
+ }
945
+ }
946
+ },
947
+ "/api/v1/Users/{id}": {
948
+ "get": {
949
+ "tags": [
950
+ "Users"
951
+ ],
952
+ "parameters": [
953
+ {
954
+ "name": "id",
955
+ "in": "path",
956
+ "required": true,
957
+ "schema": {
958
+ "type": "integer",
959
+ "format": "int32"
960
+ }
961
+ }
962
+ ],
963
+ "responses": {
964
+ "200": {
965
+ "description": "Success"
966
+ }
967
+ }
968
+ },
969
+ "put": {
970
+ "tags": [
971
+ "Users"
972
+ ],
973
+ "parameters": [
974
+ {
975
+ "name": "id",
976
+ "in": "path",
977
+ "required": true,
978
+ "schema": {
979
+ "type": "integer",
980
+ "format": "int32"
981
+ }
982
+ }
983
+ ],
984
+ "requestBody": {
985
+ "content": {
986
+ "application/json; v=1.0": {
987
+ "schema": {
988
+ "$ref": "#/components/schemas/User"
989
+ }
990
+ },
991
+ "text/json; v=1.0": {
992
+ "schema": {
993
+ "$ref": "#/components/schemas/User"
994
+ }
995
+ },
996
+ "application/*+json; v=1.0": {
997
+ "schema": {
998
+ "$ref": "#/components/schemas/User"
999
+ }
1000
+ }
1001
+ }
1002
+ },
1003
+ "responses": {
1004
+ "200": {
1005
+ "description": "Success"
1006
+ }
1007
+ }
1008
+ },
1009
+ "delete": {
1010
+ "tags": [
1011
+ "Users"
1012
+ ],
1013
+ "parameters": [
1014
+ {
1015
+ "name": "id",
1016
+ "in": "path",
1017
+ "required": true,
1018
+ "schema": {
1019
+ "type": "integer",
1020
+ "format": "int32"
1021
+ }
1022
+ }
1023
+ ],
1024
+ "responses": {
1025
+ "200": {
1026
+ "description": "Success"
1027
+ }
1028
+ }
1029
+ }
1030
+ }
1031
+ },
1032
+ "components": {
1033
+ "schemas": {
1034
+ "Activity": {
1035
+ "type": "object",
1036
+ "properties": {
1037
+ "id": {
1038
+ "type": "integer",
1039
+ "format": "int32"
1040
+ },
1041
+ "title": {
1042
+ "type": "string",
1043
+ "nullable": true
1044
+ },
1045
+ "dueDate": {
1046
+ "type": "string",
1047
+ "format": "date-time"
1048
+ },
1049
+ "completed": {
1050
+ "type": "boolean"
1051
+ }
1052
+ },
1053
+ "additionalProperties": false
1054
+ },
1055
+ "Author": {
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "id": {
1059
+ "type": "integer",
1060
+ "format": "int32"
1061
+ },
1062
+ "idBook": {
1063
+ "type": "integer",
1064
+ "format": "int32"
1065
+ },
1066
+ "firstName": {
1067
+ "type": "string",
1068
+ "nullable": true
1069
+ },
1070
+ "lastName": {
1071
+ "type": "string",
1072
+ "nullable": true
1073
+ }
1074
+ },
1075
+ "additionalProperties": false
1076
+ },
1077
+ "Book": {
1078
+ "type": "object",
1079
+ "properties": {
1080
+ "id": {
1081
+ "type": "integer",
1082
+ "format": "int32"
1083
+ },
1084
+ "title": {
1085
+ "type": "string",
1086
+ "nullable": true
1087
+ },
1088
+ "description": {
1089
+ "type": "string",
1090
+ "nullable": true
1091
+ },
1092
+ "pageCount": {
1093
+ "type": "integer",
1094
+ "format": "int32"
1095
+ },
1096
+ "excerpt": {
1097
+ "type": "string",
1098
+ "nullable": true
1099
+ },
1100
+ "publishDate": {
1101
+ "type": "string",
1102
+ "format": "date-time"
1103
+ }
1104
+ },
1105
+ "additionalProperties": false
1106
+ },
1107
+ "CoverPhoto": {
1108
+ "type": "object",
1109
+ "properties": {
1110
+ "id": {
1111
+ "type": "integer",
1112
+ "format": "int32"
1113
+ },
1114
+ "idBook": {
1115
+ "type": "integer",
1116
+ "format": "int32"
1117
+ },
1118
+ "url": {
1119
+ "type": "string",
1120
+ "format": "uri",
1121
+ "nullable": true
1122
+ }
1123
+ },
1124
+ "additionalProperties": false
1125
+ },
1126
+ "User": {
1127
+ "type": "object",
1128
+ "properties": {
1129
+ "id": {
1130
+ "type": "integer",
1131
+ "format": "int32"
1132
+ },
1133
+ "userName": {
1134
+ "type": "string",
1135
+ "nullable": true
1136
+ },
1137
+ "password": {
1138
+ "type": "string",
1139
+ "nullable": true
1140
+ }
1141
+ },
1142
+ "additionalProperties": false
1143
+ }
1144
+ }
1145
+ }
1146
+ }