/** * Adds one or more values to the <property>examples</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public ResponseInfo addExamples(Map<String,Object> values) { examples = addToMap(examples, values); return this; }
/** * Adds a single value to the <property>examples</property> property. * * @param mimeType The mime-type string. * @param example The example. * @return This object (for method chaining). */ public ResponseInfo example(String mimeType, Object example) { examples = addToMap(examples, mimeType, example); return this; }
/** * Adds one or more values to the <property>x-examples</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public ParameterInfo addExamples(Map<String,String> values) { examples = addToMap(examples, values); return this; }
/** * Adds a single value to the <property>definitions</property> property. * * @param name A definition name. * @param schema The schema that the name defines. * @return This object (for method chaining). */ public Swagger definition(String name, ObjectMap schema) { definitions = addToMap(definitions, name, schema); return this; }
/** * Adds one or more values to the <property>headers</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public ResponseInfo addHeaders(Map<String,HeaderInfo> values) { headers = addToMap(headers, values); return this; }
/** * Adds a single value to the <property>examples</property> property. * * @param mimeType The mime-type string. * @param example The example. * @return This object (for method chaining). */ public ResponseInfo example(String mimeType, Object example) { examples = addToMap(examples, mimeType, example); return this; }
/** * Adds one or more values to the <property>scopes</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public SecurityScheme addScopes(Map<String,String> values) { scopes = addToMap(scopes, values); return this; }
/** * Adds a single value to the <property>x-examples</property> property. * * @param name The extra property name. * @param value The extra property value. * @return This object (for method chaining). */ public ParameterInfo example(String name, String value) { examples = addToMap(examples, name, value); return this; }
/** * Adds a single value to the <property>parameter</property> property. * * @param name The parameter name. * @param parameter The parameter definition. * @return This object (for method chaining). */ public Swagger parameter(String name, ParameterInfo parameter) { parameters = addToMap(parameters, name, parameter); return this; }
/** * Adds one or more values to the <property>scopes</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public SecurityScheme addScopes(Map<String,String> values) { scopes = addToMap(scopes, values); return this; }
/** * Adds a single value to the <property>definitions</property> property. * * @param name A definition name. * @param schema The schema that the name defines. * @return This object (for method chaining). */ public Swagger definition(String name, ObjectMap schema) { definitions = addToMap(definitions, name, schema); return this; }
/** * Adds a single value to the <property>responses</property> property. * * @param name The response name. * @param response The response definition. * @return This object (for method chaining). */ public Swagger response(String name, ResponseInfo response) { responses = addToMap(responses, name, response); return this; }
/** * Adds one or more values to the <property>examples</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public ResponseInfo addExamples(Map<String,Object> values) { examples = addToMap(examples, values); return this; }
/** * Adds a single value to the <property>x-examples</property> property. * * @param name The extra property name. * @param value The extra property value. * @return This object (for method chaining). */ public ParameterInfo example(String name, String value) { examples = addToMap(examples, name, value); return this; }
/** * Adds a single value to the <property>responses</property> property. * * @param name The response name. * @param response The response definition. * @return This object (for method chaining). */ public Swagger response(String name, ResponseInfo response) { responses = addToMap(responses, name, response); return this; }
/** * Adds a single value to the <property>securityDefinitions</property> property. * * @param name A security name. * @param securityScheme A security schema. * @return This object (for method chaining). */ public Swagger securityDefinition(String name, SecurityScheme securityScheme) { securityDefinitions = addToMap(securityDefinitions, name, securityScheme); return this; }
/** * Adds one or more values to the <property>properties</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public SchemaInfo addProperties(Map<String,SchemaInfo> values) { properties = addToMap(properties, values); return this; }
/** * Adds one or more values to the <property>examples</property> property. * * @param values * The values to add to this property. * <br>Ignored if <jk>null</jk>. * @return This object (for method chaining). */ public ResponseInfo addExamples(Map<String,Object> values) { examples = addToMap(examples, values); return this; }
/** * Adds a single value to the <property>x-examples</property> property. * * @param name The extra property name. * @param value The extra property value. * @return This object (for method chaining). */ public ParameterInfo example(String name, String value) { examples = addToMap(examples, name, value); return this; }
/** * Adds a single value to the <property>securityDefinitions</property> property. * * @param name A security name. * @param securityScheme A security schema. * @return This object (for method chaining). */ public Swagger securityDefinition(String name, SecurityScheme securityScheme) { securityDefinitions = addToMap(securityDefinitions, name, securityScheme); return this; }