Skip to content

Commit

Permalink
change only GET recent items endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mwwoda committed Sep 18, 2023
1 parent 574a19e commit 9bb8515
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 70 deletions.
10 changes: 6 additions & 4 deletions content/attributes/marker_pagination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ properties:
next_marker:
description: |-
The marker for the start of the next page of results.
example: JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
type: string
example: 3000
type: integer
format: int64

prev_marker:
description: |-
The marker for the start of the previous page of results.
example: JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
type: string
example: 1000
type: integer
format: int64
28 changes: 28 additions & 0 deletions content/attributes/marker_pagination_string_based.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
type: object

description: |-
The part of an API response that describes marker
based pagination
properties:
limit:
description: |-
The limit that was used for these entries. This will be the same as the
`limit` query parameter unless that value exceeded the maximum value
allowed. The maximum value varies by API.
example: 1000
type: integer
format: int64

next_marker:
description: |-
The marker for the start of the next page of results.
example: JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
type: string

prev_marker:
description: |-
The marker for the start of the previous page of results.
example: JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih
type: string
2 changes: 1 addition & 1 deletion content/responses/recent_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: |-
A list of recent items.
allOf:
- $ref: "../attributes/marker_pagination.yml"
- $ref: "../attributes/marker_pagination_string_based.yml"
- properties:
entries:
type: array
Expand Down
162 changes: 97 additions & 65 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -25742,13 +25742,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -25860,13 +25862,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -27756,13 +27760,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -28099,13 +28105,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -28205,13 +28213,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -29054,13 +29064,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -29271,13 +29283,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -29934,13 +29948,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -30099,13 +30115,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -30330,13 +30348,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -30673,13 +30693,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -30831,7 +30853,7 @@
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
"type": "string"
}
}
Expand Down Expand Up @@ -32110,13 +32132,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -32222,13 +32246,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -35375,13 +35401,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -36121,13 +36149,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -36407,13 +36437,15 @@
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 3000,
"type": "integer",
"format": "int64"
},
"prev_marker": {
"description": "The marker for the start of the previous page of results.",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"type": "string"
"example": 1000,
"type": "integer",
"format": "int64"
}
}
},
Expand Down

0 comments on commit 9bb8515

Please sign in to comment.