Reputation: 615
{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
Reputation: 1224
The Gateway urls
are generated in this method - [1] based on the type of the APIs.
Edit:
To be precise, the context and version is appended in this line in default behavior - [2].
Upvotes: 1
Reputation: 4001
For OpenAPI v3, it comes under the servers and in the backend the following methods add those values to the OpenAPI definition.
Upvotes: 1