You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bevanmw I would not add a dedicated endpoint for links, as an overload should be enough. I fixed the type errors in this PR #911 if you want to check it out, we will review and merge it soon.
Current Behavior
You can fetch the links via this API (https://www.storyblok.com/docs/api/content-delivery/v2/links/retrieve-multiple-links) by using the js client:
However the
get
method expects the second param to be of typeISbStoriesParams
which is not the same as the query params that are accepted by the API: https://www.storyblok.com/docs/api/content-delivery/v2/links/retrieve-multiple-links.Also, the type
ISbLink
does not include thepublished_at
,created_at
andupdated_at
fields that are included wheninclude_dates
is set to1
.Expected Behavior
I propose that there should be a dedicated
getLinks
method like there is forgetStories
. Which takes in the correct query params for fetching links.Steps to Reproduce
include_dates
parameter to get method which fetchingcdn/links
updated_at
field not present onISbLink
:The text was updated successfully, but these errors were encountered: