package org.wso2.carbon.apimgt.core;
/*
 * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you 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.
 */

//import org.wso2.carbon.kernel.annotations.Configuration;
//import org.wso2.carbon.kernel.annotations.Element;

/**
 * Class to hold APIM configuration parameters and generate yaml file
 * TODO refactor class when kernal is updated to 5.2.0
 */
//@Configuration(namespace = "wso2.carbon.apim", description = "APIM Configuration Parameters")
public class APIMConfigurations {
    private String carbonClientId = "carbon";
//    @Element(description = "server version")
    private String carbonVirtualHostName = "carbon";
//    @Element(description = "topic server host")
    private String topicServerHost = "localhost";
//    @Element(description = "topic server port")
    private String topicServerPort = "5672";
//    @Element(description = "topic name")
    private String topicName = "MYTopic";
//    @Element(description = "username for topic")
    private String username = "admin";
//    @Element(description = "password for topic")
    private String password = "admin";
//    @Element(description = "password for topic")
    private boolean reverseProxyEnabled = false;
//    @Element(description = "hostname")
    private String hostname = "localhost";
//    @Element(description = "context for publisher")
    private String publisherContext = "/api/am/publisher/v0.10";
//    @Element(description = "context for store")
    private String storeContext = "/api/am/store/v0.10";
    public String getHostname() {
        return hostname;
    }

    public boolean isReverseProxyEnabled() {
        return reverseProxyEnabled;
    }

    public String getPublisherContext() {
        return publisherContext;
    }

    public String getStoreContext() {
        return storeContext;
    }

    public String getCarbonClientId() {
        return carbonClientId;
    }

    public String getCarbonVirtualHostName() {
        return carbonVirtualHostName;
    }

    public String getTopicServerHost() {
        return topicServerHost;
    }

    public String getTopicServerPort() {
        return topicServerPort;
    }

    public String getTopicName() {
        return topicName;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}

package org.wso2.carbon.apimgt.core;
/*
 * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you 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.
 */

//import org.wso2.carbon.kernel.annotations.Configuration;
//import org.wso2.carbon.kernel.annotations.Element;

/**
 * Class to hold APIM configuration parameters and generate yaml file
 * TODO refactor class when kernal is updated to 5.2.0
 */
//@Configuration(namespace = "wso2.carbon.apim", description = "APIM Configuration Parameters")
public class APIMConfigurations {
    private String carbonClientId = "carbon";
//    @Element(description = "server version")
    private String carbonVirtualHostName = "carbon";
//    @Element(description = "topic server host")
    private String topicServerHost = "localhost";
//    @Element(description = "topic server port")
    private String topicServerPort = "5672";
//    @Element(description = "topic name")
    private String topicName = "MYTopic";
//    @Element(description = "username for topic")
    private String username = "admin";
//    @Element(description = "password for topic")
    private String password = "admin";
//    @Element(description = "password for topic")
    private boolean reverseProxyEnabled = false;
//    @Element(description = "hostname")
    private String hostname = "localhost";
//    @Element(description = "context for publisher")
    private String publisherContext = "/api/am/publisher/v1";
//    @Element(description = "context for store")
    private String storeContext = "/api/am/store/v1";
    public String getHostname() {
        return hostname;
    }

    public boolean isReverseProxyEnabled() {
        return reverseProxyEnabled;
    }

    public String getPublisherContext() {
        return publisherContext;
    }

    public String getStoreContext() {
        return storeContext;
    }

    public String getCarbonClientId() {
        return carbonClientId;
    }

    public String getCarbonVirtualHostName() {
        return carbonVirtualHostName;
    }

    public String getTopicServerHost() {
        return topicServerHost;
    }

    public String getTopicServerPort() {
        return topicServerPort;
    }

    public String getTopicName() {
        return topicName;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}

Change API version in APIMConfigurations