Commit 74395ab
feat: add limit/offset pagination to /alerts/unlabeled/latest (#588)
* feat: add limit/offset pagination to /alerts/unlabeled/latest
Replaces the hardcoded .limit(15) on GET /api/v1/alerts/unlabeled/latest
with optional limit and offset query parameters, matching the convention
already used by /alerts/all/fromdate. Default limit=15 preserves prior
behavior; clients can now paginate or request more alerts.
Closes #587
* Update src/app/api/api_v1/endpoints/alerts.py
Co-authored-by: fe51 <55736935+fe51@users.noreply.github.com>
---------
Co-authored-by: fe51 <55736935+fe51@users.noreply.github.com>1 parent 077eeda commit 74395ab
2 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
239 | | - | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
157 | 185 | | |
158 | 186 | | |
159 | 187 | | |
| |||
0 commit comments