Skip to content

feat: added base api for xblocks in front#3

Draft
holaontiveros wants to merge 1 commit intomasterfrom
feat/apis-for-xblocks-front
Draft

feat: added base api for xblocks in front#3
holaontiveros wants to merge 1 commit intomasterfrom
feat/apis-for-xblocks-front

Conversation

@holaontiveros
Copy link
Copy Markdown

@holaontiveros holaontiveros commented Feb 22, 2026

This is a temporary PR so I can better review the changes, this is pointing to WGU EDX master so we SHOULD NOT merge it.

What was done?

  • Added multi URL config so we can have the old por 1996 and the new port 8080 at the same time
  • Added xblock handler get_contentthat returns the content and required info to be able to render it
  • HTML xblock and video xblock got the new get_content handler

The response for the get_contenthandler will look like:

export interface XblockContent<TContent = string, TMetadata = XblockContentMetadata> {
  content: TContent,
  content_type: string,
  display_name: string,
  block_id: string,
  block_type: string,
  metadata: TMetadata,
  can_complete_on_view: boolean,
}

The content and Metadata can change depending on the Xblock to fit the right type of info required to render it

@holaontiveros holaontiveros marked this pull request as draft February 22, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant