Commit c7a759e
authored
docs(leagues): replace stale Leagues-by-Sport table with live-endpoint pointer (#219)
The hand-maintained "Leagues by Sport" table covered 16 leagues across
8 sports against the atlas registry's 600+ entries. Two problems:
1. Drift trap: required manual update on every registry addition.
Last comprehensive ~12 months ago, silently shrinking in coverage
relative to the actual catalog.
2. Wrong canonical IDs: showed `epl`, `la_liga`, `serie_a`,
`bundesliga`, `mls` — none are the registry's canonical slug
forms (`england_-_premier_league`, `spain_-_la_liga`,
`italy_-_serie_a`, `germany_-_bundesliga`,
`usa_-_major_league_soccer`). The API does accept short forms
for backward compat, but `/leagues` returns the canonical slug
and other endpoints emit it on response payloads — clients
coding to the doc example see mismatches.
Replaced with a "Common Leagues" section that:
- Is honest about being illustrative not exhaustive
- Uses canonical slug form for soccer (the most affected sport)
- Adds programmatic-access guidance ("never hard-code a list, call
/api/v1/leagues") in the callout
- Mentions registry breadth (600+ leagues / 30+ sports) so readers
understand the table is a tiny subset
Closes the last of 4 drift traps in League Normalization Item #3
(api-adapters#538, sharp-api-go#367, sharpapi-site#87, this PR).1 parent 9923878 commit c7a759e
1 file changed
Lines changed: 15 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 260 | + | |
266 | 261 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
307 | 272 | | |
308 | 273 | | |
309 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
310 | 277 | | |
311 | 278 | | |
312 | 279 | | |
| |||
0 commit comments