diff --git a/src/main/java/com/example/cosmos_serversb/models/Groups.java b/src/main/java/com/example/cosmos_serversb/models/Groups.java index cc6756c..c86f6f3 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -60,7 +60,7 @@ //先にGidとuriの発行を行う String gId = getInstance().createGId(); - String uri = baseURI + AppName + "/groups/" + gId; + String uri = baseURI + AppName + "/rest/groups/" + gId; Group testGroup = new Group(gId, uri, name, uId); Session session = SessionManager.getInstance().getSession(); session.save(testGroup); @@ -170,7 +170,7 @@ return null; //not-null制約 } String rId = getInstance().createRId(); - String uri = baseURI + AppName + "/groups/" + gId + "/requests/" + rId; + String uri = baseURI + AppName + "/rset/groups/" + gId + "/requests/" + rId; Request request = new Request(rId, uri, new Date(), uId, product, deadline, location); Session session = SessionManager.getInstance().getSession();