From c0388d58c1719eb1e53a9a5a046a5d91ef41ab1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:34:25 +0000 Subject: [PATCH] few renames --- api/kiwi_vpn_api/routers/device.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/kiwi_vpn_api/routers/device.py b/api/kiwi_vpn_api/routers/device.py index b27e4b1..8b38410 100644 --- a/api/kiwi_vpn_api/routers/device.py +++ b/api/kiwi_vpn_api/routers/device.py @@ -90,19 +90,19 @@ async def remove_device( }, response_model=DeviceRead, ) -async def request_certificate( +async def request_certificate_issuance( current_user: User = Depends(get_current_user), device: Device = Depends(get_device_by_id), ) -> Device: """ - POST ./{device_id}/issue: Request certificate for a device. + POST ./{device_id}/issue: Request certificate issuance for a device. """ # check permission if not current_user.can_edit(device): raise HTTPException(status_code=status.HTTP_403_FORBIDDEN) - # cannot request for a newly created device + # can only request for a newly created device if device.approved is not None: raise HTTPException(status_code=status.HTTP_409_CONFLICT)