diff --git a/src/main/java/org/ntlab/acanthus_server/resources/accounts/InvitedRest.java b/src/main/java/org/ntlab/acanthus_server/resources/accounts/InvitedRest.java index 78fb4a2..0e61281 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/accounts/InvitedRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/accounts/InvitedRest.java @@ -6,6 +6,7 @@ import org.springframework.stereotype.Component; import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import java.util.ArrayList; import java.util.Collection; @@ -44,8 +45,9 @@ @Path("/{uid}/invited/aidList") @GET - public Collection getAccountInvited(@PathParam("uid") int ownerUid, @QueryParam("token") String token) { - var account = accounts.getAccountByUid(ownerUid); + @Produces(MediaType.APPLICATION_JSON) + public Collection getAccountInvited(@PathParam("uid") Integer uid, @QueryParam("token") String token) { + var account = accounts.getAccountByUid(uid); //トークン認証 if (account != null && account.getToken().equals(token)) {