com.github.kongchen.swagger.docgen.mustache.MustacheAuthorization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-maven-plugin Show documentation
Show all versions of swagger-maven-plugin Show documentation
A maven build plugin which helps you generate API document during build phase
package com.github.kongchen.swagger.docgen.mustache;
import com.wordnik.swagger.model.Authorization;
import com.wordnik.swagger.model.AuthorizationScope;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by kong on 14-2-1.
*/
public class MustacheAuthorization {
private final List authorizationScopes = new ArrayList();
private final String type;
public MustacheAuthorization(Authorization authorization) {
this.type = authorization.type();
Collections.addAll(this.authorizationScopes, authorization.scopes());
}
public List getAuthorizationScopes() {
return authorizationScopes;
}
public String getType() {
return type;
}
}