Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API-3570: Add /asset-urls endpoint #4

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

shunjid
Copy link
Member

@shunjid shunjid commented Jul 10, 2023

TICKET: https://jira.sso.episerver.net/browse/API-3570

Related PRs:

  • ...

Description

QA Steps

@shunjid shunjid marked this pull request as ready for review July 11, 2023 06:21
tokenGetParam
);

const asset = new AssetUrlModel(assetData);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be either Library Image/Video/RawFile or Task Image/Video/RawFile asset. apiCaller will follow the redirection and fetch the data from the redirect URL. We need to detect what type of asset data is returned and return that object.
We should use the standard Location header for 302 http code in our api response. But we are using X-Resource-Location. then apiCaller can follow the redirection.

@shunjid shunjid marked this pull request as draft April 8, 2024 10:24
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.

None yet

2 participants