nsj-rest-lib2 0.0.37__py3-none-any.whl → 0.0.38__py3-none-any.whl
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.
- nsj_rest_lib2/compiler/compiler.py +11 -29
- nsj_rest_lib2/controller/dynamic_controller.py +6 -6
- {nsj_rest_lib2-0.0.37.dist-info → nsj_rest_lib2-0.0.38.dist-info}/METADATA +1 -1
- {nsj_rest_lib2-0.0.37.dist-info → nsj_rest_lib2-0.0.38.dist-info}/RECORD +6 -6
- {nsj_rest_lib2-0.0.37.dist-info → nsj_rest_lib2-0.0.38.dist-info}/WHEEL +1 -1
- {nsj_rest_lib2-0.0.37.dist-info → nsj_rest_lib2-0.0.38.dist-info}/top_level.txt +0 -0
|
@@ -398,15 +398,13 @@ class EDLCompiler:
|
|
|
398
398
|
post_expected, post_properties = (
|
|
399
399
|
response_dto_compiler.handler_result_details(post_handler)
|
|
400
400
|
)
|
|
401
|
-
put_expected, put_properties = (
|
|
402
|
-
|
|
401
|
+
put_expected, put_properties = response_dto_compiler.handler_result_details(
|
|
402
|
+
put_handler
|
|
403
403
|
)
|
|
404
404
|
patch_expected, patch_properties = (
|
|
405
405
|
response_dto_compiler.handler_result_details(patch_handler)
|
|
406
406
|
)
|
|
407
|
-
get_expected, _ = response_dto_compiler.handler_result_details(
|
|
408
|
-
get_handler
|
|
409
|
-
)
|
|
407
|
+
get_expected, _ = response_dto_compiler.handler_result_details(get_handler)
|
|
410
408
|
list_expected, _ = response_dto_compiler.handler_result_details(
|
|
411
409
|
list_handler
|
|
412
410
|
)
|
|
@@ -471,32 +469,16 @@ class EDLCompiler:
|
|
|
471
469
|
)
|
|
472
470
|
compiler_result.retrieve_after_insert = post_expected == "entity_row"
|
|
473
471
|
compiler_result.retrieve_after_update = put_expected == "entity_row"
|
|
474
|
-
compiler_result.retrieve_after_partial_update =
|
|
475
|
-
patch_expected == "entity_row"
|
|
476
|
-
)
|
|
472
|
+
compiler_result.retrieve_after_partial_update = patch_expected == "entity_row"
|
|
477
473
|
compiler_result.post_response_dto_class_name = compiler_result_post_class
|
|
478
474
|
compiler_result.put_response_dto_class_name = compiler_result_put_class
|
|
479
|
-
compiler_result.patch_response_dto_class_name =
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
compiler_result.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
compiler_result.
|
|
486
|
-
put_expected == "custom_json"
|
|
487
|
-
)
|
|
488
|
-
compiler_result.custom_json_patch_response = (
|
|
489
|
-
patch_expected == "custom_json"
|
|
490
|
-
)
|
|
491
|
-
compiler_result.custom_json_get_response = (
|
|
492
|
-
get_expected == "custom_json"
|
|
493
|
-
)
|
|
494
|
-
compiler_result.custom_json_list_response = (
|
|
495
|
-
list_expected == "custom_json"
|
|
496
|
-
)
|
|
497
|
-
compiler_result.custom_json_delete_response = (
|
|
498
|
-
delete_expected == "custom_json"
|
|
499
|
-
)
|
|
475
|
+
compiler_result.patch_response_dto_class_name = compiler_result_patch_class
|
|
476
|
+
compiler_result.custom_json_post_response = post_expected == "custom_json"
|
|
477
|
+
compiler_result.custom_json_put_response = put_expected == "custom_json"
|
|
478
|
+
compiler_result.custom_json_patch_response = patch_expected == "custom_json"
|
|
479
|
+
compiler_result.custom_json_get_response = get_expected == "custom_json"
|
|
480
|
+
compiler_result.custom_json_list_response = list_expected == "custom_json"
|
|
481
|
+
compiler_result.custom_json_delete_response = delete_expected == "custom_json"
|
|
500
482
|
|
|
501
483
|
insert_code_compiled = insert_function_code.strip()
|
|
502
484
|
update_code_compiled = update_function_code.strip()
|
|
@@ -158,7 +158,7 @@ def setup_dynamic_routes(
|
|
|
158
158
|
custom_json_response=bool(custom_json_list_response),
|
|
159
159
|
)
|
|
160
160
|
|
|
161
|
-
return route.
|
|
161
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
162
162
|
|
|
163
163
|
return list_dynamic
|
|
164
164
|
|
|
@@ -201,7 +201,7 @@ def setup_dynamic_routes(
|
|
|
201
201
|
custom_json_response=bool(custom_json_get_response),
|
|
202
202
|
)
|
|
203
203
|
|
|
204
|
-
return route.
|
|
204
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
205
205
|
|
|
206
206
|
return get_dynamic
|
|
207
207
|
|
|
@@ -266,7 +266,7 @@ def setup_dynamic_routes(
|
|
|
266
266
|
custom_json_response=bool(custom_json_post_response),
|
|
267
267
|
)
|
|
268
268
|
|
|
269
|
-
return route.
|
|
269
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
270
270
|
|
|
271
271
|
return post_dynamic
|
|
272
272
|
|
|
@@ -331,7 +331,7 @@ def setup_dynamic_routes(
|
|
|
331
331
|
custom_json_response=bool(custom_json_put_response),
|
|
332
332
|
)
|
|
333
333
|
|
|
334
|
-
return route.
|
|
334
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
335
335
|
|
|
336
336
|
return put_dynamic
|
|
337
337
|
|
|
@@ -388,7 +388,7 @@ def setup_dynamic_routes(
|
|
|
388
388
|
custom_json_response=bool(custom_json_patch_response),
|
|
389
389
|
)
|
|
390
390
|
|
|
391
|
-
return route.
|
|
391
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
392
392
|
|
|
393
393
|
return patch_dynamic
|
|
394
394
|
|
|
@@ -433,7 +433,7 @@ def setup_dynamic_routes(
|
|
|
433
433
|
custom_json_response=bool(custom_json_delete_response),
|
|
434
434
|
)
|
|
435
435
|
|
|
436
|
-
return route.
|
|
436
|
+
return route.internal_handle_request(*args, **kwargs)
|
|
437
437
|
|
|
438
438
|
return delete_dynamic
|
|
439
439
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nsj_rest_lib2
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.38
|
|
4
4
|
Summary: Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
5
5
|
Home-page: https://github.com/Nasajon/nsj_rest_lib2
|
|
6
6
|
Author: Nasajon Sistemas
|
|
@@ -3,7 +3,7 @@ nsj_rest_lib2/exception.py,sha256=E9uMUdoCCQOVQfc8f6gD9b5Pxurf3Q4SytDCcqSlkZ8,56
|
|
|
3
3
|
nsj_rest_lib2/redis_config.py,sha256=4KLcvYS3nJO7PMQgF6F9_j6r-TyqcS7TBbd3LEQuKDU,629
|
|
4
4
|
nsj_rest_lib2/settings.py,sha256=eK2aIFVhZK8kxEDHCW5agba5XP2aFPoh_PFnNLwCMH8,627
|
|
5
5
|
nsj_rest_lib2/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
nsj_rest_lib2/compiler/compiler.py,sha256=
|
|
6
|
+
nsj_rest_lib2/compiler/compiler.py,sha256=fiDDkLyc-E4b21j3LHZSiFRhBb4VY5cbxqFeZhjGVjw,39209
|
|
7
7
|
nsj_rest_lib2/compiler/compiler_structures.py,sha256=stspjqJGXU7Vz3BqQ-ZF5ZmumFm3R4jpkWgVVsXW5d0,1488
|
|
8
8
|
nsj_rest_lib2/compiler/dto_compiler.py,sha256=kT9v8z0MMHYGkVudkJA0VUY1tNCM7QzV6_RV-aWjSoE,7143
|
|
9
9
|
nsj_rest_lib2/compiler/entity_compiler.py,sha256=LeGEBxsjAmZZog2gh4vjUX1aFp9JSVgHHOdTkY0aH-s,6733
|
|
@@ -35,7 +35,7 @@ nsj_rest_lib2/compiler/util/str_util.py,sha256=0ReIQ2Vy4zAmVMvGv0FcUehRQw15hlz0e
|
|
|
35
35
|
nsj_rest_lib2/compiler/util/type_naming_util.py,sha256=WKBqGZ0a-JO1IO5Q_rHVpLBESUmbc5D_lgF9DWBwkpk,5065
|
|
36
36
|
nsj_rest_lib2/compiler/util/type_util.py,sha256=HTKOH4uRTOY0YgoM8oUv_6cEcReE_bgKYXFBsQCb-3A,357
|
|
37
37
|
nsj_rest_lib2/controller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
-
nsj_rest_lib2/controller/dynamic_controller.py,sha256=
|
|
38
|
+
nsj_rest_lib2/controller/dynamic_controller.py,sha256=fgwUUiymg_ECA6kms5hf_-rFmnZTzkGhePv2gvKy_fw,17528
|
|
39
39
|
nsj_rest_lib2/dto/__init__.py,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
|
|
40
40
|
nsj_rest_lib2/dto/escopo_dto.py,sha256=R9gxRwYxOVYhGjR3q03_iXvHm14N905zbRKLsS3jI-A,1393
|
|
41
41
|
nsj_rest_lib2/entity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -43,7 +43,7 @@ nsj_rest_lib2/entity/escopo_entity.py,sha256=T4bxFDzHJvIj-nZ_6d0Xh2oQg21HgoRjp19
|
|
|
43
43
|
nsj_rest_lib2/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
nsj_rest_lib2/service/entity_config_writer.py,sha256=QVgEO3Tv5g3dK8MQgCrWD9BZyCKV-BxBLfYNFi53PX8,5806
|
|
45
45
|
nsj_rest_lib2/service/entity_loader.py,sha256=kCAt0uKgnrw4gr48_xjspLDQzl_5PxyUYnM8W1YzIxs,39775
|
|
46
|
-
nsj_rest_lib2-0.0.
|
|
47
|
-
nsj_rest_lib2-0.0.
|
|
48
|
-
nsj_rest_lib2-0.0.
|
|
49
|
-
nsj_rest_lib2-0.0.
|
|
46
|
+
nsj_rest_lib2-0.0.38.dist-info/METADATA,sha256=wLrQQsYtubI7njehcqfLtwFtRmzuJ750EmxeFAx6eN4,8260
|
|
47
|
+
nsj_rest_lib2-0.0.38.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
48
|
+
nsj_rest_lib2-0.0.38.dist-info/top_level.txt,sha256=L6zh0EfH8_rur7OJ8_V-El-XEMf4qg3bkF8ADgqLVIA,14
|
|
49
|
+
nsj_rest_lib2-0.0.38.dist-info/RECORD,,
|
|
File without changes
|