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.
-
Field Summary
Fields inherited from class org.eclipse.dirigible.commons.api.service.AbstractRestService
NO_LOGGED_IN_USER -
Constructor Summary
Constructors Constructor Description JavascriptRestService() -
Method Summary
Modifier and Type Method Description javax.ws.rs.core.Responsedelete(String projectName, String projectFilePath, String debug)Delete.javax.ws.rs.core.Responsedelete(String projectName, String projectFilePath, String projectFilePathParam, String debug)Delete.javax.ws.rs.core.Responseget(String projectName, String projectFilePath, String debug)Gets the.javax.ws.rs.core.Responseget(String projectName, String projectFilePath, String projectFilePathParam, String debug)Gets the.protected org.slf4j.LoggergetLogger()Gets the logger.Class<? extends IRestService>getType()Gets the type.javax.ws.rs.core.Responsehead(String projectName, String projectFilePath, String debug)Head.javax.ws.rs.core.Responsehead(String projectName, String projectFilePath, String projectFilePathParam, String debug)Head.booleanisValid(String inputPath)Checks if is valid.javax.ws.rs.core.Responsepatch(String projectName, String projectFilePath, String debug)Patch.javax.ws.rs.core.Responsepatch(String projectName, String projectFilePath, String projectFilePathParam, String debug)Patch.javax.ws.rs.core.Responsepost(String projectName, String projectFilePath, String debug)Post.javax.ws.rs.core.Responsepost(String projectName, String projectFilePath, String projectFilePathParam, String debug)Post.javax.ws.rs.core.Responseput(String projectName, String projectFilePath, String debug)Put.javax.ws.rs.core.Responseput(String projectName, String projectFilePath, String projectFilePathParam, String debug)Put.Methods inherited from class org.eclipse.dirigible.commons.api.service.AbstractRestService
createErrorResponse, createErrorResponseBadRequest, createErrorResponseForbidden, createErrorResponseInternalServerError, createErrorResponseNotFound, createErrorResponseUnauthorized
-
Constructor Details
-
JavascriptRestService
public JavascriptRestService()
-
-
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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- 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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- 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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- 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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- 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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- 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 nameprojectFilePath- the project file pathdebug- 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 nameprojectFilePath- the project file pathprojectFilePathParam- the project file path paramdebug- the debug- Returns:
- the response
-
isValid
Checks if is valid.- Parameters:
inputPath- the input path- Returns:
- true, if is valid
-
getType
Gets the type.- Specified by:
getTypein interfaceIRestService- Returns:
- the type
-
getLogger
protected org.slf4j.Logger getLogger()Gets the logger.- Specified by:
getLoggerin classAbstractRestService- Returns:
- the logger
-