Skip to content

Commit 03a72ed

Browse files
authored
Name all list responses (#367)
1 parent eacbd81 commit 03a72ed

File tree

1 file changed

+157
-143
lines changed

1 file changed

+157
-143
lines changed

swagger.yaml

Lines changed: 157 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,7 @@ paths:
2626
content:
2727
application/json:
2828
schema:
29-
type: object
30-
required:
31-
- pagination
32-
- data
33-
properties:
34-
pagination:
35-
$ref: '#/components/schemas/pagination'
36-
data:
37-
type: array
38-
items:
39-
$ref: '#/components/schemas/project_GET'
29+
$ref: '#/components/schemas/projects_GET'
4030
example:
4131
{
4232
"pagination": {
@@ -234,17 +224,7 @@ paths:
234224
content:
235225
application/json:
236226
schema:
237-
type: object
238-
required:
239-
- pagination
240-
- data
241-
properties:
242-
pagination:
243-
$ref: '#/components/schemas/pagination'
244-
data:
245-
type: array
246-
items:
247-
$ref: '#/components/schemas/topic_GET'
227+
$ref: '#/components/schemas/topics_GET'
248228
example:
249229
{
250230
"pagination": {
@@ -436,17 +416,7 @@ paths:
436416
content:
437417
application/json:
438418
schema:
439-
type: object
440-
required:
441-
- pagination
442-
- data
443-
properties:
444-
pagination:
445-
$ref: '#/components/schemas/pagination'
446-
data:
447-
type: array
448-
items:
449-
$ref: "#/components/schemas/project_files_information_GET"
419+
$ref: "#/components/schemas/project_files_informations_GET"
450420
example:
451421
{
452422
"pagination": {
@@ -503,17 +473,7 @@ paths:
503473
content:
504474
application/json:
505475
schema:
506-
type: object
507-
required:
508-
- pagination
509-
- data
510-
properties:
511-
pagination:
512-
$ref: '#/components/schemas/pagination'
513-
data:
514-
type: array
515-
items:
516-
$ref: "#/components/schemas/file_GET"
476+
$ref: "#/components/schemas/files_GET"
517477
example:
518478
{
519479
"pagination": {
@@ -616,17 +576,7 @@ paths:
616576
content:
617577
application/json:
618578
schema:
619-
type: object
620-
required:
621-
- pagination
622-
- data
623-
properties:
624-
pagination:
625-
$ref: '#/components/schemas/pagination'
626-
data:
627-
type: array
628-
items:
629-
$ref: "#/components/schemas/comment_GET"
579+
$ref: "#/components/schemas/comments_GET"
630580
example:
631581
{
632582
"pagination": {
@@ -771,17 +721,7 @@ paths:
771721
content:
772722
application/json:
773723
schema:
774-
type: object
775-
required:
776-
- pagination
777-
- data
778-
properties:
779-
pagination:
780-
$ref: '#/components/schemas/pagination'
781-
data:
782-
type: array
783-
items:
784-
$ref: "#/components/schemas/viewpoint_GET"
724+
$ref: "#/components/schemas/viewpoints_GET"
785725
example:
786726
{
787727
"pagination": {
@@ -1361,17 +1301,7 @@ paths:
13611301
content:
13621302
application/json:
13631303
schema:
1364-
type: object
1365-
required:
1366-
- pagination
1367-
- data
1368-
properties:
1369-
pagination:
1370-
$ref: '#/components/schemas/pagination'
1371-
data:
1372-
type: array
1373-
items:
1374-
$ref: "#/components/schemas/related_topic_GET"
1304+
$ref: "#/components/schemas/related_topics_GET"
13751305
example:
13761306
{
13771307
"pagination": {
@@ -1447,17 +1377,7 @@ paths:
14471377
content:
14481378
application/json:
14491379
schema:
1450-
type: object
1451-
required:
1452-
- pagination
1453-
- data
1454-
properties:
1455-
pagination:
1456-
$ref: '#/components/schemas/pagination'
1457-
data:
1458-
type: array
1459-
items:
1460-
$ref: "#/components/schemas/document_reference_GET"
1380+
$ref: "#/components/schemas/document_references_GET"
14611381
example:
14621382
{
14631383
"pagination": {
@@ -1569,17 +1489,7 @@ paths:
15691489
content:
15701490
application/json:
15711491
schema:
1572-
type: object
1573-
required:
1574-
- pagination
1575-
- data
1576-
properties:
1577-
pagination:
1578-
$ref: '#/components/schemas/pagination'
1579-
data:
1580-
type: array
1581-
items:
1582-
$ref: "#/components/schemas/document_GET"
1492+
$ref: "#/components/schemas/documents_GET"
15831493
example:
15841494
{
15851495
"pagination": {
@@ -1685,17 +1595,7 @@ paths:
16851595
content:
16861596
application/json:
16871597
schema:
1688-
type: object
1689-
required:
1690-
- pagination
1691-
- data
1692-
properties:
1693-
pagination:
1694-
$ref: '#/components/schemas/pagination'
1695-
data:
1696-
type: array
1697-
items:
1698-
$ref: "#/components/schemas/topic_event_GET"
1598+
$ref: "#/components/schemas/topic_events_GET"
16991599
example:
17001600
{
17011601
"pagination": {
@@ -1770,17 +1670,7 @@ paths:
17701670
content:
17711671
application/json:
17721672
schema:
1773-
type: object
1774-
required:
1775-
- pagination
1776-
- data
1777-
properties:
1778-
pagination:
1779-
$ref: '#/components/schemas/pagination'
1780-
data:
1781-
type: array
1782-
items:
1783-
$ref: "#/components/schemas/topic_event_GET"
1673+
$ref: "#/components/schemas/topic_events_GET"
17841674
example:
17851675
{
17861676
"pagination": {
@@ -1856,17 +1746,7 @@ paths:
18561746
content:
18571747
application/json:
18581748
schema:
1859-
type: object
1860-
required:
1861-
- pagination
1862-
- data
1863-
properties:
1864-
pagination:
1865-
$ref: '#/components/schemas/pagination'
1866-
data:
1867-
type: array
1868-
items:
1869-
$ref: "#/components/schemas/comment_event_GET"
1749+
$ref: "#/components/schemas/comment_events_GET"
18701750
example:
18711751
{
18721752
"pagination": {
@@ -1944,17 +1824,7 @@ paths:
19441824
content:
19451825
application/json:
19461826
schema:
1947-
type: object
1948-
required:
1949-
- pagination
1950-
- data
1951-
properties:
1952-
pagination:
1953-
$ref: '#/components/schemas/pagination'
1954-
data:
1955-
type: array
1956-
items:
1957-
$ref: "#/components/schemas/comment_event_GET"
1827+
$ref: "#/components/schemas/comment_events_GET"
19581828
example:
19591829
{
19601830
"pagination": {
@@ -3038,6 +2908,150 @@ components:
30382908
type: string
30392909
email:
30402910
type: string
2911+
2912+
topics_GET:
2913+
type: object
2914+
required:
2915+
- pagination
2916+
- data
2917+
properties:
2918+
pagination:
2919+
$ref: '#/components/schemas/pagination'
2920+
data:
2921+
type: array
2922+
items:
2923+
$ref: '#/components/schemas/topic_GET'
2924+
2925+
projects_GET:
2926+
type: object
2927+
required:
2928+
- pagination
2929+
- data
2930+
properties:
2931+
pagination:
2932+
$ref: '#/components/schemas/pagination'
2933+
data:
2934+
type: array
2935+
items:
2936+
$ref: '#/components/schemas/project_GET'
2937+
2938+
project_files_informations_GET:
2939+
type: object
2940+
required:
2941+
- pagination
2942+
- data
2943+
properties:
2944+
pagination:
2945+
$ref: '#/components/schemas/pagination'
2946+
data:
2947+
type: array
2948+
items:
2949+
$ref: "#/components/schemas/project_files_information_GET"
2950+
2951+
files_GET:
2952+
type: object
2953+
required:
2954+
- pagination
2955+
- data
2956+
properties:
2957+
pagination:
2958+
$ref: '#/components/schemas/pagination'
2959+
data:
2960+
type: array
2961+
items:
2962+
$ref: "#/components/schemas/file_GET"
2963+
2964+
comments_GET:
2965+
type: object
2966+
required:
2967+
- pagination
2968+
- data
2969+
properties:
2970+
pagination:
2971+
$ref: '#/components/schemas/pagination'
2972+
data:
2973+
type: array
2974+
items:
2975+
$ref: "#/components/schemas/comment_GET"
2976+
2977+
viewpoints_GET:
2978+
type: object
2979+
required:
2980+
- pagination
2981+
- data
2982+
properties:
2983+
pagination:
2984+
$ref: '#/components/schemas/pagination'
2985+
data:
2986+
type: array
2987+
items:
2988+
$ref: "#/components/schemas/viewpoint_GET"
2989+
2990+
related_topics_GET:
2991+
type: object
2992+
required:
2993+
- pagination
2994+
- data
2995+
properties:
2996+
pagination:
2997+
$ref: '#/components/schemas/pagination'
2998+
data:
2999+
type: array
3000+
items:
3001+
$ref: "#/components/schemas/related_topic_GET"
3002+
3003+
document_references_GET:
3004+
type: object
3005+
required:
3006+
- pagination
3007+
- data
3008+
properties:
3009+
pagination:
3010+
$ref: '#/components/schemas/pagination'
3011+
data:
3012+
type: array
3013+
items:
3014+
$ref: "#/components/schemas/document_reference_GET"
3015+
3016+
documents_GET:
3017+
type: object
3018+
required:
3019+
- pagination
3020+
- data
3021+
properties:
3022+
pagination:
3023+
$ref: '#/components/schemas/pagination'
3024+
data:
3025+
type: array
3026+
items:
3027+
$ref: "#/components/schemas/document_GET"
3028+
3029+
topic_events_GET:
3030+
type: object
3031+
required:
3032+
- pagination
3033+
- data
3034+
properties:
3035+
pagination:
3036+
$ref: '#/components/schemas/pagination'
3037+
data:
3038+
type: array
3039+
items:
3040+
$ref: "#/components/schemas/topic_event_GET"
3041+
3042+
comment_events_GET:
3043+
type: object
3044+
required:
3045+
- pagination
3046+
- data
3047+
properties:
3048+
pagination:
3049+
$ref: '#/components/schemas/pagination'
3050+
data:
3051+
type: array
3052+
items:
3053+
$ref: "#/components/schemas/comment_event_GET"
3054+
30413055
parameters:
30423056
version:
30433057
in: path

0 commit comments

Comments
 (0)