Class JavascriptRestService

java.lang.Object
org.eclipse.dirigible.commons.api.service.AbstractRestService
org.eclipse.dirigible.engine.js.service.JavascriptRestService
All Implemented Interfaces:
IRestService

@Path("/js")
public class JavascriptRestService
extends AbstractRestService
implements IRestService
Front facing REST service serving the Javascript backend services.
  • Constructor Details

  • Method Details

    • get

      @GET @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response get​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Gets the.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • get

      @GET @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response get​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Gets the.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • post

      @POST @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response post​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Post.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • post

      @POST @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response post​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Post.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • put

      @PUT @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response put​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Put.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • put

      @PUT @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response put​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Put.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • patch

      @PATCH @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response patch​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Patch.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • patch

      @PATCH @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response patch​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Patch.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • delete

      @DELETE @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response delete​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Delete.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • delete

      @DELETE @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response delete​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Delete.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • head

      @HEAD @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}") public javax.ws.rs.core.Response head​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @QueryParam("debug") String debug)
      Head.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      debug - the debug
      Returns:
      the response
    • head

      @HEAD @Path("/{projectName}/{projectFilePath:.*\\.js|.*\\.mjs}/{projectFilePathParam:.*}") public javax.ws.rs.core.Response head​(@PathParam("projectName") String projectName, @PathParam("projectFilePath") String projectFilePath, @PathParam("projectFilePathParam") String projectFilePathParam, @QueryParam("debug") String debug)
      Head.
      Parameters:
      projectName - the project name
      projectFilePath - the project file path
      projectFilePathParam - the project file path param
      debug - the debug
      Returns:
      the response
    • isValid

      public boolean isValid​(String inputPath)
      Checks if is valid.
      Parameters:
      inputPath - the input path
      Returns:
      true, if is valid
    • getType

      public Class<? extends IRestService> getType()
      Gets the type.
      Specified by:
      getType in interface IRestService
      Returns:
      the type
    • getLogger

      protected org.slf4j.Logger getLogger()
      Gets the logger.
      Specified by:
      getLogger in class AbstractRestService
      Returns:
      the logger