@Path(value="/ballerina") public class BLangFileRestService extends Object
Constructor and Description |
---|
BLangFileRestService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getBallerinaJsonDataModelGivenContent(BFileContent content) |
javax.ws.rs.core.Response |
getBallerinaJsonDataModelGivenLocation(String location) |
javax.ws.rs.core.Response |
options() |
javax.ws.rs.core.Response |
validateBallerinaSource(BFileContent content) |
javax.ws.rs.core.Response |
validateOptions() |
@GET @Path(value="/model") @Produces(value="application/json") public javax.ws.rs.core.Response getBallerinaJsonDataModelGivenLocation(@QueryParam(value="location") String location) throws IOException
IOException
@POST @Path(value="/validate") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response validateBallerinaSource(BFileContent content) throws IOException
IOException
@OPTIONS @Path(value="/validate") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response validateOptions()
@POST @Path(value="/model/content") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getBallerinaJsonDataModelGivenContent(BFileContent content) throws IOException
IOException
@OPTIONS @Path(value="/model/content") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response options()
Copyright © 2017 WSO2. All rights reserved.