Class RestApi


  • @Path("/rest/v1")
    @Generated(value="org.openapitools.codegen.languages.JavaJerseyServerCodegen",
               date="2022-12-02T16:45:32.397906+08:00[Asia/Shanghai]")
    public class RestApi
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RestApi​(javax.servlet.ServletConfig servletContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response executeNonQueryStatement​(SQL SQL, javax.ws.rs.core.SecurityContext securityContext)  
      javax.ws.rs.core.Response executeQueryStatement​(SQL SQL, javax.ws.rs.core.SecurityContext securityContext)  
      javax.ws.rs.core.Response insertTablet​(InsertTabletRequest insertTabletRequest, javax.ws.rs.core.SecurityContext securityContext)  
      • Methods inherited from class java.lang.Object

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

      • RestApi

        public RestApi​(@Context
                       javax.servlet.ServletConfig servletContext)
    • Method Detail

      • executeNonQueryStatement

        @POST
        @Path("/nonQuery")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response executeNonQueryStatement​(SQL SQL,
                                                                  @Context
                                                                  javax.ws.rs.core.SecurityContext securityContext)
                                                           throws NotFoundException
        Throws:
        NotFoundException
      • executeQueryStatement

        @POST
        @Path("/query")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response executeQueryStatement​(SQL SQL,
                                                               @Context
                                                               javax.ws.rs.core.SecurityContext securityContext)
                                                        throws NotFoundException
        Throws:
        NotFoundException
      • insertTablet

        @POST
        @Path("/insertTablet")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response insertTablet​(InsertTabletRequest insertTabletRequest,
                                                      @Context
                                                      javax.ws.rs.core.SecurityContext securityContext)
                                               throws NotFoundException
        Throws:
        NotFoundException