This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
v1.0.0
The gREST is stable now and has been heavily refactored to make it optimized and fast enough for production environment. It has been long since I've released a new version and I hope that after adding so many changes, it is now safe to say that the version 1.0.0 would be a good starting point for other changes, resolving of issues and adding new features.
Change log:
- Completely refactored and optimized grest.py code and separated all the http verbs into their respective files.
- Added functions docs.
- Removed unnecessary imports.
- Moved input validation functions to utils.py.
- Reordered imports and extracted static messages.
- Fixed absolute import issue of python 2.
- __validation_rules__ dict should be used for manual validation and validation_rules property should be used when automatic validation is needed. (validation_rules is a class property and only available on class instances).
- validate_model now return a tuple of (primary, secondary) classes, thus fixed in all previously refactored pieces of code.
- Added get_all and relation_exists helper methods to models helper classes.
- Updated packages (dependencies) to latest versions, except neomodel which is incompatible with inheritance (that is used heavily in gREST).
- Migrated docstrings to grest top level methods (verbs).
- Updated tests to reflect new changes in grest.py (messages and error codes).
- Fixed travis-ci configuration which previously led to build and test failures.
Archived