Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
8540060f
Commit
8540060f
authored
Aug 17, 2016
by
Matt Drayer
Committed by
GitHub
Aug 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #206 from edx/mattdrayer/add-partner-docs
mattdrayer/add-partner-docs: Update "Getting Started" section
parents
81738534
6fdbe32c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
docs/getting_started.rst
+49
-0
No files found.
docs/getting_started.rst
View file @
8540060f
...
...
@@ -84,6 +84,55 @@ your settings and created the database (if necessary). Migrations can be run wit
.. _Django's migrate command: https://docs.djangoproject.com/en/1.8/ref/django-admin/#django-admin-migrate
Configure Partners
------------------
The Catalog Service is designed to support multiple collections of API endpoints to construct its search
indexes. These collections are represented in the system's domain model as "Partner" entities. In addition to indexing,
Partners link related top-level system entities -- Courses, Organizations, and Programs -- in order to create logical
index partitions for use during search operations.
To configure a Partner, add a new entry to the system via the Catalog Service administration console found at
``https://catalog.example.com/admin``. Alternatively you may execute the ``create_or_update_partner`` management
command via the terminal. This command, found in
:file:`course_discovery/apps/core/management/commands/create_or_update_partner.py`, allows service operators to specify
any/all Partner attributes as command arguments for both new and existing Partners, including marketing site
and OIDC authentication credentials.
Required arguments include the ``code`` and ``name`` fields, as follows:
.. code-block:: bash
$ ./manage.py create_or_update_partner --code='abc' --name='ABC Partner'
Additional optional attributes can be specified:
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| Attribute/Argument | Description | Notes / Example Values |
+===============================+=========================================+====================================================+
| courses-api-url | LMS Courses API Endpoint | https://lms.example.com/api/v1/courses/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| ecommerce-api-url | Ecommerce Courses API Endpoint | https://ecommerce.example.com/api/v1/courses/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| organizations-api-url | Organizations API Endpoint | https://orgs.example.com/api/v1/organizations/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| programs-api-url | Programs API Endpoint | https://programs.example.com/api/v1/programs/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| marketing-site-url-root | Drupal-based Marketing Site URL | https://www.example.com/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| marketing-site-api-url | Drupal Courses API Endpoint | https://www.example.com/api/v1/courses/ |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| marketing-site-api-username | Drupal Courses API Account Username | (This value comes from the Drupal user account) |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| marketing-site-api-password | Drupal Courses API Account Password | (This value comes from the Drupal user account) |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| oidc-url-root | Open edX OpenID Connect URL | https://lms.example.com/oauth2 |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| oidc-key | Open edX OpenID Connect Client Key/ID | (This value comes from the LMS Client record) |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
| oidc-secret | Open edX OpenID Connect Client Secret | (This value comes from the LMS Client record) |
+-------------------------------+-----------------------------------------+----------------------------------------------------+
Run the server
--------------
The server can be run with `Docker Compose`_. This will start the Course Discovery service, and all of the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment