Tabnine Logo
Authorization
Code IndexAdd Tabnine to your IDE (free)

How to use
Authorization
in
com.wordnik.swagger.annotations

Best Java code snippets using com.wordnik.swagger.annotations.Authorization (Showing top 6 results out of 315)

origin: wkennedy/swagger4spring-web

public void addAuthorizations(final com.wordnik.swagger.annotations.Authorization[] authorizations) {
  if (ArrayUtils.isEmpty(authorizations)) {
    return;
  }
  for (com.wordnik.swagger.annotations.Authorization authorization : authorizations) {
    AuthorizationScope[] authorizationScopes = new AuthorizationScope[authorization.scopes().length];
    for(int i = 0;i < authorization.scopes().length;i++) {
      com.wordnik.swagger.annotations.AuthorizationScope authScope = authorization.scopes()[i];
      authorizationScopes[i] = new AuthorizationScope(authScope.scope(), authScope.description());
    }
    this.authorizations.add(new Authorization(authorization.value(), authorizationScopes));
  }
}
origin: fluxtream/fluxtream-app

@DELETE
@Path(value="/mainCity/date/{date}")
@ApiOperation(value = "Remove cities that have been manually entered by the end-user.", response = String.class,
    authorizations = {@Authorization(value="oauth2")})
public Response resetDayMainCity(@ApiParam(value="Date (YYYY-MM-DD)", required=true) @PathParam("date") String date) {
  final long guestId = AuthHelper.getGuestId();
  StringBuilder sb = new StringBuilder("module=API component=calendarController action=resetDayMainCity")
      .append(" guestId=").append(guestId);
  logger.info(sb.toString());
  metadataService.resetDayMainCity(guestId, date);
  return Response.ok("OK").build();
}
origin: com.mangofactory/swagger-springmvc

if (authorizationAnnotations != null
    && authorizationAnnotations.length > 0
    && StringUtils.hasText(authorizationAnnotations[0].value())) {
  String value = authorization.value();
  AuthorizationScope[] scopes = authorization.scopes();
  List<com.mangofactory.swagger.models.dto.AuthorizationScope> authorizationScopeList = newArrayList();
  for (AuthorizationScope authorizationScope : scopes) {
origin: fluxtream/fluxtream-app

@POST
@Path(value="/mainCity/date/{date}")
@ApiOperation(value = "Set the main city for a given day using lat/lon coordinates.", response = String.class,
    notes="(we figure out the actual city from the coordinates)",
    authorizations = {@Authorization(value="oauth2")})
public Response setDayMainCity(@ApiParam(value="Latitude", required=true) @FormParam("latitude") float latitude,
                 @ApiParam(value="Longitude", required=true) @FormParam("longitude") float longitude,
                 @ApiParam(value="Date (YYYY-MM-DD)", required=true) @PathParam("date") String date) {
  final long guestId = AuthHelper.getGuestId();
  StringBuilder sb = new StringBuilder("module=API component=calendarController action=setDayMainCity")
      .append(" guestId=").append(guestId);
  logger.info(sb.toString());
  metadataService.setDayMainCity(guestId, latitude, longitude, date);
  return Response.ok("OK").build();
}
origin: com.github.springdox/springdox-swagger-common

if (authorizationAnnotations != null
    && authorizationAnnotations.length > 0
    && StringUtils.hasText(authorizationAnnotations[0].value())) {
  String value = authorization.value();
  AuthorizationScope[] scopes = authorization.scopes();
  List<springdox.documentation.service.AuthorizationScope> authorizationScopeList = newArrayList();
  for (AuthorizationScope authorizationScope : scopes) {
origin: fluxtream/fluxtream-app

    authorizations = {@Authorization(value="oauth2")})
@Component("RESTMetadataController")
@Scope("request")
com.wordnik.swagger.annotationsAuthorization

Most used methods

  • scopes
  • value
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JComboBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now