easyapi-django 0.1.26__tar.gz → 0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {easyapi_django-0.1.26/easyapi_django.egg-info → easyapi_django-0.2}/PKG-INFO +1 -1
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/base.py +1 -1
- {easyapi_django-0.1.26 → easyapi_django-0.2/easyapi_django.egg-info}/PKG-INFO +1 -1
- {easyapi_django-0.1.26 → easyapi_django-0.2}/pyproject.toml +1 -1
- {easyapi_django-0.1.26 → easyapi_django-0.2}/LICENSE +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/README.md +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/__init__.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/calc.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/calc_resource.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/constants.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/dates.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/exception.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/filters.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/middleware.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/orm/__init__.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/rate_limit.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/routes.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/tenant/__init__.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/tenant/db_router.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/tenant/tenant.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi/util.py +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi_django.egg-info/SOURCES.txt +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi_django.egg-info/dependency_links.txt +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/easyapi_django.egg-info/top_level.txt +0 -0
- {easyapi_django-0.1.26 → easyapi_django-0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easyapi_django
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
4
4
|
Summary: A simple rest api generator for django based on models
|
|
5
5
|
Author-email: Stamatios Stamou Jr <bushier.outsets.0c@icloud.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/ssjunior/easyapi-django
|
|
@@ -397,7 +397,7 @@ class BaseResource(View):
|
|
|
397
397
|
raise HTTPException(401, 'Not authorized')
|
|
398
398
|
|
|
399
399
|
obfuscated_token = request.headers.get('X-Token')
|
|
400
|
-
check_token = ENFORCE_TOKEN and request.path not in ['/login', '/user/me']
|
|
400
|
+
check_token = self.authenticated and ENFORCE_TOKEN and request.path not in ['/login', '/user/me']
|
|
401
401
|
if check_token and not obfuscated_token:
|
|
402
402
|
raise HTTPException(405, 'Not allowed, missing origin 1')
|
|
403
403
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: easyapi_django
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
4
4
|
Summary: A simple rest api generator for django based on models
|
|
5
5
|
Author-email: Stamatios Stamou Jr <bushier.outsets.0c@icloud.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/ssjunior/easyapi-django
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|