aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/nbi/OnapComponentsUrlPaths.java
blob: 88283215587c7c3b2c3b9b0637eaf3803a4b27eb (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
 *     Copyright (c) 2018 Orange
 *
 *     Licensed under the Apache License, Version 2.0 (the "License");
 *     you may not use this file except in compliance with the License.
 *     You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *     Unless required by applicable law or agreed to in writing, software
 *     distributed under the License is distributed on an "AS IS" BASIS,
 *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *     See the License for the specific language governing permissions and
 *     limitations under the License.
 */
package org.onap.nbi;

/**
 * Contains ONAP SDC and AAI urlPaths
 *
 */
public final class OnapComponentsUrlPaths {

    private OnapComponentsUrlPaths() {}

    // NBI
    public static final String SERVICE_ORDER_PATH= "/serviceOrder";
    public static final String SERVICE_INVENTORY_PATH= "/service";
    public static final String SERVICE_SPECIFICATION_PATH= "/serviceSpecification";
    public static final String HUB_PATH= "/hub";
    public static final String LISTENER_PATH= "/listener";



    // SDC
    public static final String SDC_ROOT_URL = "/sdc/v1/catalog/services";
    public static final String SDC_GET_PATH = "/metadata";
    public static final String SDC_TOSCA_PATH = "/toscaModel";
    public static final String SDC_HEALTH_CHECK = "/sdc2/rest/healthCheck";


    // AAI
    public static final String AAI_GET_TENANTS_PATH =
            "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/$onap.cloudOwner/$onap.lcpCloudRegionId/tenants";
    public static final String AAI_GET_CUSTOMER_PATH = "/aai/v14/business/customers/customer/";
    public static final String AAI_GET_SERVICES_FOR_CUSTOMER_PATH =
            "/aai/v14/business/customers/customer/$customerId/service-subscriptions";
    public static final String AAI_PUT_SERVICE_FOR_CUSTOMER_PATH =
            "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/";
    public static final String AAI_HEALTH_CHECK =
        "aai/util/echo?action=long";
    public static final String AAI_GET_SERVICE =
            "/aai/v14/nodes/service-instances/service-instance/$serviceId";
    public static final String AAI_GET_SERVICE_CUSTOMER =
            "/aai/v14/nodes/service-instances/service-instance/$serviceId?format=resource_and_url";
    public static final String AAI_GET_SERVICE_INSTANCES_PATH =
            "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/$serviceSpecName/service-instances/";


    // MSO
    public static final String MSO_CREATE_SERVICE_INSTANCE_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
    public static final String MSO_GET_REQUEST_STATUS_PATH = "/onap/so/infra/orchestrationRequests/v7/";
    public static final String MSO_DELETE_REQUEST_STATUS_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
    public static final String MSO_CREATE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3";
    public static final String MSO_DELETE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3/";
    public static final String MSO_GET_E2EREQUEST_STATUS_PATH = "/onap/so/infra/e2eServiceInstances/v3/$serviceId/operations/$operationId";
    public static final String MSO_HEALTH_CHECK = "/globalhealthcheck";

    // DMaaP Message Router REST Client
    public static final String DMAAP_CONSUME_EVENTS =
            "/events/$topic/$consumergroup/$consumerid?timeout=$timeout";

}