Package rst.svc
Class IplWsvPsaRstApiTestSvc
- java.lang.Object
-
- de.pisa.psa.rst.svc.PsaRstApiSvcBas
-
- rst.svc.IplWsvPsaRstApiTestSvc
-
@Path("api-test") public class IplWsvPsaRstApiTestSvc extends PsaRstApiSvcBas
PSA_RST_API_TEST_SVC
-
-
Field Summary
-
Fields inherited from class de.pisa.psa.rst.svc.PsaRstApiSvcBas
COOKIE_JRAUTH, IAM_Key, IAM_Service, Request, User
-
-
Constructor Summary
Constructors Constructor Description IplWsvPsaRstApiTestSvc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteCompanies(java.lang.String gid, java.lang.String user, java.lang.String language)
Delete a companyjavax.ws.rs.core.Response
getOrders(java.lang.String gid, java.lang.String user, java.lang.String language)
get a single order-
Methods inherited from class de.pisa.psa.rst.svc.PsaRstApiSvcBas
createEvent, getAuthorizationHeader, getData, getIAMUserInfo, getIAMUserInfo, getLanguageFromRequest, getRequestCookie, getRequestHeader, getRequestHeaders, getRequestLanguages, getRequestMethod, getRequestPath, getRequestQuery, handleRequest, initialize, isSynchronous, loadConfiguration, newSsn, processEvent, setConfig, setEvent, validateIAM, validateKey
-
-
-
-
Method Detail
-
deleteCompanies
@DELETE @Path("companies/{id}") @Produces("application/json") public javax.ws.rs.core.Response deleteCompanies(@PathParam("id") java.lang.String gid, @QueryParam("user") java.lang.String user, @QueryParam("language") java.lang.String language) throws java.lang.Exception
Delete a company- Parameters:
gid
- PSC_GID of the company to deleteuser
- the user name to run the request withlanguage
- the data language (e.g. GER / ENG)- Returns:
- response
- Throws:
java.lang.Exception
-
getOrders
@GET @Path("orders/{id}") @Produces("application/json") public javax.ws.rs.core.Response getOrders(@PathParam("id") java.lang.String gid, @QueryParam("user") java.lang.String user, @QueryParam("language") java.lang.String language) throws java.lang.Exception
get a single order- Parameters:
gid
- PSC_GID of the orderuser
- the user name to run the request withlanguage
- the data language (e.g. GER / ENG)- Returns:
- response with the order data as JSON
- Throws:
java.lang.Exception
-
-