Merge pull request #4826 from Budibase/fix/openapi-server-urls
Minor OpenAPI spec change
This commit is contained in:
commit
0b26dfb5db
|
@ -17,12 +17,23 @@ const options = {
|
||||||
},
|
},
|
||||||
servers: [
|
servers: [
|
||||||
{
|
{
|
||||||
url: "http://budibase.app/api/public/v1",
|
url: "https://budibase.app/api/public/v1",
|
||||||
description: "Budibase Cloud API",
|
description: "Budibase Cloud API",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "{protocol}://{hostname}:10000/api/public/v1",
|
url: "{protocol}://{hostname}/api/public/v1",
|
||||||
description: "Budibase self hosted API",
|
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: {
|
components: {
|
||||||
|
|
|
@ -7,12 +7,22 @@
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"url": "http://budibase.app/api/public/v1",
|
"url": "https://budibase.app/api/public/v1",
|
||||||
"description": "Budibase Cloud API"
|
"description": "Budibase Cloud API"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"url": "{protocol}://{hostname}:10000/api/public/v1",
|
"url": "{protocol}://{hostname}/api/public/v1",
|
||||||
"description": "Budibase self hosted API"
|
"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": {
|
"components": {
|
||||||
|
|
|
@ -4,10 +4,18 @@ info:
|
||||||
description: The public API for Budibase apps and its services.
|
description: The public API for Budibase apps and its services.
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
servers:
|
servers:
|
||||||
- url: http://budibase.app/api/public/v1
|
- url: https://budibase.app/api/public/v1
|
||||||
description: Budibase Cloud API
|
description: Budibase Cloud API
|
||||||
- url: "{protocol}://{hostname}:10000/api/public/v1"
|
- url: "{protocol}://{hostname}/api/public/v1"
|
||||||
description: Budibase self hosted API
|
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:
|
components:
|
||||||
parameters:
|
parameters:
|
||||||
tableId:
|
tableId:
|
||||||
|
|
Loading…
Reference in New Issue