Dietmar Maurer
|
f120483353
|
server/rest.rs: add proxy_sync_api_request() dummy
|
2019-01-28 17:30:39 +01:00 |
|
Dietmar Maurer
|
4e4df8e2f0
|
api/router.rs: add new 'protected' flag to ApiMethod
|
2019-01-28 17:18:42 +01:00 |
|
Dietmar Maurer
|
d7d23785f0
|
RpcEnvironment: implement set_user() and get_user()
|
2019-01-27 10:52:26 +01:00 |
|
Dietmar Maurer
|
162b979394
|
RpcEnvironment: add environment type enum RpcEnvironmentType
|
2019-01-27 10:33:42 +01:00 |
|
Dietmar Maurer
|
e82dad9700
|
also pass rpcenv to async handlers
|
2019-01-27 10:18:52 +01:00 |
|
Dietmar Maurer
|
6049b71f41
|
api: pass RpcEnvirnment to api handlers
|
2019-01-26 14:50:37 +01:00 |
|
Dietmar Maurer
|
50cfb695ae
|
api/router.rs: rename ApiUploadMethod to ApiAsyncMethod
We can use this for uploads and downloads ...
|
2019-01-19 16:42:43 +01:00 |
|
Dietmar Maurer
|
83bdac1e3b
|
api3/admin/datastore/upload_catar.rs: verify content type ("application/x-proxmox-backup-catar")
|
2019-01-17 12:43:29 +01:00 |
|
Dietmar Maurer
|
0ee0ad5bf3
|
api/router.rs: return Result in upload handler
|
2019-01-17 12:03:38 +01:00 |
|
Dietmar Maurer
|
7e21da6e23
|
api/router.rs: allow different types of api methods
Added a prototype for file/backup uploads.
|
2019-01-14 12:26:04 +01:00 |
|
Dietmar Maurer
|
a4b7c3f2df
|
more cleanups
|
2018-12-06 10:41:57 +01:00 |
|
Dietmar Maurer
|
d3369f819d
|
code cleanup
|
2018-12-06 10:23:45 +01:00 |
|
Dietmar Maurer
|
3e1497fb75
|
remove description from ApiMethod
We use the description from parameters ObjectSchema instead.
|
2018-11-23 17:02:50 +01:00 |
|
Dietmar Maurer
|
a653882dd9
|
use ObjectSchema for parameters
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
|
2018-11-18 08:46:26 +01:00 |
|
Dietmar Maurer
|
c548fa250a
|
router: no need to use Fn (fn also works for static closures)
|
2018-11-16 11:12:00 +01:00 |
|
Dietmar Maurer
|
e7ea17deb0
|
handle uri parameters correctly
|
2018-11-16 09:15:33 +01:00 |
|
Dietmar Maurer
|
484eb9ac19
|
Router: allow to set match parameter name
|
2018-11-16 08:29:23 +01:00 |
|
Dietmar Maurer
|
2ab1f7119c
|
Router: implement missing builder methods
|
2018-11-16 08:24:10 +01:00 |
|
Dietmar Maurer
|
fc937099b3
|
remove stale macro
|
2018-11-16 07:35:19 +01:00 |
|
Dietmar Maurer
|
fe476ce884
|
allow closure handlers
|
2018-11-15 17:47:59 +01:00 |
|
Dietmar Maurer
|
cbbeff1a6d
|
add missing file
|
2018-11-15 17:07:55 +01:00 |
|