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 requests using okhttp
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Option (scala)
  • 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