Skip to content

Commit ae38582

Browse files
author
github-actions
committed
Update REST API documentation Sat May 3 12:00:04 UTC 2025
1 parent 610d797 commit ae38582

File tree

1 file changed

+58
-61
lines changed

1 file changed

+58
-61
lines changed

restapi.json

+58-61
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,29 @@
516516
"schema": {
517517
"type": "string"
518518
}
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+
}
519542
}
520543
],
521544
"responses": {
@@ -524,45 +547,18 @@
524547
"content": {
525548
"application/json": {
526549
"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"
562555
}
563556
},
564-
"type": "object"
565-
}
557+
"pagination": {
558+
"$ref": "#/components/schemas/CursorPagination"
559+
}
560+
},
561+
"type": "object"
566562
}
567563
}
568564
}
@@ -636,17 +632,7 @@
636632
"content": {
637633
"application/json": {
638634
"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"
650636
}
651637
}
652638
}
@@ -708,17 +694,7 @@
708694
"content": {
709695
"application/json": {
710696
"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"
722698
}
723699
}
724700
}
@@ -2065,6 +2041,27 @@
20652041
},
20662042
"type": "object"
20672043
},
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+
},
20682065
"SubscriberList": {
20692066
"properties": {
20702067
"id": {
@@ -2079,7 +2076,7 @@
20792076
"type": "string",
20802077
"example": "Monthly updates"
20812078
},
2082-
"creation_date": {
2079+
"created_at": {
20832080
"type": "string",
20842081
"format": "date-time",
20852082
"example": "2022-12-01T10:00:00Z"
@@ -2101,7 +2098,7 @@
21012098
"type": "string",
21022099
"example": "subscriber@example.com"
21032100
},
2104-
"creation_date": {
2101+
"created_at": {
21052102
"type": "string",
21062103
"format": "date-time",
21072104
"example": "2023-01-01T12:00:00Z"

0 commit comments

Comments
 (0)