Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/rest/QueryService.java @ 467:e147de48162a
Added proben kommentar service.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 Feb 2015 13:45:41 +0100 |
parents | c5ae1eb3ff92 |
children | 21a49dc9984d |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ package de.intevation.lada.rest; import javax.enterprise.context.RequestScoped; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import de.intevation.lada.query.QueryTools; import de.intevation.lada.util.rest.Response; /** * REST-Service for preconfigured queries. */ @Path("/query") @RequestScoped public class QueryService { /** * Request all configured queries. */ @GET @Produces("text/json") public Response get() { return new Response(true, 200, QueryTools.getConfig()); } }