@@ -0,0 +1,1625 @@
+package fr.insee.pogues.webservice.rest;%0A%0Aimport io.swagger.annotations.Api;%0Aimport io.swagger.annotations.ApiOperation;%0Aimport io.swagger.annotations.ApiResponse;%0Aimport io.swagger.annotations.ApiResponses;%0Aimport org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0Aimport org.json.simple.JSONObject;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.core.env.Environment;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0A%0A@Component%0A@Path(%22/env%22)%0A@Api(value = %22Pogues Environment%22)%0Apublic class PoguesEnv %7B%0A%0A    private final static Logger logger = LogManager.getLogger(PoguesEnv.class);%0A%0A    @Autowired%0A    Environment env;%0A%0A    @GET%0A    @Produces(MediaType.APPLICATION_JSON)%0A    @ApiOperation(%0A            value = %22Get environment%22,%0A            notes = %22Get a safe projection of Pogues Backend Environment%22,%0A            response = String.class%0A    )%0A    @ApiResponses(value = %7B%0A            @ApiResponse(code = 200, message = %22Success%22),%0A            @ApiResponse(code = 404, message = %22Not found%22)%0A    %7D)%0A    public Response getQuestionnaire() throws Exception %7B%0A        try %7B%0A            JSONObject entity = new JSONObject();%0A            entity.put(%22elasticsearch.index%22, env.getProperty(%22fr.insee.pogues.elasticsearch.index.name%22));%0A            return Response.ok().entity(entity).build();%0A        %7D catch (Exception e) %7B%0A            logger.error(e.getMessage(), e);%0A            throw e;%0A        %7D%0A%0A    %7D%0A%7D%0A

Add Environment endpoint