Commit Graph

351 Commits

Author SHA1 Message Date
Maxime Alves LIRMM@home 96f78e76c5 [tests][testfail] add default routes testing, /halfapi/acls fail 2021-12-04 09:56:14 +01:00
Maxime Alves LIRMM@home d54dcd641d [conf] fix secret tempfile creation 2021-12-04 00:28:30 +01:00
Maxime Alves LIRMM 7060d201ec [deps] optional requirements for ODSResponse 2021-12-03 17:26:14 +01:00
Maxime Alves LIRMM dbca2f28fb [conf] use of toml for halfapi configs. re-enable possibility of multiple domains 2021-12-03 17:25:57 +01:00
Maxime Alves LIRMM@home d06857bf49 [config][wip][nf] removal of "domains" and "domain" section 2021-12-03 09:49:30 +01:00
Maxime Alves LIRMM@home 3dc951c81e [tests] tidy cli tests 2021-12-03 09:20:40 +01:00
Maxime Alves LIRMM@home a8e5cfc0ff [wip][responses] allow to change return format with "format" route argument, add ODSResponse 2021-12-01 21:16:19 +01:00
Maxime Alves LIRMM@home 20cada4fa0 [halfapi] fix domain importlib 2021-12-01 21:14:17 +01:00
Maxime Alves LIRMM@home c1bb637be7 [lib.router] forbid extra-keys in routes dict (no more FQTN at same level of methods) 2021-12-01 21:13:35 +01:00
Maxime Alves LIRMM@home a37c2356d6 [lib.domain] error log when missing docstring 2021-12-01 21:12:19 +01:00
Maxime Alves LIRMM@home 038715e94a [halfapi] config option "--dry-run", used in test_domain 2021-12-01 21:11:26 +01:00
Maxime Alves LIRMM@home 2f9005a1a5 [release] 0.6.1 2021-12-01 17:02:56 +01:00
Maxime Alves LIRMM@home a2d79f49b9 [tests] dummy domain test (you can use this example in your own domain) 2021-12-01 17:02:23 +01:00
Maxime Alves LIRMM@home cf98b08fa5 [tests] mv base domain test to halfapi/testing 2021-12-01 17:01:56 +01:00
Maxime Alves LIRMM@home c1191bbb0e [deps] update deps 2021-12-01 16:25:53 +01:00
Maxime Alves LIRMM@home 837c646bc5 [ci] switch to bullseye-3.9 2021-12-01 15:49:59 +01:00
Maxime Alves LIRMM@home 49c13c56ac [lib.domain] implement domain schema - try: halfapi domain dummy_domain 2021-12-01 13:31:46 +01:00
Maxime Alves LIRMM@home 1ccfa0d10e [lib.schemas] router schema update 2021-12-01 13:07:01 +01:00
Maxime Alves LIRMM@home 238bd99bd3 [cli.routes] add json schema export 2021-12-01 13:06:00 +01:00
Maxime Alves LIRMM@home 429a90d786 [halfapi] fix typo 2021-12-01 12:21:26 +01:00
Maxime Alves LIRMM@home 1ec244b60f [lib.constants] route keys are optional, in case of empty routers 2021-12-01 12:20:32 +01:00
Maxime Alves LIRMM@home 53ecbb58fc [tests] rework some tests, avoid calling project_runner multiple times (should be tested better, but for now is just buggy imports...) 2021-12-01 12:20:01 +01:00
Maxime Alves LIRMM@home 7e7bbb3a62 [tests] fix de "project_runner" auto clean sys.path, "tree" fixture to debug projects 2021-12-01 12:16:31 +01:00
Maxime Alves LIRMM@home 5e88109b3e manipuler le sys.path : BAAAD 2021-12-01 12:14:27 +01:00
Maxime Alves LIRMM@home e293ac3867 [cli/domain] create domain function rework - creates a basic domain 2021-12-01 12:08:24 +01:00
Maxime Alves LIRMM@home a98aa27485 [pipfile] remove dependency to python3.8, TODO find a way to specify python>=3.8 2021-12-01 12:02:21 +01:00
Maxime Alves LIRMM@home 15794327f9 [tests] pytest.ini includes tests as pythonpath (because of dummy_domain) 2021-12-01 11:55:56 +01:00
Maxime Alves LIRMM@home cf20b76959 [deps] add pytest-pythonpath 2021-12-01 11:43:49 +01:00
Maxime Alves LIRMM 7e1cc21b8c [wip][testfail] update config monodomain - schema gives acls 2021-11-30 18:31:40 +01:00
Maxime Alves LIRMM ec26438340 [schemas] supression des fonctions api_routes 2021-11-30 14:40:07 +01:00
Maxime Alves LIRMM 7230316296 [ci] add pytest version 2021-11-30 12:13:17 +01:00
Maxime Alves LIRMM f5b7e3392a [tests] skip /halfapi/exception test 2021-11-30 12:07:19 +01:00
Maxime Alves LIRMM 18dbbdd584 [app] enable use of SCHEMA to run halfapi, fix tests 2021-11-30 11:20:26 +01:00
Maxime Alves LIRMM b3b32b47f8 [cli.run] halfapi run SCHEMA.csv 2021-11-30 10:42:00 +01:00
Maxime Alves LIRMM 189fcf86f7 [cli.routes] halfapi routes --export 2021-11-30 01:54:48 +01:00
Maxime Alves LIRMM 55878df260 [lib.domain] use args_check by default, even on async functions 2021-11-30 01:52:02 +01:00
Maxime Alves LIRMM a6985fa9bf [halfapi] configuration globals go lowercase 2021-11-30 01:50:27 +01:00
Maxime Alves LIRMM ed6dcb0513 [halfapi] application becomes a private attribute 2021-11-30 01:49:37 +01:00
Maxime Alves LIRMM 7017827b2b [lib] small fixes 2021-11-30 01:46:30 +01:00
Maxime Alves LIRMM 7c2bf60812 [pytest] remove halfapi from tests directory 2021-11-30 01:43:14 +01:00
Maxime Alves LIRMM 1fda2ab15d [lib.schemas] add schema_csv_dict and schema_to_csv function 2021-11-30 01:42:29 +01:00
Maxime Alves LIRMM c9639ddbc0 [constants] add lib "schema" Schemas for all items 2021-11-30 00:37:13 +01:00
Maxime Alves LIRMM 24bd3f5653 [deps] add "schema" as dependency 2021-11-29 17:01:52 +01:00
Maxime Alves LIRMM@home e203552876 [dummy_domain] add async routes, and routes that use arguments 2021-11-29 08:37:52 +01:00
Maxime Alves LIRMM@home ac4aadc2df [conf][testfail] add SCHEMA dictionary to globals 2021-11-29 06:21:48 +01:00
Maxime Alves LIRMM@home 4dae2f3676 [dummy_domain] add tests for dummy_domain acls 2021-11-29 06:09:18 +01:00
Maxime Alves LIRMM@home c27ed3a966 [routers] docstring is mandator in route methods. YAML is used for markup 2021-11-29 06:08:24 +01:00
Maxime Alves LIRMM@home 47d81c048f [lib] route_acl_decorator becomes HalfRoute.acl_decorator, creation of HalfRoute that wraps starlette.route 2021-11-29 05:42:26 +01:00
Maxime Alves LIRMM ad6877a7e9 [run] add arguments for config 2021-11-23 13:53:08 +01:00
Maxime Alves LIRMM e7e1bfed1b [conf] halfapi config now dumps the .ini of the current config 2021-11-23 13:35:12 +01:00