Skip to content

Commit

Permalink
Merge pull request #1038 from openedx/asheehan-edx/ENT-7577
Browse files Browse the repository at this point in the history
feat: enterprise sso orchestrator record api client
  • Loading branch information
alex-sheehan-edx committed Sep 25, 2023
2 parents ed98264 + ce8c6d7 commit 5cb3eeb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ MAINTENANCE_ALERT_START_TIMESTAMP=''
USE_API_CACHE='true'
SUBSCRIPTION_LPR='true'
PLOTLY_SERVER_URL='http://localhost:8050'
AUTH0_SELF_SERVICE_INTEGRATION='true'
29 changes: 29 additions & 0 deletions src/data/services/LmsApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,35 @@ class LmsApiService {

static apiCredentialsUrl = `${LmsApiService.baseUrl}/enterprise/api/v1/enterprise-customer-api-credentials/`;

static enterpriseSsoOrchestrationUrl = `${LmsApiService.baseUrl}/enterprise/api/v1/enterprise_customer_sso_configuration/`;

static fetchEnterpriseSsoOrchestrationRecord(configurationUuid) {
const enterpriseSsoOrchestrationFetchUrl = `${LmsApiService.enterpriseSsoOrchestrationUrl}${configurationUuid}`;
return LmsApiService.apiClient().get(enterpriseSsoOrchestrationFetchUrl);
}

static listEnterpriseSsoOrchestration(enterpriseCustomerUuid) {
const enterpriseSsoOrchestrationListUrl = `${LmsApiService.enterpriseSsoOrchestrationUrl}`;
if (enterpriseCustomerUuid) {
return LmsApiService.apiClient().get(`${enterpriseSsoOrchestrationListUrl}?enterprise_customer=${enterpriseCustomerUuid}`);
}
return LmsApiService.apiClient().get(enterpriseSsoOrchestrationListUrl);
}

static createEnterpriseSsoOrchestrationRecord(formData) {
return LmsApiService.apiClient().post(LmsApiService.enterpriseSsoOrchestrationUrl, formData);
}

static updateEnterpriseSsoOrchestrationRecord(formData, configurationUuid) {
const enterpriseSsoOrchestrationUpdateUrl = `${LmsApiService.enterpriseSsoOrchestrationUrl}${configurationUuid}`;
return LmsApiService.apiClient().put(enterpriseSsoOrchestrationUpdateUrl, formData);
}

static deleteEnterpriseSsoOrchestrationRecord(configurationUuid) {
const enterpriseSsoOrchestrationDeleteUrl = `${LmsApiService.enterpriseSsoOrchestrationUrl}${configurationUuid}`;
return LmsApiService.apiClient().delete(enterpriseSsoOrchestrationDeleteUrl);
}

static fetchEnterpriseList(options) {
const queryParams = new URLSearchParams({
page: 1,
Expand Down

0 comments on commit 5cb3eeb

Please sign in to comment.