Commit Graph

440 Commits

Author SHA1 Message Date
Maxime Alves LIRMM b651d90f0e [cli] add entry point to be just "halfapi" in Pipfile (__main__.py) 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM 0a34948b98 [cli] switch halfapi import to relative imports in cli.py 2020-10-07 09:55:03 +02:00
Maxime Alves LIRMM c41d0d8f8f [deps] jwt->PyJWT in Pipfile 2020-10-07 09:54:31 +02:00
Maxime Alves LIRMM 91ea25791b [doc] lib/domain.py annotation and comments 2020-10-07 09:54:09 +02:00
Maxime Alves LIRMM 0cd7c987e5 pylint lib/acl.py 2020-10-07 09:54:09 +02:00
Joël Maïzi 6653a0cd0a Fix wrong dependency jwt -> pyjwt. 2020-10-05 11:39:55 +02:00
Maxime Alves LIRMM 2d51f260cd [clean] remove cli/lib dir 2020-10-05 11:33:28 +02:00
Maxime Alves LIRMM 8fc1ba6c91 [doc] cli/domain.py 2020-10-05 11:31:53 +02:00
Maxime Alves LIRMM 9753f4be95 [doc] cli/run.py 2020-10-05 11:30:18 +02:00
Maxime Alves LIRMM 584e0b6584 [doc] cli/run.py 2020-10-05 11:29:17 +02:00
Maxime Alves LIRMM 82e2ccbdbc [tests] fix tests according to abfaf2e1 2020-10-05 11:28:50 +02:00
Maxime Alves LIRMM a6f2187032 [doc][style] cli/init.py 2020-10-05 11:23:44 +02:00
Maxime Alves LIRMM 1ee5da1588 [tests][jwt] fixs tests according to abfaf2e1 2020-10-05 11:18:47 +02:00
Maxime Alves LIRMM 1d0d3563cb [style] Clean cli/__init__.py 2020-10-05 11:10:34 +02:00
Maxime Alves LIRMM 91581f9ae6 [docs][style] cli/config.py 2020-10-05 11:10:00 +02:00
Maxime Alves LIRMM 6ac0b5acd9 [doc] cli/cli.py 2020-10-05 11:08:27 +02:00
Maxime Alves LIRMM 77598b8453 [doc][style] document fonctions and fix variable names 2020-10-05 11:04:32 +02:00
Maxime Alves LIRMM ad1fed7117 [doc] add docstring to conf.py 2020-10-05 10:57:40 +02:00
Maxime Alves LIRMM 59ed5884ce [style] rename exceptions (e) as exc (pep8 style) 2020-10-05 10:55:55 +02:00
Maxime Alves LIRMM 5c4e81d5d2 [jwt_mw] Refuse DEBUG tokens in PROD mode with websockets 2020-10-05 10:55:55 +02:00
Maxime Alves LIRMM 21950aa6cd [cli] remove lib/db 2020-10-05 10:55:55 +02:00
Joël Maïzi abfaf2e1ea [acls] Fix wrong key in payload for decoded JWT. 2020-10-05 10:48:00 +02:00
Maxime Alves LIRMM 333aca9e2c [app] clean code 2020-10-05 10:09:01 +02:00
Maxime Alves LIRMM b6e511a96d [lib][domain/routes] clean code, use "yield from" 2020-10-04 18:09:23 +02:00
Maxime Alves LIRMM deb41be3e8 [deps] added pylint as devdep 2020-10-04 17:27:24 +02:00
Maxime Alves LIRMM 429b26dec6 clean code + logs in conf 2020-10-04 17:27:02 +02:00
Maxime Alves LIRMM c603727190 [test] adjust test_gen_router_routes to fit the new behaviour 2020-10-04 17:26:36 +02:00
Maxime Alves LIRMM 74e0b3dc54 [acls] treat decorator as acl in route decorator 2020-09-30 10:59:03 +02:00
Joël Maïzi 31878d971e [routes] Add halfapi routes in production. 2020-09-30 10:31:52 +02:00
Maxime Alves LIRMM b89e03746f [acls] Allows decorators to be used as acls (fct=acl.public). 2020-09-30 10:31:25 +02:00
Maxime Alves LIRMM 79210e503e [acls] /halfapi/acls posé 2020-09-30 08:07:55 +02:00
Maxime Alves LIRMM 360f59b6ba [schema] fixes non-str keys in ORJSONResponse 2020-09-29 15:29:54 +02:00
Joël Maïzi 7d6bc2c181 [router][api] Fix GET / 2020-09-29 15:08:35 +02:00
Joël Maïzi 0a94f71dad [routing] Fix api representation (remove duplicates and fct). 2020-09-29 13:51:54 +02:00
Maxime Alves LIRMM e223c0791c [routing] fix route description when there is multiple verbs 2020-09-29 11:12:45 +02:00
Joël Maïzi d93fb23bba [0.2.1] Allows route parameters without acls. The route is deactivated. 2020-09-29 09:52:20 +02:00
Maxime Alves LIRMM 3530f53820 [routing] handle fqtn parameter in domain schema + get_api_routes (/) + /user -> /halfapi/current_user 2020-09-28 17:22:27 +02:00
Maxime Alves LIRMM@home f0d980e035 [0.2.0] Remove any reference to databases, clean clode, doc 2020-09-25 01:06:57 +02:00
Maxime Alves LIRMM@home 246c9224e3 [tests] all tests updated to fit new fixture 2020-09-25 01:06:21 +02:00
Maxime Alves LIRMM@home 70723ea580 [tests] add acl.py to dummy_domain 2020-09-25 01:05:27 +02:00
Maxime Alves LIRMM@home 4ef7ae377a [deps] add orjson dependency 2020-09-24 20:48:52 +02:00
Maxime Alves LIRMM@home 6a81c61649 [cli][domain] Re-implementation of list_routes, using .lib.schemas, add DOMAINSDICT constant in configuration, set a lot of default configurations 2020-09-24 19:49:16 +02:00
Maxime Alves LIRMM 2ad0b3a14b [doc][route] /schema - implementation of doc generation 2020-09-23 15:23:36 +02:00
Maxime Alves LIRMM 2610d9f089 forgot to import typ 2020-09-23 11:15:53 +02:00
Maxime Alves LIRMM 65797873da [lib][responses] include new responses in __all__ 2020-09-23 11:00:59 +02:00
Maxime Alves LIRMM d6075de2eb [lib][responses] add ORJSONResponse and update HJSONResponse 2020-09-23 10:56:32 +02:00
Maxime Alves LIRMM 39d455b682 if the route begin with a "/" we remove it 2020-09-22 16:11:32 +02:00
Maxime Alves LIRMM a78e6ebc75 [wip][routing] get_fct_name update 2020-09-22 15:46:58 +02:00
Maxime Alves LIRMM 5f7d66d4d6 [wip][routing] updated lib.domain function names 2020-09-22 14:54:45 +02:00
Maxime Alves LIRMM 38798549f6 [wip][app] adapt code to new router functions 2020-09-22 14:11:00 +02:00