Skip to content

Commit

Permalink
Update API_BASE_URL to reflect new MITOpen API Endpoint (#64)
Browse files Browse the repository at this point in the history
* Change API_BASE_URL to the new mitopen URL

* Update API endpoint in README.md

* Fix abbreviation style for e.g.,
  • Loading branch information
ibrahimjaved12 authored Jun 13, 2024
1 parent c980f77 commit 5869cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ If you want to change this, you will not only have to change the `output_path` i

By default, this project uses MIT Open's Production API, as given in `ocw_oer_export/config.py`.
To use the RC API or local, create an environment file, `.env` in the project's root directory and add the relevant base URL:
Eg. `API_BASE_URL=https://mitopen-rc.odl.mit.edu` or `API_BASE_URL=http://localhost:8063`
e.g., `API_BASE_URL=https://api.mitopen-rc.odl.mit.edu` or `API_BASE_URL=http://localhost:8063`

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion ocw_oer_export/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

load_dotenv()

API_BASE_URL = os.getenv("API_BASE_URL", "https://mitopen.odl.mit.edu")
API_BASE_URL = os.getenv("API_BASE_URL", "https://api.mitopen.odl.mit.edu")
API_URL = f"{API_BASE_URL}/api/v1/courses/?platform=ocw"

0 comments on commit 5869cf8

Please sign in to comment.