Akshitha Dalpethado
Akshitha Dalpethado

Reputation: 615

In the wso2 api manager, what populates {endpoint.URLs.http} in the Environment.jsx file?

{endpoint.URLs.http !== null && (
                                            <Grid item xs={12}>
                                                <TextField
                                                    defaultValue={endpoint.URLs.http}
                                                    id='bootstrap-input'
                                                    InputProps={{
                                                        disableUnderline: true,
                                                        readOnly: true,
                                                        classes: {
                                                            root: classes.bootstrapRoot,
                                                            input: classes.bootstrapInput,
                                                        },
                                                    }}

These text fields display the http and https gateway urls. How does endpoint.URLs.http and endpoint.URLs.https get it's vales(the gateway urls).

Upvotes: 0

Views: 104

Answers (2)

Pubci
Pubci

Reputation: 4001

For OpenAPI v3, it comes under the servers and in the backend the following methods add those values to the OpenAPI definition.

https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OAS3Parser.java#L1201

Upvotes: 1

Related Questions