Giovanni Di Milia
7683eadcaf
Modified permission classes for CCX REST APIs
...
Modified how the per object permissions are enforced in the CCX REST APIs
2016-02-24 08:40:07 -05:00
zubair-arbi
182826261d
enable jwt auth with feature flag
2016-02-20 02:31:51 +05:00
wajeeha-khalid
9d6df1e132
Merge pull request #11189 from edx/ekafeel/discussion-api-namespace-pagination
...
Ekafeel/discussion api namespace pagination
2016-02-09 17:42:48 +05:00
Ahsan Ulhaq
9220420925
Add jwt auth in LMS
...
ECOM-3419
2016-01-28 14:00:58 +05:00
Giovanni Di Milia
e63194c1cd
Added CCX REST APIs
...
CCX REST APIs
OAUTH2 authorization for CCX APIs
- oauth2 authorization required for ccx list.
- Course-instructor permission for ccx api endpoint
- Protection for detail view too.
Tests for CCX REST APIs and OAUTH2 authorization
2016-01-27 11:04:28 -05:00
Adam Palay
bb2d75d80e
Revert "Merge pull request #11241 from edx/feature/credentials-phase-1"
...
This reverts commit 46df454536 , reversing
changes made to 039e6cdfe6 .
2016-01-25 12:46:57 -05:00
Awais Jibran
c2255ef0d6
Merge pull request #11226 from edx/aj/ecom3384-course-image-breaking
...
Studio - Schedule & Details tab broken
2016-01-22 18:56:15 +05:00
Awais Jibran
8a6699a46d
Studio breaks DEFAULT_COURSE_ABOUT_IMAGE_URL is not set in settings in cms
...
ECOM-3384
2016-01-22 16:49:57 +05:00
Ahsan Ulhaq
bcb8afb2c4
Add jwt auth in LMS
...
ECOM-3419
2016-01-22 13:00:36 +05:00
Ehtesham
a13bf52dbf
[MA-1862] using NamespacedPageNumberPagination class for pagination
2016-01-19 12:54:28 +05:00
J. Cliff Dyer
864e081ffb
Add appropriate messages to OAuth2 401 responses.
...
Format responses as a JSON dict containing an error_code and a
developer_message. user_message is not necessary, as these are API
level errors, not seen by end users.
MA-1900
2016-01-13 16:43:16 +00:00
Nimisha Asthagiri
8e3f4e058d
Update Course Catalog API to support filters
2015-12-23 12:31:31 -05:00
Usman Khalid
8bdc097293
Fixes after rebase to Django 1.8
2015-12-17 22:10:21 +05:00
wajeeha-khalid
588833ff43
MA-1051: DiscussionAPI - Removed http errors from api.py and refactored to more specific errors
2015-12-16 21:23:51 +05:00
Clinton Blackburn
dfadb28343
Fixed Permissions Bug
...
The permissions class now supports non-GET requests.
ECOM-2893
2015-12-11 13:02:05 -05:00
Clinton Blackburn
c90880719f
Corrected permission class and test
...
- The permission now checks the correct request attribute (GET instead of data).
- The Credit API view test has been updated to check for the positive access instead of just denial.
ECOM-3096
2015-12-04 10:18:53 -05:00
J. Cliff Dyer
f53de2c04a
Paginate results of Courses API list endpoint
...
* Catalog results are now paginated
* Implements the new namespaced pagination described at
https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=47481813
* API level code returns pythonic business objects
* View layer performs serialize at the view layer
* Convert views to use DRF generic views
* Removes an unintentional authentication decorator that caused
the detail endpoint to return a 401 for anonymous users
MA-1724
2015-12-01 08:13:18 -05:00
Clinton Blackburn
92153752c0
Rewrote Credit API
...
- API built atop Django REST Framework
- Added support for OAuth 2.0 and session authentication
- Added permissions around eligibility data
ECOM-2609
2015-11-24 22:06:54 -05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Nimisha Asthagiri
00e9237153
Course Blocks API
2015-11-05 22:30:44 +00:00
Ned Batchelder
322ca34b20
Remove pylint pragmas from "class Meta"
...
Also remove useless docstrings where they were added to keep pylint
quiet.
2015-10-21 07:37:00 -04:00
J. Cliff Dyer
257dcc54f2
Accept raw image data as Content-type: image/*
...
MA-1416
Created a TypedFileUploadParser that validates the mimetype and then
takes the content and puts it on request.FILES['file']. Subclasses the
existing FileUploadParser.
Use namedtuple in IMAGE_TYPES as per style guide:
https://github.com/edx/edx-platform/wiki/Python-Guidelines#classes-vs-dictionaries
2015-10-20 13:23:28 -04:00
Matt Drayer
1eab25f292
mattdrayer/increment-edx-lint: Bump to v0.2.9 and address pylint/pep8 violations
...
* Fix paver violations to stablize edx-lint update
* Parens, Line2Long
* Fix missing docstrings
* Fix PEP8 issues
* Address PR feedback (thanks @nedbat!)
2015-10-19 10:11:59 -04:00
muzaffaryousaf
b2ebb680de
DRF uses query_params instead of QUERY_PARAMS.
...
TNL-3442
2015-09-30 20:45:40 +05:00
Ned Batchelder
8ec2de9359
DRF 3.1 now uses request.data instead of request.DATA
2015-09-29 15:25:55 -04:00
Brian Beggs
144c347387
Fixes for rebasing of the release on 2015-09-23
2015-09-25 12:40:58 -04:00
Will Daly
8555630df7
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-25 12:40:57 -04:00
Peter Fogg
33f559b04a
Remove membership field from teams when serializing memberships.
...
TNL-3281
2015-09-15 13:05:10 -04:00
Peter Fogg
48f72612c3
Prevent over-expansion of team memberships.
...
TNL-3202
2015-09-11 12:55:39 -04:00
Bill DeRusha
81ced1c964
Remove disable pylint for paginator error and fix syntax
2015-08-25 10:08:16 -04:00
Bill DeRusha
973314de7b
Add basic elasticsearch search for teams
...
TNL-3014
Add tests for search
Add text_search to TeamsListView
Add reindex command line tool for course teams
Add Search Pagination and update comments
Move paginate_search_results to common library
2015-08-24 09:22:06 -04:00
Peter Fogg
2f7fa6fd8b
Enforce discussions permissions in teams UI.
...
Adds a read-only mode to the discussion module which disables any
controls for updating the discussion (votes, follows, replies,
etc). This mode is enabled for users who are not a member of the team,
and are also not moderators, admins, or community TAs.
2015-08-06 11:15:56 -04:00
Ned Batchelder
f54fe787c6
Remove needless 'disable=no-member' pragmas
2015-08-03 17:47:44 -04:00
tlindaliu
3b483d14bc
MA-851: Add access response information into view_course_access
2015-07-31 09:30:40 -04:00
Ben McMorran
351e491c82
Add generic paging framework
...
Authors:
- Daniel Friedman
- Ben McMorran
- Peter Fogg
TNL-1892
2015-07-06 08:45:03 -04:00
Greg Price
174b4d943a
Handle whitespace-only content in discussion API
...
The comments service rejects whitespace-only content for certain
strings, so the discussion API should also reject such content.
2015-06-19 12:01:34 -04:00
Clinton Blackburn
2da42d5efa
Removed IsAuthenticatedOrDebug
...
IsAuthenticatedOrDebug hides potential issues with API client code that is run in local environments and later deployed to production where authentication fails.
XCOM-193
2015-06-10 18:55:27 -04:00
Ben McMorran
695f19c420
TNL-1907 Implement Course Team Membership API
2015-06-10 20:40:02 +00:00
Nimisha Asthagiri
d240785b17
MA-722 Render xBlock API Support
2015-06-05 11:18:48 -04:00
Greg Price
73d891313a
Add thread editing to discussion API
...
This is done via PATCH on a thread instance endpoint.
2015-06-04 10:56:43 -04:00
Ben McMorran
9d336c33eb
TNL-1897 Implement Course Team API
2015-06-03 18:04:17 +00:00
Diana Huang
dae137feaa
Convert all tabs to the new plugin framework.
2015-06-02 15:05:16 -04:00
Greg Price
d6cd09be1e
Merge pull request #8217 from edx/gprice/discussion-api-create-comment
...
Add comment creation to discussion API
2015-06-01 17:01:30 -04:00
Greg Price
8fbfa2398e
Add comment creation to discussion API
2015-05-29 11:05:02 -04:00
Nimisha Asthagiri
a7fabd5927
Move generic mobile API view decorators.
2015-05-27 14:35:27 -04:00
Greg Price
f891450f50
Add thread creation to discussion API
...
Also, fix the field-specific error format for all API endpoints.
This requires cs_comments_service commit fdf017c918.
2015-05-26 12:42:40 -04:00
Greg Price
90f28dce31
Add thread list endpoint to the new discussion API
...
This is an initial implementation that only allows retrieval of all
threads for a course and only returns an easily computed subset of the
fields that are needed, in order to keep this change from getting too
large.
JIRA: MA-641
2015-05-05 11:45:09 -04:00
Greg Price
ebff94af3f
Add discussion topic API
...
This is the first stage of the new Discussion API.
JIRA: MA-604
2015-04-30 14:25:05 -04:00
jsa
46b63164a0
Implement profile_image upload and remove endpoints
...
TNL-1537
Co-Authored-By: Andy Armstrong <andya@edx.org >
Co-Authored-By: cahrens <christina@edx.org >
2015-04-17 17:23:12 -04:00
Andy Armstrong
6976a33a85
Add the preferences endpoint to the User API
...
TNL-1493
See https://openedx.atlassian.net/wiki/display/TNL/User+API for details
2015-03-16 23:34:35 -04:00