Endpoints by slug?

default discord avatar
jonkristian
2 weeks ago

Is it not possible to call endpoints by slug instead of id via rest api? I've been looking around the docs but could not find any information regarding that. I'm working on consuming payload api in a sveltekit application and looking for best pracises too, if anyone wants to chime in.



Of course, soon after posting the question i found the answer.

api/pages?where[slug][equals]=the-slug
    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!

    Star

    Connect with the Payload Community on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.