Skip to content

[6.x] REST API: resolve entries by slug - #15321

Merged
jasonvarga merged 2 commits into
feature/rest-api-paramsfrom
feature/rest-api-entry-slug
Sep 1, 2026
Merged

[6.x] REST API: resolve entries by slug#15321
jasonvarga merged 2 commits into
feature/rest-api-paramsfrom
feature/rest-api-entry-slug

Conversation

@jackmcdade

@jackmcdade jackmcdade commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • GET /api/collections/{collection}/entries/{id} also accepts a slug.
  • ID still wins if an id and another entry's slug collide.

Stacked on #15320.

Test plan

  • /entries/about works when the id is not about
  • If an entry id is about and another slug is about, the id wins
  • Unpublished slugs still 404
  • Existing id lookups unchanged

@jackmcdade jackmcdade changed the title Resolve API entries by slug. [6.x] REST API: resolve entries by slug Sep 1, 2026
@jackmcdade
jackmcdade force-pushed the feature/rest-api-entry-slug branch 2 times, most recently from d971650 to df9549e Compare September 1, 2026 14:20
@jackmcdade
jackmcdade force-pushed the feature/rest-api-entry-slug branch from df9549e to 7b81092 Compare September 1, 2026 14:25
Comment thread src/Http/Controllers/API/CollectionEntriesController.php
jackmcdade and others added 2 commits September 1, 2026 10:49
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@jackmcdade
jackmcdade force-pushed the feature/rest-api-entry-slug branch from 7b81092 to 684065e Compare September 1, 2026 14:53
@jasonvarga
jasonvarga merged commit dd38f0c into 6.x Sep 1, 2026
67 of 127 checks passed
@jasonvarga
jasonvarga deleted the feature/rest-api-entry-slug branch September 1, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants