Skip to content

Commit

Permalink
fix api not building
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Jan 10, 2025
1 parent 820ff5f commit 1161c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void main(String[] args) throws ParseException, org.apache.commons
while(true) {
try {
solr = new GrebiSolrRepo();
summary = new GrebiMetadataRepo();
metadata = new GrebiMetadataRepo();
sqliteSubgraphs = (new ResolverClient()).getSubgraphs();
solrSubgraphs = solr.getSubgraphs();
metadataServiceSubgraphs = metadata.getSubgraphs();
Expand Down Expand Up @@ -130,7 +130,7 @@ static void run(
})
.get("/api/v1/subgraphs/{subgraph}", ctx -> {
ctx.contentType("application/json");
ctx.result(gson.toJson(metadata.getSummary(ctx.pathParam("subgraph"))));
ctx.result(gson.toJson(metadata.getMetadata(ctx.pathParam("subgraph"))));
})
.get("/api/v1/subgraphs/{subgraph}/nodes/{nodeId}", ctx -> {
ctx.contentType("application/json");
Expand Down

0 comments on commit 1161c31

Please sign in to comment.