aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/Notifications.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-12-07 18:32:27 +0300
committerGravatar Vitaly Takmazov2020-12-07 18:33:10 +0300
commit8e9b670b272b8f030a1035cb7918e9fc0fea89a5 (patch)
tree79326bdfb119728a3dea37316c555ea2ca638a73 /src/main/java/com/juick/www/api/Notifications.java
parent75b985391dc47d11edc87fee099a85dc30edd386 (diff)
springfox -> springdoc
Diffstat (limited to 'src/main/java/com/juick/www/api/Notifications.java')
-rw-r--r--src/main/java/com/juick/www/api/Notifications.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/juick/www/api/Notifications.java b/src/main/java/com/juick/www/api/Notifications.java
index e0326225..76bb4380 100644
--- a/src/main/java/com/juick/www/api/Notifications.java
+++ b/src/main/java/com/juick/www/api/Notifications.java
@@ -29,6 +29,7 @@ import com.juick.service.SubscriptionService;
import com.juick.service.TelegramService;
import com.juick.service.UserService;
import com.juick.service.security.annotation.Visitor;
+import io.swagger.v3.oas.annotations.Hidden;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
@@ -38,7 +39,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
-import springfox.documentation.annotations.ApiIgnore;
import javax.inject.Inject;
import java.util.Collections;
@@ -82,7 +82,7 @@ public class Notifications {
return user;
}
- @ApiIgnore
+ @Hidden
@RequestMapping(value = "/api/notifications", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<List<User>> doGet(
@Visitor User visitor,
@@ -117,7 +117,7 @@ public class Notifications {
}
}
- @ApiIgnore
+ @Hidden
@RequestMapping(value = "/api/notifications", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Status> doDelete(
@Visitor User visitor,
@@ -143,7 +143,7 @@ public class Notifications {
return ResponseEntity.ok(Status.OK);
}
- @ApiIgnore
+ @Hidden
@RequestMapping(value = "/api/notifications/delete", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Status> doDeleteTokens(
@Visitor User visitor,
@@ -170,7 +170,7 @@ public class Notifications {
return ResponseEntity.ok(Status.OK);
}
- @ApiIgnore
+ @Hidden
@RequestMapping(value = "/api/notifications", method = RequestMethod.PUT, produces = MediaType.APPLICATION_JSON_VALUE)
public Status doPut(
@Visitor User visitor,