1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
package org.onap.simulator.presetGenerator.presets.mso;
import org.springframework.http.HttpMethod;
public class PresetMSODeleteALaCarteService extends PresetMSODeleteService {
private final int responseCode;
public PresetMSODeleteALaCarteService(String requestId, String serviceInstanceId) {
super(requestId, serviceInstanceId);
responseCode = 202;
}
public PresetMSODeleteALaCarteService(String requestId, String serviceInstanceId, int responseCode) {
super(requestId, serviceInstanceId);
this.responseCode = responseCode;
}
@Override
public int getResponseCode() {
return responseCode;
}
@Override
public Object getRequestBody() {
return "{" +
" \"requestDetails\": {" +
" \"modelInfo\": {" +
" \"modelInvariantId\": \"7ee41ce4-4827-44b0-a48e-2707a59905d2\"," +
" \"modelVersionId\": \"4117a0b6-e234-467d-b5b9-fe2f68c8b0fc\"," +
" \"modelName\": \"Grouping Service for Test\"," +
" \"modelType\": \"service\"," +
" \"modelVersion\": \"1.0\"" +
" }," +
" \"requestInfo\": {" +
" \"source\": \"VID\"," +
" \"requestorId\": \"us16807000\"" +
" }," +
" \"requestParameters\": {" +
" \"testApi\": \"GR_API\","+
" \"aLaCarte\": true" +
" }" +
" }" +
"}";
}
@Override
protected String getRootPath() {
return "/mso/serviceInstantiation/v./serviceInstances/";
}
@Override
public HttpMethod getReqMethod() {
return HttpMethod.DELETE;
}
}
|