package fr.insee.pogues.webservice.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.apache.log4j.Logger;

/**
 * Main WebService class of the StromaePublishing service
 * 
 * @author I6VWID
 *
 */
@Path("/StromaePublishing")
public class StromaePublishing {

	final static Logger logger = Logger.getLogger(StromaePublishing.class);

	/**
	 * Dummy GET Helloworld used in unit tests
	 * 
	 * @return "Hello world" as a String
	 */
	@GET
	@Path("helloworld")
	public String helloworld() {
		return "Hello world";
	}


}
@@ -58,398 +58,1151 @@
 .rs.
-GET;%0Aimport javax.ws.rs.Path;%0A%0Aimport org.apache.log4j.Logger;%0A%0A/**%0A * Main WebService class of the StromaePublishing service%0A * %0A * @author I6VWID%0A *%0A */%0A@Path(%22/StromaePublishing%22)%0Apublic class StromaePublishing %7B%0A%0A%09final static Logger logger = Logger.getLogger(StromaePublishing.class);%0A%0A%09/**%0A%09 * Dummy GET Helloworld used in unit tests%0A%09 * %0A%09 * @return %22Hello world%22 as a String
+Consumes;%0Aimport javax.ws.rs.PUT;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.core.Response.Status;%0A%0Aimport org.apache.log4j.Logger;%0A%0Aimport io.swagger.annotations.Api;%0Aimport io.swagger.annotations.ApiOperation;%0Aimport io.swagger.annotations.Authorization;%0A%0A/**%0A * Main WebService class of the StromaePublishing service%0A * %0A * @author I6VWID%0A *%0A */%0A@Path(%22/StromaePublishing%22)%0A@Api(value = %22PoguesStromaePublishing%22, authorizations = %7B%0A%09      @Authorization(value=%22sampleoauth%22, scopes = %7B%7D)%0A%09    %7D)%0Apublic class StromaePublishing %7B%0A%0A%09final static Logger logger = Logger.getLogger(StromaePublishing.class);%0A%0A%09/**%0A%09 * Publish a questionnaire on the vizualisation platform%0A%09 * %0A%09 * @param name:%0A%09 *            questionnaire%0A%09 * %0A%09 *            in: body%0A%09 * %0A%09 *            description: The questionnaire to publish%0A%09 * %0A%09 *            required: true%0A%09 *%0A%09 * %0A%09 * @return 200: description: The questionnaire was published%0A%09 *%0A%09 *         400: description: Malformed object in the query%0A%09 * %0A%09 *         401: description: The client is not authorized for this operation
 %0A%09 */%0A%09@
 GET%0A
@@ -1201,10 +1201,10 @@
 /%0A%09@
-GE
+PU
 T%0A%09@
@@ -1213,51 +1213,269 @@
 th(%22
-helloworld%22)%0A%09public String helloworld(
+questionnaire%22)%0A%09@Consumes(MediaType.APPLICATION_JSON)%0A%09@ApiOperation(value = %22publishQuestionnaire%22,%0A    notes = %22Publish a questionnaire on the vizualisation platform%22,%0A    response = String.class)%0A%09public Response publishQuestionnaire(String jsonContent
 ) %7B%0A
+%0A
 %09%09re
@@ -1483,25 +1483,64 @@
 urn 
-%22Hello world%22;%0A%09%7D
+Response.status(Status.NOT_IMPLEMENTED).build();%0A%0A%09%7D%0A%09%0A%09
 %0A%0A%0A%7D

Add swagger doc for StromaeAPI