Commit Graph

45 Commits

Author SHA1 Message Date
Benjamin Dauvergne 4524cb32e0 misc: python3 compatibility (#41302) 2020-04-06 14:06:40 +02:00
Benjamin Dauvergne c3dbb781a9 add setting to disable UUID check on authentic (fixes #21453) 2018-01-26 22:24:06 +01:00
Benjamin Dauvergne 567731d6bd fix pylint warnings as exercise 2017-10-18 16:53:51 +02:00
Benjamin Dauvergne a968380ae5 ensure concurrent PUT does not raise an IntegrityError (fixes #19384) 2017-10-11 18:23:13 +02:00
Benjamin Dauvergne 2a1cec8205 api_views: test if file exists before returning the StreamingHttpResponse 2017-09-27 17:26:59 +02:00
Benjamin Dauvergne 430a9d0fbc renvoyer key-not-found sur un GET d'une clé inconnue d'un pétale existant (fixes #17810) 2017-07-26 16:11:21 +02:00
Benjamin Dauvergne 078242c3d3 api_views: create CUT object when CUT is known from authentic but not from petale 2017-07-26 00:08:47 +02:00
Benjamin Dauvergne 550120441b api_views: do not check SSL certificate of authentic, we are in a walled garden 2017-07-21 14:57:05 +02:00
Benjamin Dauvergne f974052a2b api_views: log when a CUT id is unknown 2017-07-21 14:56:45 +02:00
Benjamin Dauvergne 8be9cea025 api_views: use received credentials when checking cut_id on authentic 2017-07-21 14:16:25 +02:00
Josue Kouka fc3b6e5ae1 add idp based cut control (#14976) 2017-07-21 10:53:43 +02:00
Josue Kouka cde0489217 api: add cut's petals purge (#17605) 2017-07-19 17:00:45 +02:00
Benjamin Dauvergne 7b242a4fc5 api: fix extraction of If-Match header in DELETE endpoint (fixes #15791) 2017-04-07 10:14:00 +02:00
Benjamin Dauvergne 3db90a8004 api: handle PreconditionException in the DELETE endpoint (fixes #15791) 2017-04-07 09:52:51 +02:00
Frédéric Péters fc7b099cc6 fix exception handling for missing partners (#15685) 2017-03-30 08:52:40 +02:00
Benjamin Dauvergne a3a56dbb0f never returns cut-not-found until we really check against authentic 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 6b88debc9c move implementation of limit checks and mail sending in models 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 43f74d45f5 do not load full request body into memory 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 00a9305a87 rename URL keywords
id_partner -> partner_name
id_cut -> cut_uuid
id_key -> petal_name
2017-03-29 23:21:53 +02:00
Benjamin Dauvergne 561ee48423 add migrations, rename model and fields
CUTIdentifier is renamed CUT.
partner_id is renamed partner and cut_id is renamed cut.
2017-03-29 23:21:53 +02:00
Benjamin Dauvergne 74c9ac409b clean everything 2017-03-29 17:17:11 +02:00
Benjamin Dauvergne d11cbee413 filter keys by ACLs (fixes #15503) 2017-03-20 10:56:37 +01:00
Benjamin Dauvergne 00026cfd17 rename parameter ?filter= to ?prefix= (fixes #15510) 2017-03-20 10:35:59 +01:00
Josue Kouka 4efbefe7bf return Content-Length in GET response (#15274) 2017-03-15 17:25:01 +01:00
Josue Kouka 2d324f1572 handle allowed methods in PetalPermission 2017-03-15 17:24:46 +01:00
Josue Kouka a74235367a misc: strip etags content 2017-03-14 18:34:50 +01:00
Josue Kouka 1d35d73c7f enforce size limitation control (#15350) 2017-03-14 16:50:49 +01:00
Josue Kouka 038c6e8203 improve caching handling (#14974) 2017-03-13 17:25:38 +01:00
Josue Kouka f6afe05058 return bad request error if content-type is missing 2017-03-13 14:16:22 +01:00
Josue Kouka c15f89b1f4 return 404 on HEAD if key not found (#15385) 2017-03-10 17:26:43 +01:00
Josue Kouka a38617a3e8 add head method (#15368) 2017-03-10 10:13:36 +01:00
Josue Kouka ff22efb1a4 log API requests and responses (#15366) 2017-03-09 20:14:06 +01:00
Josue Kouka 809a49b8ed handle if-none-match headers case (#15276) 2017-03-09 17:05:05 +01:00
Josue Kouka cc76ffe636 don't filter by content type when searching existing key (#15349) 2017-03-09 12:17:31 +01:00
Josue Kouka e3c8c32c06 return CUT Id associated keys (#15354) 2017-03-09 11:29:53 +01:00
Josue Kouka ec6cd06505 return empty dict in deletion response (#15351) 2017-03-09 10:34:52 +01:00
Josue Kouka ab24d92e5b improve binary file handling (#15280, #15281) 2017-03-08 10:39:43 +01:00
Josue Kouka df1098b3e5 change key response error message (#15277) 2017-03-08 10:38:18 +01:00
Josue Kouka bd0d67d7a0 add size limitation handling 2017-03-03 16:28:41 +01:00
Josue Kouka 9144a02581 add listing of keys 2017-03-03 14:23:13 +01:00
Josue Kouka 5b42f2e6c2 dont' handle data as json 2017-03-02 11:56:03 +01:00
Josue Kouka 8f9346f05e add concurrent access management 2017-03-01 16:57:20 +01:00
Josue Kouka b9f2ef8d32 add simple API Features 2017-03-01 15:00:30 +01:00
Josue Kouka f9145c3552 check for resources in view 2017-02-28 10:57:29 +01:00
Josue Kouka b85949e704 add api view 2017-02-20 11:23:00 +01:00