Skip to content

Add path prefixed MITx Online API config to local dev APISIX #2360

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gumaerc
Copy link
Contributor

@gumaerc gumaerc commented Jul 14, 2025

Related to https://github.com/mitodl/hq/issues/7796

Description (What does it do?)

This PR adds a separate route in the APISIX configuration used for local development. The route is a path prefixed route to the MITx Online API, so you can access it at http://open.odl.local:8065/mitxonline/api.

How can this be tested?

  • In order to test this PR, you should have a running instance of MITx Online that is using the same Keycloak / APISIX as MIT Learn
  • Assuming you are using the default local domains (open.odl.local and mitxonline.odl.local) access Learn at http://open.odl.local:8062/ and Log In using Keycloak
  • Open a new tab and browse to http://open.odl.local:8065/mitxonline/api/v0/users/me
  • Verify that you see the response from the MITx Online API

@gumaerc gumaerc added the Needs Review An open Pull Request that is ready for review label Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review An open Pull Request that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant