com.github.kongchen.swagger.docgen.remote.model.JTokenRequestEndpoint 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.remote.model;
import com.wordnik.swagger.model.TokenRequestEndpoint;
/**
* Created by chekong on 10/11/14.
*/
public class JTokenRequestEndpoint implements CanBeSwaggerModel {
private String url;
private String clientIdName;
private String clientSecretName;
public void setUrl(String url) {
this.url = url;
}
public void setClientIdName(String clientIdName) {
this.clientIdName = clientIdName;
}
public void setClientSecretName(String clientSecretName) {
this.clientSecretName = clientSecretName;
}
public String getUrl() {
return url;
}
public String getClientIdName() {
return clientIdName;
}
public String getClientSecretName() {
return clientSecretName;
}
public TokenRequestEndpoint toSwaggerModel() {
return new TokenRequestEndpoint(url, clientIdName, clientSecretName);
}
}