Package io.mosip.mimoto.service
Interface RestClientService<T>
-
- Type Parameters:
T- the generic type
- All Known Implementing Classes:
RestClientServiceImpl
public interface RestClientService<T>The Interface RestClientService.- Author:
- Rishabh Keshari
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetApi(ApiName apiName, List<String> pathsegments, String queryParam, String queryParamValue, Class<?> responseType)Gets the api.TgetApi(ApiName apiName, List<String> pathsegments, List<String> queryParam, List<Object> queryParamValue, Class<?> responseType)TpostApi(ApiName apiName, String queryParam, String queryParamValue, T requestedData, Class<?> responseType)Post api.TpostApi(ApiName apiName, String queryParamName, String queryParamValue, T requestedData, Class<?> responseType, org.springframework.http.MediaType mediaType)Post api.TpostApi(ApiName apiName, List<String> pathsegments, String queryParam, String queryParamValue, T requestedData, Class<?> responseType)Post api.TpostApi(ApiName apiName, org.springframework.http.MediaType mediaType, List<String> pathsegments, List<String> queryParam, List<Object> queryParamValue, T requestedData, Class<?> responseType)Post Api
-
-
-
Method Detail
-
getApi
T getApi(ApiName apiName, List<String> pathsegments, String queryParam, String queryParamValue, Class<?> responseType) throws ApisResourceAccessException
Gets the api.- Parameters:
apiName- the api namepathsegments- pathsegments of the uriqueryParam- the query paramqueryParamValue- the query param valueresponseType- the response type- Returns:
- the api
- Throws:
ApisResourceAccessException- the apis resource access exception
-
getApi
T getApi(ApiName apiName, List<String> pathsegments, List<String> queryParam, List<Object> queryParamValue, Class<?> responseType) throws ApisResourceAccessException
- Throws:
ApisResourceAccessException
-
postApi
T postApi(ApiName apiName, String queryParam, String queryParamValue, T requestedData, Class<?> responseType) throws ApisResourceAccessException
Post api.- Parameters:
apiName- the api namequeryParam- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
T postApi(ApiName apiName, String queryParamName, String queryParamValue, T requestedData, Class<?> responseType, org.springframework.http.MediaType mediaType) throws ApisResourceAccessException
Post api.- Parameters:
apiName- the api namequeryParamName- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response typemediaType- the content type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
T postApi(ApiName apiName, List<String> pathsegments, String queryParam, String queryParamValue, T requestedData, Class<?> responseType) throws ApisResourceAccessException
Post api.- Parameters:
apiName- the api namepathsegments- the pathsegmentsqueryParam- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
T postApi(ApiName apiName, org.springframework.http.MediaType mediaType, List<String> pathsegments, List<String> queryParam, List<Object> queryParamValue, T requestedData, Class<?> responseType) throws ApisResourceAccessException
Post Api- Parameters:
apiName-mediaType-pathsegments-queryParam-queryParamValue-requestedData-responseType-- Returns:
- Throws:
ApisResourceAccessException
-
-