Class RestHighLevelClientEmployeeResource

java.lang.Object
org.opensearch.wildfly.transport.RestHighLevelClientEmployeeResource

@Path("/employees")
public class RestHighLevelClientEmployeeResource
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    RestHighLevelClientEmployeeResource()  
  • Method Summary

    Modifier and Type Method Description
    javax.ws.rs.core.Response getEmployeeById​(java.lang.Long id)  
    javax.ws.rs.core.Response putEmployeeById​(java.lang.Long id, Employee employee)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getEmployeeById

      @GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getEmployeeById​(@PathParam("id") java.lang.Long id) throws java.io.IOException
      Throws:
      java.io.IOException
    • putEmployeeById

      @PUT @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response putEmployeeById​(@PathParam("id") java.lang.Long id, Employee employee) throws java.net.URISyntaxException, java.io.IOException
      Throws:
      java.net.URISyntaxException
      java.io.IOException