Skip to content

Commit

Permalink
Empty model has been removed for swagger UI of each API
Browse files Browse the repository at this point in the history
  • Loading branch information
izzyblues committed Sep 29, 2015
1 parent c1a22b3 commit b3e50cb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static JsonObject build(String id, Specification spec, Doc doc,
op.add("method", new JsonPrimitive("GET"));
op.add("nickname", new JsonPrimitive("API"));
op.add("summary", new JsonPrimitive(doc.get(Field.DESCRIPTION)));
op.add("type", new JsonPrimitive(Types.List.toString()));
op.add("type", new JsonPrimitive("void"));
JsonArray produces = new JsonArray();
for (MediaType kt : MoreMediaType.extensions.values()) {
produces.add(new JsonPrimitive(kt.toString()));
Expand Down Expand Up @@ -67,7 +67,7 @@ public static JsonObject build(String id, Specification spec, Doc doc,
op2.add("method", new JsonPrimitive("GET"));
op2.add("nickname", new JsonPrimitive("APIext"));
op2.add("summary", new JsonPrimitive(doc.get(Field.DESCRIPTION)));
op2.add("type", new JsonPrimitive(Types.List.toString()));
op2.add("type", new JsonPrimitive("void"));
op2.add("produces", produces);

par = new JsonObject();
Expand All @@ -87,6 +87,10 @@ public static JsonObject build(String id, Specification spec, Doc doc,
apis.add(api);
apis.add(api2);
root.add("apis", apis);

// create model section
// TODO create proper model according to the data model from the SPARQL endpoint

return root;
}

Expand Down

0 comments on commit b3e50cb

Please # to comment.