Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
eea3b311
Commit
eea3b311
authored
Jul 17, 2015
by
Sylvia Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete white spaces that are causing test failures
parent
c2420b09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
common/djangoapps/enrollment/views.py
+3
-3
lms/djangoapps/mobile_api/users/views.py
+3
-3
openedx/core/djangoapps/profile_images/views.py
+14
-14
openedx/core/djangoapps/user_api/accounts/views.py
+2
-2
No files found.
common/djangoapps/enrollment/views.py
View file @
eea3b311
...
...
@@ -308,11 +308,11 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
GET /api/enrollment/v1/enrollment
POST /api/enrollment/v1/enrollment {
"mode": "credit",
"course_details":{"course_id": "edX/DemoX/Demo_Course"},
"enrollment_attributes":[{"namespace": "credit","name": "provider_id","value": "hogwarts",},]
}
**POST Parameters**
...
...
@@ -353,7 +353,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
* mode: Optional. The course mode for the enrollment. Individual
users cannot upgrade their enrollment mode from "honor". Only
server-to-server requests can enroll with other modes.
* user: Optional. The user ID of the currently logged in user. You
cannot use the command to enroll a different user.
...
...
lms/djangoapps/mobile_api/users/views.py
View file @
eea3b311
...
...
@@ -81,9 +81,9 @@ class UserCourseStatus(views.APIView):
PATCH /api/mobile/v0.5/users/{username}/course_status_info/{course_id}
**PATCH Parameters**
The body of the PATCH request can include the following parameters.
The body of the PATCH request can include the following parameters.
* last_visited_module_id={module_id}
* modification_date={date}
...
...
openedx/core/djangoapps/profile_images/views.py
View file @
eea3b311
...
...
@@ -50,22 +50,22 @@ class ProfileImageUploadView(APIView):
**Example Responses**
When the requesting user tries to upload the image for a different user, the
When the requesting user tries to upload the image for a different user, the
request returns one of the following responses.
* If the requesting user has staff access, the request returns an HTTP 403
* If the requesting user has staff access, the request returns an HTTP 403
"Forbidden" response.
* If the requesting user does not have staff access, the request returns
an HTTP 404 "Not Found" response.
* If no user matches the "username" parameter, the request returns an HTTP
* If no user matches the "username" parameter, the request returns an HTTP
404 "Not Found" response.
* If the upload could not be performed, the request returns an HTTP 400 "Bad
* If the upload could not be performed, the request returns an HTTP 400 "Bad
Request" response with more information.
* If the upload is successful, the request returns an HTTP 204 "No Content"
* If the upload is successful, the request returns an HTTP 204 "No Content"
response with no additional content.
"""
...
...
@@ -141,20 +141,20 @@ class ProfileImageRemoveView(APIView):
**Example Responses**
When the requesting user tries to remove the profile image for a
different user, the
request returns one of the following responses.
When the requesting user tries to remove the profile image for a
different user, the
request returns one of the following responses.
* If the user does not have staff access, the request returns an HTTP
* If the user does not have staff access, the request returns an HTTP
404 "Not Found" response.
* If no user matches the "username" parameter, the request returns an
HTTP
404 "Not Found" response.
* If no user matches the "username" parameter, the request returns an
HTTP
404 "Not Found" response.
* If the image could not be removed, the request returns an HTTP 400
"Bad
Request" response with more information.
* If the image could not be removed, the request returns an HTTP 400
"Bad
Request" response with more information.
* If the request successfully removes the image, the request returns
an
HTTP 204 "No Content" response with no additional content.
* If the request successfully removes the image, the request returns
an
HTTP 204 "No Content" response with no additional content.
"""
...
...
openedx/core/djangoapps/user_api/accounts/views.py
View file @
eea3b311
...
...
@@ -83,7 +83,7 @@ class AccountView(APIView):
address, or null.
* name: The full name of the user.
* profile_image: A JSON representation of a user's profile image
information. This representation has the following keys.
information. This representation has the following keys.
* "has_image": Boolean indicating whether the user has a profile
image.
...
...
@@ -99,7 +99,7 @@ class AccountView(APIView):
For all text fields, plain text instead of HTML is supported. The
data is stored exactly as specified. Clients must HTML escape
rendered values to avoid script injections.
rendered values to avoid script injections.
If a user who does not have "is_staff" access requests account
information for a different user, only a subset of these fields is
...
...
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