Commit Graph

57 Commits

Author SHA1 Message Date
Nicolas Roche 5d8b8b5bea utils: add date type to endpoint parameters (#72641) 2022-12-23 10:18:16 +01:00
Valentin Deniaud 989fb52719 misc: apply pyupgrade (#61865) 2022-09-29 16:22:29 +02:00
Thomas NOËL 05a3a55e75 tests: remove use of pytest-httpbin (#63302) 2022-03-31 12:05:18 +02:00
Lauréline Guérin 6e4508cb1f
misc: fix use-dict-literal pylint error (#62099) 2022-03-25 11:38:47 +01:00
Lauréline Guérin 7c525dc946
misc: fix unneeded-not pylint error (#62099) 2022-03-25 11:38:47 +01:00
Lauréline Guérin 10af7de01c
misc: fix reimported pylint error (#62099) 2022-03-25 09:03:39 +01:00
Lauréline Guérin bfb26d164c
misc: fix disallowed-name pylint error (#62099) 2022-03-25 09:03:38 +01:00
Lauréline Guérin 2e59a6c4be
misc: fix useless-object-inheritance pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 3dbee7bc63
misc: fix consider-using-with pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 59182339ab
misc: fix redundant-u-string-prefix pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin 35512c9c2f
misc: remove unused-variable pylint error (#62099) 2022-03-25 09:03:36 +01:00
Lauréline Guérin c1074b68fc
misc: fix unused-import pylint error (#62099) 2022-03-25 09:03:35 +01:00
Lauréline Guérin 302e573f70
misc: fix super-with-arguments pylint error (#62099) 2022-03-25 09:03:35 +01:00
Lauréline Guérin dbb8416537
misc: add __init__ file to tests dir (#62099) 2022-03-25 08:24:24 +01:00
Lauréline Guérin 4f81932315
views: add a log on endpoint result (#60911) 2022-01-24 08:59:35 +01:00
Serghei Mihai 19d73d8c41 arcgis: remove Nancy specific 'district' endpoint (#57633) 2021-10-21 11:36:17 +02:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Nicolas Roche 0114f77618 api: add support for description of put endpoints (#53480) 2021-04-28 13:56:10 +02:00
Nicolas Roche c693de3344 logs: log 405 error as warning using ProxyLogger (#51263) 2021-03-18 10:51:12 +01:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Lauréline Guérin eeeea14a5d
django22: import django.urls (#49188) 2021-01-04 14:05:14 +01:00
Benjamin Dauvergne 982a207c65 tests: factorize user fixtures (#20851) 2020-12-14 16:21:19 +01:00
Benjamin Dauvergne 091805bc83 misc: only show endpoints documentation to unlogged users (#20851) 2020-12-14 16:21:19 +01:00
Lauréline Guérin 29333afec9
generic endpoint: automatic id & q handle (#43751) 2020-12-14 10:26:45 +01:00
Benjamin Dauvergne 860715e799 misc: add parameter to declare schema of response body (#21774) 2020-11-06 13:41:54 +01:00
Thomas NOËL 64048399a1 remove contrib.maarch (#43487) 2020-06-17 12:00:32 +02:00
Lauréline Guérin 2c6e9c2fea
generic endpoint: define optional category for display (#17729) 2020-05-07 14:48:52 +02:00
Lauréline Guérin 0551e34f78
generic endpoint: define optional ordering for display (#17730) 2020-04-30 15:20:26 +02:00
Valentin Deniaud 136766cca1 misc: find logs corresponding to the same API call (#38157) 2020-03-31 16:54:11 +02:00
Valentin Deniaud 01293dea36 views: improve jsonchema validation error message (#38338) 2020-02-13 14:07:15 +01:00
Valentin Deniaud 7692cda5a4 utils: try to guess type of params (#38328)
And fix a bug where they did not appear in documentation.
2020-02-06 14:05:20 +01:00
Emmanuel Cazenave cbec518b41 tests: use repr() in error message (#38781) 2020-01-29 10:30:46 +01:00
Lauréline Guérin 4ddf22f10e
jsonschema: pre_process the payload, before schema validation (#38933) 2020-01-14 14:01:52 +01:00
Valentin Deniaud d2d7aaf294 utils: authorize admin access to all endpoints (#38365) 2019-12-12 10:38:51 +01:00
Nicolas Roche 4f241c619f misc: add long_description for endpoints (#38215) 2019-12-05 17:11:49 +01:00
Valentin Deniaud 2e6ced30d6 api: avoid ending up with unescaped & in html (#38033) 2019-12-04 16:30:37 +01:00
Lauréline Guérin c2eee211eb
base resource: add automatic 'up' endpoint (#21978)
if method 'check_status' is defined, provide a 'up' endpoint
2019-10-15 11:01:30 +02:00
Valentin Deniaud eca46f8bd8 general: add support for explicit int and float query params (#36609) 2019-10-03 16:16:15 +02:00
Benjamin Dauvergne a4ac62ce39 mdel: move into apps/ (#15687) 2019-09-20 21:57:13 +02:00
Benjamin Dauvergne 5793a44733 tests: do not create a fake ressource model (#30221) 2019-02-12 15:17:59 +01:00
Benjamin Dauvergne 47d5994e8e utils: hide SSL warnings when verify is False (fixes #30221) 2019-02-12 15:06:25 +01:00
Benjamin Dauvergne bd01462050 tests: pep8ness, style, escape sequence in regexp pattern (#30221)
Also fix python2ism.
2019-02-12 15:04:44 +01:00
Frédéric Péters d098de396c general: move logging parameters to its own model (#27162)
(and remove the NOTSET level during the migration)
2018-11-19 12:14:44 +01:00
Thomas NOËL a00003f1e9 move ArcGIS from contrib to apps (#17763) 2018-11-06 11:42:10 +01:00
Thomas NOËL 3049f82af4 generalize ArcGIS connector (#17763) 2018-11-06 11:42:02 +01:00
Emmanuel Cazenave 58b5415b87 allow cookies usage in endpoint requests (#27654) 2018-11-06 09:51:23 +01:00
Frédéric Péters b40ba221e0 tests: adapt to logging changes 2018-08-17 15:22:25 +02:00
Frédéric Péters fbe5473013 general: don't log anything for connectors that are down (#25611) 2018-08-17 14:51:05 +02:00
Emmanuel Cazenave 86a91e41e1 add cache for connector endpoint (#24640) 2018-07-02 15:46:59 +02:00
Thomas NOËL f6a14c375b utils: rename utils.LoggedRequest as utils.Request (#20789)
... because it will not only used for logging.
2017-12-19 10:22:15 +01:00