Adding the tenant ID to the Budibase Cloud URL, as well as setting up variables for them all as part of the server URL.
This commit is contained in:
parent
7b3bf46a28
commit
3becf1b8a4
|
@ -17,12 +17,29 @@ const options = {
|
|||
},
|
||||
servers: [
|
||||
{
|
||||
url: "http://budibase.app/api/public/v1",
|
||||
url: "https://{organisationId}.budibase.app/api/public/v1",
|
||||
description: "Budibase Cloud API",
|
||||
variables: {
|
||||
organisationId: {
|
||||
default: "organisation",
|
||||
description: "The organisation you are attempting to access.",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
url: "{protocol}://{hostname}:10000/api/public/v1",
|
||||
url: "{protocol}://{hostname}/api/public/v1",
|
||||
description: "Budibase self hosted API",
|
||||
variables: {
|
||||
protocol: {
|
||||
default: "http",
|
||||
description:
|
||||
"Whether HTTP or HTTPS should be used to communicate with your Budibase instance.",
|
||||
},
|
||||
hostname: {
|
||||
default: "localhost:10000",
|
||||
description: "The URL of your Budibase instance.",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
components: {
|
||||
|
|
|
@ -7,12 +7,28 @@
|
|||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "http://budibase.app/api/public/v1",
|
||||
"description": "Budibase Cloud API"
|
||||
"url": "https://{organisationId}.budibase.app/api/public/v1",
|
||||
"description": "Budibase Cloud API",
|
||||
"variables": {
|
||||
"organisationId": {
|
||||
"default": "organisation",
|
||||
"description": "The organisation you are attempting to access."
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"url": "{protocol}://{hostname}:10000/api/public/v1",
|
||||
"description": "Budibase self hosted API"
|
||||
"url": "{protocol}://{hostname}/api/public/v1",
|
||||
"description": "Budibase self hosted API",
|
||||
"variables": {
|
||||
"protocol": {
|
||||
"default": "http",
|
||||
"description": "Whether HTTP or HTTPS should be used to communicate with your Budibase instance."
|
||||
},
|
||||
"hostname": {
|
||||
"default": "localhost:10000",
|
||||
"description": "The URL of your Budibase instance."
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"components": {
|
||||
|
|
|
@ -4,10 +4,22 @@ info:
|
|||
description: The public API for Budibase apps and its services.
|
||||
version: 1.0.0
|
||||
servers:
|
||||
- url: http://budibase.app/api/public/v1
|
||||
- url: https://{organisationId}.budibase.app/api/public/v1
|
||||
description: Budibase Cloud API
|
||||
- url: "{protocol}://{hostname}:10000/api/public/v1"
|
||||
variables:
|
||||
organisationId:
|
||||
default: organisation
|
||||
description: The organisation you are attempting to access.
|
||||
- url: "{protocol}://{hostname}/api/public/v1"
|
||||
description: Budibase self hosted API
|
||||
variables:
|
||||
protocol:
|
||||
default: http
|
||||
description: Whether HTTP or HTTPS should be used to communicate with your
|
||||
Budibase instance.
|
||||
hostname:
|
||||
default: localhost:10000
|
||||
description: The URL of your Budibase instance.
|
||||
components:
|
||||
parameters:
|
||||
tableId:
|
||||
|
|
Loading…
Reference in New Issue