ch.software_atelier.simpleflex.rest.swagger.HeaderParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleflex-rest Show documentation
Show all versions of simpleflex-rest Show documentation
REST Extension for the simpleflex-base webserver
package ch.software_atelier.simpleflex.rest.swagger;
import org.json.JSONObject;
public class HeaderParameter extends Parameter{
public HeaderParameter(String name, String description){
super(name);
setDescription(description);
setRequired(true);
}
@Override
public JSONObject toJSON(){
JSONObject result = super.toJSON();
result.put("in","header");
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy