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

Create API endpoint for creating pages in MT from Adapt #162

Open
ymdahi opened this issue Oct 26, 2021 · 4 comments
Open

Create API endpoint for creating pages in MT from Adapt #162

ymdahi opened this issue Oct 26, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ymdahi
Copy link
Collaborator

ymdahi commented Oct 26, 2021

Relevant API Docs

Purpose

As part of the ADAPT initiative, we are looking to streamline the UX process.

Current Process

  1. user creates page in MT
  2. user adds resources to this page, including h5p and other elements
  3. user logs into Adapt
  4. user creates a page in Adapt and references the page id from MT
  5. the Adapt system parses the page from MT to generate a page in adapt

Proposed Process

  • user logs into Adapt
  • user creates a page in Adapt and defines all of the elements
  • the relevant page is automatically create in MT when the user saves the page
  • any changes to the page in Adapt are also propogated in MT
@ymdahi ymdahi added the enhancement New feature or request label Oct 26, 2021
@ymdahi ymdahi self-assigned this Oct 26, 2021
@ymdahi
Copy link
Collaborator Author

ymdahi commented Oct 26, 2021

@kreut can you please update here if I've missed anything.

@Miniland1333
Copy link
Member

Since I foresee that you will likely need many endpoints or integrating with Adapt, I would recommend making a copy of elevvate.js and then transform it to Adapt's specific needs. That way, you can provide some sort of authentication protection between that script and Adapt such as with origin header checking.

@Miniland1333
Copy link
Member

If no other scripts need unprotected access to /tags and /info, they can be incorporated into these protected endpoints as well.

@ymdahi
Copy link
Collaborator Author

ymdahi commented Nov 10, 2021

@Miniland1333 : thanks Henry! Great points. Will certainly look at this approach. Stay tuned to get pinged on any progress - I think you still have access to everything so having your insight would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants