storyblok / storyblok-ruby-client

Storyblok ruby client for easy access of the content delivery api
MIT License
24 stars 11 forks source link

Fetching by UUID #5

Closed jits closed 5 years ago

jits commented 5 years ago

Is it possible to retrieve content by UUID? I.e. making an API call like the one described in: https://www.storyblok.com/tp/how-to-build-relationships-between-2-content-types#get-the-author-of-one-post

jits commented 5 years ago

On closer inspection, it looks like I should be able to do something like:

client.stories({
  :by_uuids => '<uuid>'
})

I'll test this out and close this issue once confirmed to be working.

jits commented 5 years ago

Closing for now – our usage pattern has changed; it's safe to assume that this works, as all it does under the hood is pass the param to the API call (as a query param).