Skip to content

Commit

Permalink
feat: Define license assign endpoint on Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameen Fatima committed Dec 14, 2023
1 parent fea9d7c commit 328a397
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/aws/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
help="Location of enterprise catalog IDA for request routing")
parser.add_argument('--authoring-host', required=True,
help="Location of Studio for authoring request routing")
parser.add_argument('--license-manager-host', required=True,
help="Location of License Manager IDA for request routing")

cli_args = parser.parse_args()
integration_settings = {
Expand All @@ -59,7 +61,8 @@
'analytics_api_host': cli_args.analytics_api_host,
'registrar_host': cli_args.registrar_host,
'enterprise_catalog_host': cli_args.enterprise_catalog_host,
'authoring_host': cli_args.authoring_host
'authoring_host': cli_args.authoring_host,
'license_manager_host': cli_args.license_manager_host
}
stage_settings = {
'log_level': cli_args.log_level,
Expand Down
5 changes: 5 additions & 0 deletions swagger/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ paths:
# Learner Summary endpoint powered by Learner Progress Report V1 API
"/enterprise/v3/enterprise-customer/{uuid}/learner-summary":
$ref: "https://raw.githubusercontent.com/edx/edx-enterprise-data/eb793cf/api.yaml#/endpoints/v2/enterpriseCustomerLearnerSummary"
# License Manager IDA
# These are served from the license manager IDA, but we surface them with the rest of the enterprise endpoints
"/subscriptions/{subscription_plan_uuid}/licenses/assign":
$ref: "https://raw.githubusercontent.com/edx/license-manager/80d9da8/api.yaml#/endpoints/v1/assignLicenses"

# Registrar API Proxy
# Note: There's an unresolved issue involving trailing slashes with proxy integrations in API Gateway.
Expand Down Expand Up @@ -218,3 +222,4 @@ x-edx-api-vendors:
- "registrar_host"
- "enterprise_catalog_host"
- "authoring_host"
- "license_manager_host"

0 comments on commit 328a397

Please sign in to comment.