add @Produces annotations to a few methods in DeviceController

This commit is contained in:
Jonathan Klabunde Tomer
2023-05-25 07:57:06 -07:00
committed by GitHub
parent c2317e8493
commit 1ab6bff54e
2 changed files with 30 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ public class DeviceController {
@Timed
@DELETE
@Produces(MediaType.APPLICATION_JSON)
@Path("/{device_id}")
@ChangesDeviceEnabledState
public void removeDevice(@Auth AuthenticatedAccount auth, @PathParam("device_id") long deviceId) {
@@ -217,6 +218,7 @@ public class DeviceController {
@Timed
@PUT
@Produces(MediaType.APPLICATION_JSON)
@Path("/unauthenticated_delivery")
public void setUnauthenticatedDelivery(@Auth AuthenticatedAccount auth) {
assert (auth.getAuthenticatedDevice() != null);
@@ -225,6 +227,7 @@ public class DeviceController {
@Timed
@PUT
@Produces(MediaType.APPLICATION_JSON)
@Path("/capabilities")
public void setCapabilities(@Auth AuthenticatedAccount auth, @NotNull @Valid DeviceCapabilities capabilities) {
assert (auth.getAuthenticatedDevice() != null);