All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.software_atelier.simpleflex.rest.swagger.HeaderParameter Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
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