-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(api) add API blueprint workflow
## feat(api) add POC API specification ## feat(api) add /status/version implementation - Add Django Rest Framework dependency - Add status endpoint views & urls - Clean-up cookie cutter example view ## feat(test) add & configure dredd Automate API implementation testing given its specification thanks to dredd. You will need to install it via the `yarn install` command. TODO: update installation docs ## fix(make) fix pytest-django install A bad regular expression used to remove django from test packages (to let tox control it), was also removing pytest-django :( ## feat(test) add tests for status/version endpoint ## fix(requirements) switch to py3 dev env CI quality jobs run with python 3.6 by default, so let's stick to it and define our dependencies for python 3 instead of python 2. ## fix(compat) fix urls namespacing Add app_name for included urls with namespace ## ci(travis) add dredd API testing Add a new tox environment to test our API implementation with dredd ## feat(api) add Open API schema Add drf_openapi third party dependency to auto-generate our API schema in Open API compatible format. The API is versioned by default (this is a good practice and its required by drf_openapi). For now we only allow 'v1.0' API urls prefix. ## docs(core) add base documentation * Add project installation & configuration instructions * Update endpoints dosctring TODO: update edx sphynx theme to a fun theme? ## fix(compat) remove Django 1.8 compatibility Even not explicit in OpenAPI_DRF requirements, Django Rest Framework minimal compatible release is 3.7. By using OpenAPI_drf, we are forced to drop Django 1.8 support (it was on our roadmap anyway). TODO: test DRF >= 3.7 compatibility with edx/edx-platform#master (Hawthorn). ## ci(travis) fix dredd dependencies tree Used release of nomnom dependency vanished...
- Loading branch information
Showing
36 changed files
with
1,792 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.