Interface GenericService


public interface GenericService
Document me
Since:
2023-02-17
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    default String
    delete(com.technia.dsx.common.TenantSession session, String uri)
     
    default String
    get(com.technia.dsx.common.TenantSession session, String uri)
     
    default String
    patch(com.technia.dsx.common.TenantSession session, String uri, String body)
     
    default String
    post(com.technia.dsx.common.TenantSession session, String uri, String body)
     
    default String
    put(com.technia.dsx.common.TenantSession session, String uri, String body)
     
  • Method Details

    • get

      default String get(com.technia.dsx.common.TenantSession session, String uri)
    • post

      default String post(com.technia.dsx.common.TenantSession session, String uri, String body)
    • patch

      default String patch(com.technia.dsx.common.TenantSession session, String uri, String body)
    • put

      default String put(com.technia.dsx.common.TenantSession session, String uri, String body)
    • delete

      default String delete(com.technia.dsx.common.TenantSession session, String uri)
    • 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 session
      uri - 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 agents
      securityContext - True if to include the security context request header
      headers - 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: