Package com.technia.dsx.threedspace
Interface GenericService
public interface GenericService
Document me
- Since:
- 2023-02-17
-
Method Summary
Modifier and TypeMethodDescriptioncall
(com.technia.dsx.common.TenantSession session, String uri, String method, boolean csrf, boolean tenant, boolean securityContext, Map<String, String> headers, Map<String, Object> queryParams, String body) Generic method to call an arbitrary Space REST end point.default String
default String
default String
default String
default String
-
Method Details
-
get
-
post
-
patch
-
put
-
delete
-
call
String call(com.technia.dsx.common.TenantSession session, String uri, String method, boolean csrf, boolean tenant, boolean securityContext, Map<String, String> headers, Map<String, Object> queryParams, String body) Generic method to call an arbitrary Space REST end point.
- Parameters:
session
- The current sessionuri
- The URI of the service, example:/resources/v1/modeler/dscm/changerequest
method
- The method, e.g. any of GET,POST,PATCH,DELETE etc.csrf
- True if the service requires a CSRF token to be obtained for the call.tenant
- True if to include the tenant as a request parameter. Note that this value is not added in case we use openness agentssecurityContext
- True if to include the security context request headerheaders
- Optional extra headers to be passed in. Null is allowed.queryParams
- Optional extra query string parameters to be passed in. Null is allowed.body
- Optional JSON body to be sent. Null is allowed.- Returns:
-