Maxime Alves LIRMM
|
e590bc31fe
|
[doc] lib/domain, lib/domain_middlware
|
2020-10-07 16:13:54 +02:00 |
Maxime Alves LIRMM
|
3959e6d614
|
[tests] add dummy_domain as a testing dependency (because domains can't
be "not installed" in sys.path)
|
2020-10-07 15:51:24 +02:00 |
Maxime Alves LIRMM
|
1e1ff2fb69
|
[routes] skip acls that are falsy
|
2020-10-07 15:50:50 +02:00 |
Maxime Alves LIRMM
|
63b73a2bc1
|
[middleware][domain] load api and acl objects at each call (TODO: use a cache)
|
2020-10-07 15:49:49 +02:00 |
Maxime Alves LIRMM
|
710d390b49
|
[cli][conf] suppression of BASE_DIR option (now defaults to os.getcwd)
|
2020-10-07 15:48:48 +02:00 |
Maxime Alves LIRMM
|
cb5724b4fa
|
[doc] lib/domain_middleware
|
2020-10-07 13:37:31 +02:00 |
Maxime Alves LIRMM
|
23bd876c4c
|
[conf] fix list comprehension
|
2020-10-07 09:55:03 +02:00 |
Maxime Alves LIRMM
|
40547ddf30
|
[tests][OK] Using a dummy_domain, adding it and listing it's routes
|
2020-10-07 09:55:03 +02:00 |
Maxime Alves LIRMM
|
f5ebabbcd4
|
[refactor] update to avoid using global variables, and configuration are not stored in /etc/half_api anymore
Added domain_middleware
|
2020-10-07 09:55:03 +02:00 |
Maxime Alves LIRMM
|
781736c151
|
[logs] print -> logger lib.domain
|
2020-10-07 09:55:03 +02:00 |
Maxime Alves LIRMM
|
acb0a46904
|
[deps] add PyYAML to dependencies
|
2020-10-07 09:55:03 +02:00 |
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 |