Skip to content
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

Feat: Add a additional course language in the courserun API model. #93

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

Anas-hameed
Copy link

The PR adds a course_language field in the course run API. You can test the feature by using the following curls.

CourseRun Search API:

curl --location 'https://edlydev.discovery.multisitesdev.edly.io/api/v1/search/course_runs/?status=published&limit=50&editable=1' \
--header 'Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiAiZE1icHN6d2tGTVRWZHFjRnozZFJxQnR0UVFYTEI1Tkt4V0oiLCAiZXhwIjogMTcyNTA1NDYyMCwgImlhdCI6IDE3MjUwMTg2MjAsICJpc3MiOiAiaHR0cHM6Ly9kZXYuY291cnNlcy5tdWx0aXNpdGVzZGV2LmVkbHkuaW8vb2F1dGgyIiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJlZGx5X3BhbmVsX3dvcmtlciIsICJzY29wZXMiOiBbInJlYWQiLCAid3JpdGUiLCAiZW1haWwiLCAicHJvZmlsZSJdLCAidmVyc2lvbiI6ICIxLjIuMCIsICJzdWIiOiAiM2RjZDg0NzA4YmFlYWQxYjBlNmZkOTcwZmY1YjNiYWUiLCAiZmlsdGVycyI6IFtdLCAiaXNfcmVzdHJpY3RlZCI6IGZhbHNlLCAiZW1haWxfdmVyaWZpZWQiOiB0cnVlLCAiZW1haWwiOiAiZWRseV93b3JrZXJAZXhhbXBsZS5jb20iLCAibmFtZSI6ICJlZGx5X3BhbmVsX3dvcmtlciIsICJmYW1pbHlfbmFtZSI6ICIiLCAiZ2l2ZW5fbmFtZSI6ICIiLCAiYWRtaW5pc3RyYXRvciI6IHRydWUsICJzdXBlcnVzZXIiOiBmYWxzZX0.o6LHSKXikwLLKxe9FbQoVBbwPOCF4p14HZ4VnKo0bXU' \
--header 'Cookie: sessionid=1|791hlyo9ct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dfgDCuogcHhDdHd4wY; AWSALB=wenCW8VKVS2IU4f7Htk+R4Zyqvwm1Ph2MTwOiE4sS3m1dHanVST5OXLDGQG7rbzhzD57SUaLGY4FQG1/7Q+DGs5RPxm5E0P79YE4F0QhbY3rdimDMuwbT51t2e8v; AWSALBCORS=wenCW8VKVS2IU4f7Htk+R4Zyqvwm1Ph2MTwOiE4sS3m1dHanVST5OXLDGQG7rbzhzD57SUaLGY4FQG1/7Q+DGs5RPxm5E0P79YE4F0QhbY3rdimDMuwbT51t2e8v'

CourseRun API:

curl --location 'https://edlydev.discovery.multisitesdev.edly.io/api/v1/course_runs?pageSize=1&page=1' \
--header 'Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiAiZE1icHN6d2tGTVRWZHFjRnozZFJxQnR0UVFYTEI1Tkt4V0oiLCAiZXhwIjogMTcyNTA1NDYyMCwgImlhdCI6IDE3MjUwMTg2MjAsICJpc3MiOiAiaHR0cHM6Ly9kZXYuY291cnNlcy5tdWx0aXNpdGVzZGV2LmVkbHkuaW8vb2F1dGgyIiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJlZGx5X3BhbmVsX3dvcmtlciIsICJzY29wZXMiOiBbInJlYWQiLCAid3JpdGUiLCAiZW1haWwiLCAicHJvZmlsZSJdLCAidmVyc2lvbiI6ICIxLjIuMCIsICJzdWIiOiAiM2RjZDg0NzA4YmFlYWQxYjBlNmZkOTcwZmY1YjNiYWUiLCAiZmlsdGVycyI6IFtdLCAiaXNfcmVzdHJpY3RlZCI6IGZhbHNlLCAiZW1haWxfdmVyaWZpZWQiOiB0cnVlLCAiZW1haWwiOiAiZWRseV93b3JrZXJAZXhhbXBsZS5jb20iLCAibmFtZSI6ICJlZGx5X3BhbmVsX3dvcmtlciIsICJmYW1pbHlfbmFtZSI6ICIiLCAiZ2l2ZW5fbmFtZSI6ICIiLCAiYWRtaW5pc3RyYXRvciI6IHRydWUsICJzdXBlcnVzZXIiOiBmYWxzZX0.o6LHSKXikwLLKxe9FbQoVBbwPOCF4p14HZ4VnKo0bXU' \
--header 'Cookie: panel_sessionid=p0284frf5xt3ytptnw44eyvz62zzd7yz; sessionid=1|l467o2k9mcxzp9ge6ca4bhth43vhh6jf|B7ulKHQUERdN|ImM2NDYyM2ZlNjgzNzI3ZDVkZGI2ZGE3OWNjOTVhNmQ5MTA1ODQ4MTQ4YmQ1NTI3YmM0Y2NmNGE5MzdkYzQzMWUi:1sjcdM:_aaNnnk58dfgDCuogcHhDdHd4wY; AWSALB=OH7zEQxe4hB3/qpDSBj6Xm999Fph+pmgdrVGc9ie4rsKCKMZcyMjJ+wTqb6RssQnZahZknAn86l+10yDD6r2pdL3d855tOlu6VyDMVAnzQBB7A/0Hwc4H8DJUxKK; AWSALBCORS=OH7zEQxe4hB3/qpDSBj6Xm999Fph+pmgdrVGc9ie4rsKCKMZcyMjJ+wTqb6RssQnZahZknAn86l+10yDD6r2pdL3d855tOlu6VyDMVAnzQBB7A/0Hwc4H8DJUxKK'

Copy link

@muhammadali286 muhammadali286 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly make sure dataloader job and courses are fine after running it.

@Anas-hameed Anas-hameed merged commit 8e117eb into develop-koa Sep 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants