How to overwrite apiman.gateway-endpoint default property values in Apiman (1.3.1.Final)
Environment
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Bug
I'm using dockerized apiman version 1.3.1.Final. (Quite old I know...)
I'm trying to overwrite gateway properties for the apiman-default-config.json file :
"Gateways" : [ {
"id" : "TheGateway",
"name" : "The Gateway",
"description" : "This is the gateway.",
"createdBy" : "admin",
"createdOn" : "2016-05-16T12:34:15Z",
"modifiedBy" : "admin",
"modifiedOn" : "2016-05-16T12:34:15Z",
"type" : "REST",
"configuration" : "{"endpoint":"${apiman.gateway-endpoint:https://localhost:8443/apiman-gateway-api}","username":"${apiman.gateway-endpoint.username:apimanager}","password":"${apiman.gateway-endpoint.password:apiman123!}"}" } ]
So my thought is that I could overwrite those properties from apiman.properties configuration file.
But it seems that, for example, property ${apiman.gateway-endpoint.username} isn't evaluated and use the default value 'apimanager' in any case.
So now, my question is how should be overwriten the following properties ? :
apiman.gateway-endpoint
apiman.gateway-endpoint.username
apiman.gateway-endpoint.password
If it's a bug, is it fix in later Apiman version ?
I could overwrite the entire file, but if I could avoid that, it would be great...
Regards
wildfly-10 jboss-tools apiman
add a comment |
Environment
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Bug
I'm using dockerized apiman version 1.3.1.Final. (Quite old I know...)
I'm trying to overwrite gateway properties for the apiman-default-config.json file :
"Gateways" : [ {
"id" : "TheGateway",
"name" : "The Gateway",
"description" : "This is the gateway.",
"createdBy" : "admin",
"createdOn" : "2016-05-16T12:34:15Z",
"modifiedBy" : "admin",
"modifiedOn" : "2016-05-16T12:34:15Z",
"type" : "REST",
"configuration" : "{"endpoint":"${apiman.gateway-endpoint:https://localhost:8443/apiman-gateway-api}","username":"${apiman.gateway-endpoint.username:apimanager}","password":"${apiman.gateway-endpoint.password:apiman123!}"}" } ]
So my thought is that I could overwrite those properties from apiman.properties configuration file.
But it seems that, for example, property ${apiman.gateway-endpoint.username} isn't evaluated and use the default value 'apimanager' in any case.
So now, my question is how should be overwriten the following properties ? :
apiman.gateway-endpoint
apiman.gateway-endpoint.username
apiman.gateway-endpoint.password
If it's a bug, is it fix in later Apiman version ?
I could overwrite the entire file, but if I could avoid that, it would be great...
Regards
wildfly-10 jboss-tools apiman
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11
add a comment |
Environment
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Bug
I'm using dockerized apiman version 1.3.1.Final. (Quite old I know...)
I'm trying to overwrite gateway properties for the apiman-default-config.json file :
"Gateways" : [ {
"id" : "TheGateway",
"name" : "The Gateway",
"description" : "This is the gateway.",
"createdBy" : "admin",
"createdOn" : "2016-05-16T12:34:15Z",
"modifiedBy" : "admin",
"modifiedOn" : "2016-05-16T12:34:15Z",
"type" : "REST",
"configuration" : "{"endpoint":"${apiman.gateway-endpoint:https://localhost:8443/apiman-gateway-api}","username":"${apiman.gateway-endpoint.username:apimanager}","password":"${apiman.gateway-endpoint.password:apiman123!}"}" } ]
So my thought is that I could overwrite those properties from apiman.properties configuration file.
But it seems that, for example, property ${apiman.gateway-endpoint.username} isn't evaluated and use the default value 'apimanager' in any case.
So now, my question is how should be overwriten the following properties ? :
apiman.gateway-endpoint
apiman.gateway-endpoint.username
apiman.gateway-endpoint.password
If it's a bug, is it fix in later Apiman version ?
I could overwrite the entire file, but if I could avoid that, it would be great...
Regards
wildfly-10 jboss-tools apiman
Environment
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Bug
I'm using dockerized apiman version 1.3.1.Final. (Quite old I know...)
I'm trying to overwrite gateway properties for the apiman-default-config.json file :
"Gateways" : [ {
"id" : "TheGateway",
"name" : "The Gateway",
"description" : "This is the gateway.",
"createdBy" : "admin",
"createdOn" : "2016-05-16T12:34:15Z",
"modifiedBy" : "admin",
"modifiedOn" : "2016-05-16T12:34:15Z",
"type" : "REST",
"configuration" : "{"endpoint":"${apiman.gateway-endpoint:https://localhost:8443/apiman-gateway-api}","username":"${apiman.gateway-endpoint.username:apimanager}","password":"${apiman.gateway-endpoint.password:apiman123!}"}" } ]
So my thought is that I could overwrite those properties from apiman.properties configuration file.
But it seems that, for example, property ${apiman.gateway-endpoint.username} isn't evaluated and use the default value 'apimanager' in any case.
So now, my question is how should be overwriten the following properties ? :
apiman.gateway-endpoint
apiman.gateway-endpoint.username
apiman.gateway-endpoint.password
If it's a bug, is it fix in later Apiman version ?
I could overwrite the entire file, but if I could avoid that, it would be great...
Regards
wildfly-10 jboss-tools apiman
wildfly-10 jboss-tools apiman
edited Nov 20 '18 at 9:20
LE GALL Benoît
2,37411829
2,37411829
asked Nov 19 '18 at 16:09
user3793803
613
613
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11
add a comment |
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11
add a comment |
1 Answer
1
active
oldest
votes
After diving into Apiman code, I just found out that those variables are replaced by System.env properties.
In order to override them, it's possible to add those lines after 'extensions' tag into the standalone-apiman.xml configuration that you are using to run apiman :
<system-properties>
<property name="apiman.gateway-endpoint" value="http://apiman.gateway.com"/>
<property name="apiman.gateway-endpoint.username" value="username"/>
<property name="apiman.gateway-endpoint.password" value="password"/>
</system-properties>
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378597%2fhow-to-overwrite-apiman-gateway-endpoint-default-property-values-in-apiman-1-3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After diving into Apiman code, I just found out that those variables are replaced by System.env properties.
In order to override them, it's possible to add those lines after 'extensions' tag into the standalone-apiman.xml configuration that you are using to run apiman :
<system-properties>
<property name="apiman.gateway-endpoint" value="http://apiman.gateway.com"/>
<property name="apiman.gateway-endpoint.username" value="username"/>
<property name="apiman.gateway-endpoint.password" value="password"/>
</system-properties>
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
add a comment |
After diving into Apiman code, I just found out that those variables are replaced by System.env properties.
In order to override them, it's possible to add those lines after 'extensions' tag into the standalone-apiman.xml configuration that you are using to run apiman :
<system-properties>
<property name="apiman.gateway-endpoint" value="http://apiman.gateway.com"/>
<property name="apiman.gateway-endpoint.username" value="username"/>
<property name="apiman.gateway-endpoint.password" value="password"/>
</system-properties>
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
add a comment |
After diving into Apiman code, I just found out that those variables are replaced by System.env properties.
In order to override them, it's possible to add those lines after 'extensions' tag into the standalone-apiman.xml configuration that you are using to run apiman :
<system-properties>
<property name="apiman.gateway-endpoint" value="http://apiman.gateway.com"/>
<property name="apiman.gateway-endpoint.username" value="username"/>
<property name="apiman.gateway-endpoint.password" value="password"/>
</system-properties>
After diving into Apiman code, I just found out that those variables are replaced by System.env properties.
In order to override them, it's possible to add those lines after 'extensions' tag into the standalone-apiman.xml configuration that you are using to run apiman :
<system-properties>
<property name="apiman.gateway-endpoint" value="http://apiman.gateway.com"/>
<property name="apiman.gateway-endpoint.username" value="username"/>
<property name="apiman.gateway-endpoint.password" value="password"/>
</system-properties>
answered Nov 27 '18 at 16:07
user3793803
613
613
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
add a comment |
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
you should mark your response as validate
– LE GALL Benoît
Nov 28 '18 at 10:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378597%2fhow-to-overwrite-apiman-gateway-endpoint-default-property-values-in-apiman-1-3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Also reproduced on 1.5.1
– user3793803
Nov 23 '18 at 16:11