Skip to content

Commit

Permalink
change annotation to RestControler to include it in the swagger console
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Mar 19, 2024
1 parent 31d18dc commit 5cc9270
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import eu.europeana.api.common.config.swagger.SwaggerSelect;
import org.springframework.web.bind.annotation.RestController;
import eu.europeana.api.commons.definitions.statistics.UsageStatsFields;
import eu.europeana.api.commons.definitions.statistics.set.SetMetric;
import eu.europeana.api.commons.definitions.vocabulary.CommonApiConstants;
Expand All @@ -43,8 +42,7 @@
import eu.europeana.set.web.utils.UserSetXMLSerializer;
import io.swagger.v3.oas.annotations.tags.Tag;

@Controller
@SwaggerSelect
@RestController
@Tag(name = "Auxiliary Methods")
public class AuxiliaryMethodsRest extends BaseRest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import eu.europeana.api.common.config.swagger.SwaggerSelect;
import org.springframework.web.bind.annotation.RestController;
import eu.europeana.api.commons.definitions.search.ResultSet;
import eu.europeana.api.commons.definitions.vocabulary.CommonApiConstants;
import eu.europeana.api.commons.web.exception.HttpException;
Expand All @@ -38,8 +37,7 @@
import eu.europeana.set.web.service.controller.BaseRest;
import io.swagger.v3.oas.annotations.tags.Tag;

@Controller
@SwaggerSelect
@RestController
@Tag(name = "User Set Discovery API")
public class SearchUserSetRest extends BaseRest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.DeleteMapping;
Expand All @@ -23,8 +22,8 @@
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 com.fasterxml.jackson.core.JsonParseException;
import eu.europeana.api.common.config.swagger.SwaggerSelect;
import eu.europeana.api.commons.definitions.config.i18n.I18nConstants;
import eu.europeana.api.commons.definitions.exception.DateParsingException;
import eu.europeana.api.commons.definitions.utils.DateUtils;
Expand Down Expand Up @@ -60,8 +59,7 @@
* This class implements the User Set - REST API
*/

@Controller
@SwaggerSelect
@RestController
@Tag(name = "Web User Set API", description= "Perform CRUD Operations for User Sets" )
public class WebUserSetRest extends BaseRest {

Expand Down

0 comments on commit 5cc9270

Please sign in to comment.