You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2021/03/16 14:49:35 UTC
[syncope] 02/02: Adding missing Swagger annotations
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
commit 60c287c79ec89466fb5b8c645f459bec91c0ff8d
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Tue Mar 16 10:59:59 2021 +0100
Adding missing Swagger annotations
---
.../syncope/common/rest/api/service/wa/U2FRegistrationService.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/am/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/wa/U2FRegistrationService.java b/common/am/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/wa/U2FRegistrationService.java
index 1826f2d..3680546 100644
--- a/common/am/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/wa/U2FRegistrationService.java
+++ b/common/am/rest-api/src/main/java/org/apache/syncope/common/rest/api/service/wa/U2FRegistrationService.java
@@ -18,6 +18,8 @@
*/
package org.apache.syncope.common.rest.api.service.wa;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.headers.Header;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
@@ -67,6 +69,10 @@ public interface U2FRegistrationService extends JAXRSService {
@Produces({ MediaType.APPLICATION_JSON, RESTHeaders.APPLICATION_YAML, MediaType.APPLICATION_XML })
Response create(@NotNull @PathParam("owner") String owner, @NotNull U2FDevice device);
+ @Parameter(name = "key", description = "U2F device key", in = ParameterIn.PATH, schema =
+ @Schema(type = "string"))
+ @ApiResponses(
+ @ApiResponse(responseCode = "204", description = "Operation was successful"))
@PUT
@Path("{key}")
@Consumes({ MediaType.APPLICATION_JSON, RESTHeaders.APPLICATION_YAML, MediaType.APPLICATION_XML })