Package org.opensearch.wildfly.transport
Class RestHighLevelClientEmployeeResource
java.lang.Object
org.opensearch.wildfly.transport.RestHighLevelClientEmployeeResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetEmployeeById(Long id) jakarta.ws.rs.core.ResponseputEmployeeById(Long id, Employee employee)
-
Constructor Details
-
RestHighLevelClientEmployeeResource
public RestHighLevelClientEmployeeResource()
-
-
Method Details
-
getEmployeeById
@GET @Path("/{id}") @Produces("application/json") public jakarta.ws.rs.core.Response getEmployeeById(@PathParam("id") Long id) throws IOException - Throws:
IOException
-
putEmployeeById
@PUT @Path("/{id}") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response putEmployeeById(@PathParam("id") Long id, Employee employee) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-