instantiate and terminate servce
[usecase-ui/server.git] / server / src / main / java / org / onap / usecaseui / server / service / lcm / domain / aai / AAIService.java
1 /**
2  * Copyright 2016-2017 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.usecaseui.server.service.lcm.domain.aai;
17
18 import org.onap.usecaseui.server.service.lcm.domain.aai.bean.AAICustomer;
19 import org.onap.usecaseui.server.service.lcm.domain.aai.bean.ServiceInstance;
20 import org.onap.usecaseui.server.service.lcm.domain.aai.bean.VimInfo;
21 import retrofit2.Call;
22 import retrofit2.http.GET;
23 import retrofit2.http.Headers;
24 import retrofit2.http.Path;
25
26 import java.util.List;
27
28 public interface AAIService {
29
30     @Headers({
31             "X-TransactionId: 7777",
32             "X-FromAppId: uui",
33             "Authorization: QUFJOkFBSQ=="
34     })
35     @GET("/api/aai-business/v11/customers")
36     Call<List<AAICustomer>> listCustomer();
37
38     @Headers({
39             "X-TransactionId: 7777",
40             "X-FromAppId: uui",
41             "Authorization: QUFJOkFBSQ=="
42     })
43     @GET("/api/aai-business/v11/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances")
44     Call<List<ServiceInstance>> listServiceInstances(@Path("global-customer-id") String customerId, @Path("service-type") String serviceType);
45
46     @Headers({
47             "X-TransactionId: 7777",
48             "X-FromAppId: uui",
49             "Authorization: QUFJOkFBSQ=="
50     })
51     @GET("/cloud-infrastructure/cloud-regions")
52     Call<List<VimInfo>> listVimInfo();
53 }