File tree 1 file changed +58
-61
lines changed
1 file changed +58
-61
lines changed Original file line number Diff line number Diff line change 516
516
"schema" : {
517
517
"type" : " string"
518
518
}
519
+ },
520
+ {
521
+ "name" : " after_id" ,
522
+ "in" : " query" ,
523
+ "description" : " Last id (starting from 0)" ,
524
+ "required" : false ,
525
+ "schema" : {
526
+ "type" : " integer" ,
527
+ "default" : 1 ,
528
+ "minimum" : 1
529
+ }
530
+ },
531
+ {
532
+ "name" : " limit" ,
533
+ "in" : " query" ,
534
+ "description" : " Number of results per page" ,
535
+ "required" : false ,
536
+ "schema" : {
537
+ "type" : " integer" ,
538
+ "default" : 25 ,
539
+ "maximum" : 100 ,
540
+ "minimum" : 1
541
+ }
519
542
}
520
543
],
521
544
"responses" : {
524
547
"content" : {
525
548
"application/json" : {
526
549
"schema" : {
527
- "type" : " array" ,
528
- "items" : {
529
- "properties" : {
530
- "name" : {
531
- "type" : " string" ,
532
- "example" : " News"
533
- },
534
- "description" : {
535
- "type" : " string" ,
536
- "example" : " News (and some fun stuff)"
537
- },
538
- "creation_date" : {
539
- "type" : " string" ,
540
- "format" : " date-time" ,
541
- "example" : " 2016-06-22T15:01:17+00:00"
542
- },
543
- "list_position" : {
544
- "type" : " integer" ,
545
- "example" : 12
546
- },
547
- "subject_prefix" : {
548
- "type" : " string" ,
549
- "example" : " phpList"
550
- },
551
- "public" : {
552
- "type" : " boolean" ,
553
- "example" : true
554
- },
555
- "category" : {
556
- "type" : " string" ,
557
- "example" : " news"
558
- },
559
- "id" : {
560
- "type" : " integer" ,
561
- "example" : 1
550
+ "properties" : {
551
+ "items" : {
552
+ "type" : " array" ,
553
+ "items" : {
554
+ "$ref" : " #/components/schemas/SubscriberList"
562
555
}
563
556
},
564
- "type" : " object"
565
- }
557
+ "pagination" : {
558
+ "$ref" : " #/components/schemas/CursorPagination"
559
+ }
560
+ },
561
+ "type" : " object"
566
562
}
567
563
}
568
564
}
636
632
"content" : {
637
633
"application/json" : {
638
634
"schema" : {
639
- "type" : " object"
640
- },
641
- "example" : {
642
- "name" : " News" ,
643
- "description" : " News (and some fun stuff)" ,
644
- "creation_date" : " 2016-06-22T15:01:17+00:00" ,
645
- "list_position" : 12 ,
646
- "subject_prefix" : " phpList" ,
647
- "public" : true ,
648
- "category" : " news" ,
649
- "id" : 1
635
+ "$ref" : " #/components/schemas/SubscriberList"
650
636
}
651
637
}
652
638
}
708
694
"content" : {
709
695
"application/json" : {
710
696
"schema" : {
711
- "type" : " object"
712
- },
713
- "example" : {
714
- "name" : " News" ,
715
- "description" : " News (and some fun stuff)" ,
716
- "creation_date" : " 2016-06-22T15:01:17+00:00" ,
717
- "list_position" : 12 ,
718
- "subject_prefix" : " phpList" ,
719
- "public" : true ,
720
- "category" : " news" ,
721
- "id" : 1
697
+ "$ref" : " #/components/schemas/SubscriberList"
722
698
}
723
699
}
724
700
}
2065
2041
},
2066
2042
"type" : " object"
2067
2043
},
2044
+ "CursorPagination" : {
2045
+ "properties" : {
2046
+ "total" : {
2047
+ "type" : " integer" ,
2048
+ "example" : 100
2049
+ },
2050
+ "limit" : {
2051
+ "type" : " integer" ,
2052
+ "example" : 25
2053
+ },
2054
+ "has_more" : {
2055
+ "type" : " boolean" ,
2056
+ "example" : true
2057
+ },
2058
+ "next_cursor" : {
2059
+ "type" : " integer" ,
2060
+ "example" : 129
2061
+ }
2062
+ },
2063
+ "type" : " object"
2064
+ },
2068
2065
"SubscriberList" : {
2069
2066
"properties" : {
2070
2067
"id" : {
2079
2076
"type" : " string" ,
2080
2077
"example" : " Monthly updates"
2081
2078
},
2082
- "creation_date " : {
2079
+ "created_at " : {
2083
2080
"type" : " string" ,
2084
2081
"format" : " date-time" ,
2085
2082
"example" : " 2022-12-01T10:00:00Z"
2101
2098
"type" : " string" ,
2102
2099
"example" : " subscriber@example.com"
2103
2100
},
2104
- "creation_date " : {
2101
+ "created_at " : {
2105
2102
"type" : " string" ,
2106
2103
"format" : " date-time" ,
2107
2104
"example" : " 2023-01-01T12:00:00Z"
You can’t perform that action at this time.
0 commit comments