Package org.apache.ofbiz.ws.rs.resources
Class OFBizServiceResource
java.lang.Object
org.apache.ofbiz.ws.rs.resources.OFBizResource
org.apache.ofbiz.ws.rs.resources.OFBizServiceResource
- All Implemented Interfaces:
IOFBizResource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
javax.ws.rs.core.Response
doGet
(ApiServiceRequest serviceRequest, String serviceName) javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.ofbiz.ws.rs.resources.IOFBizResource
getDelegator, getDispatcher
-
Field Details
-
BASE_PATH
- See Also:
-
-
Constructor Details
-
OFBizServiceResource
public OFBizServiceResource()
-
-
Method Details
-
serviceList
@GET @Produces("application/json") public javax.ws.rs.core.Response serviceList() throws GenericServiceException- Returns:
- Throws:
GenericServiceException
-
doGet
@GET @Path("/{serviceName}") @Produces("application/json") public javax.ws.rs.core.Response doGet(@QueryParam("inParams") ApiServiceRequest serviceRequest, @PathParam("serviceName") String serviceName) throws IOException, GenericServiceException - Parameters:
serviceRequest
-serviceName
-- Returns:
- Throws:
IOException
GenericServiceException
-
doPost
@POST @Path("/{serviceName}") @Produces("application/json") public javax.ws.rs.core.Response doPost(HashMap<String, Object> serviceInParams, @PathParam("serviceName") String serviceName) throws IOException, GenericEntityException, GenericServiceException- Parameters:
serviceInParams
-serviceName
-- Returns:
- Throws:
IOException
GenericEntityException
GenericServiceException
-
doPut
@PUT @Path("/{serviceName}") @Produces("application/json") public javax.ws.rs.core.Response doPut(HashMap<String, Object> serviceInParams, @PathParam("serviceName") String serviceName) throws IOException, GenericEntityException, GenericServiceException- Parameters:
serviceInParams
-serviceName
-- Returns:
- Throws:
IOException
GenericEntityException
GenericServiceException
-
doPatch
@PATCH @Path("/{serviceName}") @Produces("application/json") public javax.ws.rs.core.Response doPatch(HashMap<String, Object> serviceInParams, @PathParam("serviceName") String serviceName) throws IOException, GenericEntityException, GenericServiceException- Parameters:
serviceInParams
-serviceName
-- Returns:
- Throws:
IOException
GenericEntityException
GenericServiceException
-
doDelete
@DELETE @Path("/{serviceName}") @Produces("application/json") public javax.ws.rs.core.Response doDelete(HashMap<String, Object> serviceInParams, @PathParam("serviceName") String serviceName) throws IOException, GenericEntityException, GenericServiceException- Parameters:
serviceInParams
-serviceName
-- Returns:
- Throws:
IOException
GenericEntityException
GenericServiceException
-