我以前没有用过@POST
,也不确定语法和如何测试。这是我现在拥有的:
@GET
@Path("classroomAssignmentId/{classroomAssignmentId}/classroomId/{classroomId}/assignmentName/{assignmentName}/assignmentDesc/{assignmentDesc}/assignmentDueDt/{assignmentDueDt}/assignmentDocument/{assignmentDocument}/assignmentStatusId/{assignmentStatusId}/updatedBy/{updatedBy}")
@Produces(MediaType.APPLICATION_JSON)
public ClassroomAssignment getCandidatesAsJson( @PathParam("classroomAssignmentId") int classroomAssignmentId
,@PathParam("classroomId") int classroomId
,@PathParam("assignmentName") String assignmentName
,@PathParam("assignmentDesc") String assignmentDesc
,@PathParam("assignmentDueDt") String assignmentDueDt
,@PathParam("assignmentDocument") String assignmentDocument
,@PathParam("assignmentStatusId") int assignmentStatusId
,@PathParam("assignmentTypeId") int assignmentTypeId
,@PathParam("updatedBy") String updatedBy)
我想更改@GET
为@POST
. 需要有关语法以及如何通过浏览器测试 WS 调用的帮助。