Skip to content

Commit

Permalink
Merge pull request keycloak#3571 from stianst/KEYCLOAK-3889
Browse files Browse the repository at this point in the history
KEYCLOAK-3889 Add produces to server info endpoint
  • Loading branch information
stianst authored Dec 1, 2016
2 parents 45abaec + 433f373 commit 7c0f6f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@
import org.keycloak.theme.ThemeProvider;

import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
Expand All @@ -83,6 +85,7 @@ public class ServerInfoAdminResource {
* @return
*/
@GET
@Produces(MediaType.APPLICATION_JSON)
public ServerInfoRepresentation getInfo() {
ServerInfoRepresentation info = new ServerInfoRepresentation();
info.setSystemInfo(SystemInfoRepresentation.create(session.getKeycloakSessionFactory().getServerStartupTimestamp()));
Expand Down

0 comments on commit 7c0f6f6

Please sign in to comment.