1 package org.onap.vid.mso.rest;
3 import org.onap.vid.mso.RestObject;
5 import javax.ws.rs.core.MultivaluedHashMap;
8 * Created by pickjonathan on 26/06/2017.
10 public interface RestInterface {
13 * Inits the rest client.
15 MultivaluedHashMap<String, Object> initMsoClient();
20 * @param <T> the generic type
22 * @param sourceId the source id
23 * @param path the path
24 * @param restObject the rest object
25 * @throws Exception the exception
27 <T> void Get (T t, String sourceId, String path, RestObject<T> restObject );
32 * @param <T> the generic type
35 * @param sourceID the source ID
36 * @param path the path
37 * @param restObject the rest object
38 * @throws Exception the exception
40 <T> void Delete(T t, Object r, String sourceID, String path, RestObject<T> restObject);
45 * @param <T> the generic type
48 * @param sourceID the source ID
49 * @param path the path
50 * @param restObject the rest object
51 * @throws Exception the exception
53 <T> void Post(T t, Object r, String sourceID, String path, RestObject<T> restObject);
58 * @param <T> the generic type
61 * @param sourceID the source ID
62 * @param path the path
63 * @param restObject the rest object
64 * @throws Exception the exception
66 <T> void Put(T t, org.onap.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject);