2 * Copyright 2016-2017 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.usecaseui.server.service.lcm.domain.aai;
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;
26 import java.util.List;
28 public interface AAIService {
31 "X-TransactionId: 7777",
33 "Authorization: QUFJOkFBSQ=="
35 @GET("/api/aai-business/v11/customers")
36 Call<List<AAICustomer>> listCustomer();
39 "X-TransactionId: 7777",
41 "Authorization: QUFJOkFBSQ=="
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);
47 "X-TransactionId: 7777",
49 "Authorization: QUFJOkFBSQ=="
51 @GET("/cloud-infrastructure/cloud-regions")
52 Call<List<VimInfo>> listVimInfo();