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

com.carma.swagger.doclet.sample.SimpleResource Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.carma.swagger.doclet.sample;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * The SimpleResource represents
 * @version $Id$
 * @author conor.roche
 */
@Path("simple")
public class SimpleResource {

	/**
	 * This gets a pojo
	 * @return
	 */
	@Path("/1")
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public Pojo getPojo() {
		return new Pojo("test");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy