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 endpoint for program page config #5370

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

shanbady
Copy link
Contributor

@shanbady shanbady commented Mar 5, 2024

What are the relevant tickets?

Closes #3711

Description (What does it do?)

This PR has changes that integrate wagtail built-in api endpoints so we can retrieve content used in program letters from mit-open.

How can this be tested?

  1. Checkout this branch.
  2. If you dont already have some mock data, create a ProgramPage via /cms - make sure it is not sitting in the 'root' (should be a child of the "Micromasters Home" page. Fill out the required fields in addition to the fields starting with "program_letter_*"
  3. Save and publish the page
  4. navigate to the wagtail endpoint and specify the pagetype and wildcard for the fields http://localhost:8079/api/v0/wagtail/pages/?type=cms.ProgramPage&fields=*
  5. See that all the program letter fields are shown (inckuding the list of signatories) in addition to links for the signature images

@shanbady shanbady marked this pull request as draft March 5, 2024 00:08
@shanbady shanbady marked this pull request as ready for review March 5, 2024 00:26
@shanbady shanbady changed the title Shanbady/api endpoint for program page config api endpoint for program page config Mar 5, 2024
@annagav annagav self-requested a review March 5, 2024 14:36
@annagav annagav self-assigned this Mar 5, 2024
Copy link
Contributor

@annagav annagav left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@shanbady shanbady merged commit c01416c into master Mar 5, 2024
4 checks passed
@shanbady shanbady deleted the shanbady/api-endpoint-for-program-page-config branch March 5, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants