/*
    Copyright 2013, Strategic Gains, Inc.

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
*/
package com.strategicgains.restexpress.plugin.swagger;

import java.util.List;

import org.restexpress.Request;
import org.restexpress.Response;

import com.strategicgains.restexpress.plugin.swagger.annotations.ApiModelRequest;

/**
 * @author toddf
 * @since Nov 22, 2013
 */
public class DummyController
{
	public DummyModel read(Request request, Response response)
	{
        return null;
	}

	public List<DummyModel> readAll(Request request, Response response)
	{
		return null;
	}

    @ApiModelRequest(model=DummyModel.class, required=true)
	public void create(Request request, Response response)
	{
		response.setResponseCreated();
	}

	public void update(Request request, Response response)
	{
	}

	public void delete(Request request, Response response)
	{
		response.setResponseNoContent();
	}

	public void health(Request request, Response response)
	{
	}

	public void options(Request request, Response response)
	{
	}

	public Another readAnother(Request request, Response response)
	{
		return null;
	}
}

@@ -799,16 +799,338 @@
 Request;
+%0Aimport com.wordnik.swagger.annotations.ApiImplicitParam;%0Aimport com.wordnik.swagger.annotations.ApiImplicitParams;%0Aimport com.wordnik.swagger.annotations.ApiOperation;%0Aimport com.wordnik.swagger.annotations.ApiParam;%0Aimport com.wordnik.swagger.annotations.ApiResponse;%0Aimport com.wordnik.swagger.annotations.ApiResponses;
 %0A%0A/**%0A *
@@ -1910,10 +1910,1194 @@
 ull;%0A%09%7D%0A
+%09%0A%09%09@ApiOperation(value = %22Read with Annotations.%22, %0A%09%09%09notes = %22More detailed description here.%22)%0A%09public Another readWithApiOperationAnnotation(Request request, Response response) %0A%09%7B%0A%09%09return null;%0A%09%7D%0A%0A%09@ApiResponses(%7B%0A%09%09@ApiResponse(code = 204, message = %22Successful update%22),%0A%09%09@ApiResponse(code = 404, message = %22Item not found%22),%0A%09%09@ApiResponse(code = 400, message = %22Item id incorrect format%22)%7D)%0A%09public void updateWithApiResponse(Request request, Response response) %0A%09%7B%0A%09%7D%0A%09%0A%09@ApiImplicitParams(%7B%0A%09%09@ApiImplicitParam(name = %22expand%22, required = false, value = %22(Optional) Return item and all its children.%22, paramType = %22query%22, dataType = %22String%22, allowableValues = %22all, some, none%22),%0A%09%09@ApiImplicitParam(name = %22title%22, required = true, value = %22(Required) Title of the item.%22, paramType = %22body%22, dataType = %22String%22, allowableValues = %22Any string%22),%0A%09%7D)%0A%09public void createWithApiImplicitParams(Request request, Response response) %0A%09%7B%0A%09%7D%0A%09%0A%09@ApiParam(name = %22title%22, required = true, value = %22(Required) Title of the item.%22, defaultValue = %22Title placeholder%22, allowableValues = %22Any String%22)%0A%09public void createWithApiParam(Request request, Response response) %0A%09%7B%0A%09%7D%0A%0A
 %7D%0A

Update DummyController.java