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

["BUG"] Issue with /eox-core/api/v1/enrollment/ #312

Closed
mslyon opened this issue Dec 27, 2024 · 1 comment
Closed

["BUG"] Issue with /eox-core/api/v1/enrollment/ #312

mslyon opened this issue Dec 27, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@mslyon
Copy link

mslyon commented Dec 27, 2024

Describe the bug
When I send POST /eox-core/api/v1/enrollment/ with this data
{
"username": "Yves",
"course_id": "course-v1:edX+DemoX+Demo_Course",
"mode": "audit",
"is_active": "True",
"force": "True",
"enrollment_attributes": [
{
"namespace": "credit",
"name": "provider_id",
"value": "institution_name"
}
]
}

I get
{
"mode": [
"This field is required."
]
}

It seems to me that mode = serializers.ChoiceField(choices=["audit", "honor", "verified"], default="audit")
is missing from class EdxappCourseEnrollmentQuerySerializer(EdxappCourseEnrollmentSerializer):
am I wrong or I'm missing something?

@mslyon mslyon added bug Something isn't working help wanted Extra attention is needed labels Dec 27, 2024
@mslyon mslyon closed this as completed Dec 27, 2024
@mslyon
Copy link
Author

mslyon commented Dec 27, 2024

sorry all works fine. I figured what was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant