Commit Graph

168 Commits

Author SHA1 Message Date
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
Maxime Alves LIRMM ba44a01a45 [wip][routing] update routes scanner functions in lib.routes 2020-09-22 14:04:19 +02:00
Maxime Alves LIRMM c54101c3e6 [wip][routing] add routing functions in /lib/domains 2020-09-22 12:57:36 +02:00
Maxime Alves LIRMM 7337246fc1 [lib][routes] fix dict construction 2020-09-21 11:26:51 +02:00
Maxime Alves LIRMM 142ea24630 [routing] add the ACL name that returned True 2020-09-18 15:31:36 +02:00
Maxime Alves LIRMM bcc4a3e9d8 [routing] gives "keys" of the Acl row to the endpoint as kwargs 2020-09-18 11:59:44 +02:00
Maxime Alves LIRMM e8ed06a9b6 update api.sql with acl.keys 2020-09-16 14:18:37 +02:00
Joël Maïzi 31a8f68a0a [cli][domain] Remove misplaced elif in add_acls. 2020-09-16 12:21:52 +02:00
Maxime Alves LIRMM c97fa3b4c2 [acls] added "fields" value for acl table 2020-09-16 11:46:45 +02:00
Maxime Alves LIRMM 87cc59849a [acl] pass path_params arguments to next function as kwargs 2020-08-31 13:08:03 +02:00
Maxime Alves LIRMM@home 1b40b95d19 [auth] fix bug when "debug flag" = False in token 2020-08-27 18:09:48 +02:00
Maxime Alves LIRMM@home 51722b73f8 [package] fixed the "scripts" section of Pipfile 2020-08-27 17:47:58 +02:00
Maxime Alves LIRMM@home d944d45bbf [auth] added "debug flag" check and wrote relative tests close #12 2020-08-27 17:45:23 +02:00
Maxime Alves LIRMM ed54127c81 [cli] added the "config" command to the CLI, updated tests 2020-08-27 11:27:28 +02:00
Maxime Alves LIRMM 8d2be99068 [package] fixed some paths 2020-08-27 09:54:48 +02:00
Maxime Alves LIRMM 2389d67749 [conf] sets the HALFAPI_PROD environment variable 2020-08-26 14:06:53 +02:00
Maxime Alves LIRMM@home 30651ec19b [deps] jwt -> PyJWT 2020-08-07 02:08:22 +02:00
Maxime Alves LIRMM@home bdc131434b [conf] set SECRET in environ 2020-08-07 01:58:41 +02:00
Maxime Alves LIRMM@home 3849ba4500 [cli][domain] one more thing 2020-08-07 00:30:59 +02:00
Maxime Alves LIRMM@home 05a95d069b [cli][domain] continue to convert code ... 2020-08-07 00:28:46 +02:00
Maxime Alves LIRMM@home 63793a94e5 [cli][domain] forgot to remove argument 2020-08-07 00:26:29 +02:00
Maxime Alves LIRMM@home 51c319de20 [cli][domain] continue -> return 2020-08-07 00:24:58 +02:00
Maxime Alves LIRMM@home 976ba9b808 [cli][domain] update_db is now run with a string as argument 2020-08-07 00:19:10 +02:00