1 package org.onap.vid.mso.rest;
3 import org.onap.vid.changeManagement.RequestDetailsWrapper;
4 import org.onap.vid.mso.RestObject;
5 import org.onap.vid.mso.RestObjectWithRequestInfo;
8 * Created by pickjonathan on 26/06/2017.
10 public interface RestInterface {
15 * @param <T> the generic type
17 * @param path the path
18 * @param restObject the rest object
19 * @param warpException
20 * @throws Exception the exception
22 <T> RestObjectWithRequestInfo<T> Get(T t, String path, RestObject<T> restObject, boolean warpException);
27 * @param <T> the generic type
30 * @param path the path
31 * @param restObject the rest object
32 * @throws Exception the exception
34 <T> void Delete(T t, Object r, String path, RestObject<T> restObject);
41 * @param path the path
42 * @param restObject the rest object
43 * @throws Exception the exception
45 void Post(String t, Object r, String path, RestObject<String> restObject);
50 * @param <T> the generic type
53 * @param path the path
54 * @param restObject the rest object
55 * @throws Exception the exception
57 <T> void Put(T t, RequestDetailsWrapper r, String path, RestObject<T> restObject);
59 <T> RestObject<T> GetForObject(String path, Class<T> clazz);