1 package org.openecomp.vid.mso.rest;
3 import org.openecomp.vid.mso.RestObject;
6 * Created by pickjonathan on 26/06/2017.
8 public interface RestInterface {
11 * Inits the rest client.
13 public void initMsoClient();
18 * @param <T> the generic type
20 * @param sourceId the source id
21 * @param path the path
22 * @param restObject the rest object
23 * @throws Exception the exception
25 public <T> void Get (T t, String sourceId, String path, RestObject<T> restObject ) throws Exception;
30 * @param <T> the generic type
33 * @param sourceID the source ID
34 * @param path the path
35 * @param restObject the rest object
36 * @throws Exception the exception
38 public <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
43 * @param <T> the generic type
46 * @param sourceID the source ID
47 * @param path the path
48 * @param restObject the rest object
49 * @throws Exception the exception
51 public <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception;
56 * @param <T> the generic type
59 * @param sourceID the source ID
60 * @param path the path
61 * @param restObject the rest object
62 * @throws Exception the exception
64 public <T> void Put(T t, org.openecomp.vid.changeManagement.RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception;
72 public void logRequest ( RequestDetails r );
78 public void logRequest(org.openecomp.vid.changeManagement.RequestDetails r);