budibase/packages/server/specs/openapi.json

95 lines
3.3 KiB
JSON
Raw Normal View History

2022-02-16 17:42:50 +01:00
{
"openapi": "3.0.0",
"info": {
"title": "Budibase API",
"description": "The public API for Budibase apps and its services.",
"version": "1.0.0"
},
"servers": [
{
2022-02-17 13:40:08 +01:00
"url": "https://budibase.app/api/public/v1",
2022-02-16 17:42:50 +01:00
"description": "Budibase Cloud API"
2022-02-17 13:40:08 +01:00
},
{
"url": "http://localhost:10000/api/public/v1",
"description": "Budibase self hosted API"
2022-02-16 17:42:50 +01:00
}
],
2022-02-16 19:23:38 +01:00
"paths": {
2022-02-17 13:40:08 +01:00
"/row/{tableId}/search": {
2022-02-16 19:23:38 +01:00
"post": {
2022-02-16 19:51:17 +01:00
"summary": "Allows searching for rows within a table.",
2022-02-17 13:40:08 +01:00
"parameters": [
{
"in": "path",
"name": "tableId",
"required": true,
"description": "The ID of the table which contains the rows which are being searched for.",
"schema": {
"type": "string"
}
2022-02-16 19:51:17 +01:00
}
2022-02-17 13:40:08 +01:00
],
2022-02-16 19:51:17 +01:00
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"string": {
"type": "object",
2022-02-17 13:40:08 +01:00
"example": {
"columnName1": "value",
"columnName2": "value"
},
"description": "A map of field name to the string to search for, this will look for rows that have a value starting with the string value.",
"additionalProperties": {
"type": "string",
"description": "The value to search for in the column."
}
2022-02-16 19:51:17 +01:00
},
"fuzzy": {
"type": "object",
"description": "A fuzzy search, only supported by internal tables."
},
"range": {
"type": "object",
"description": "Searches within a range, the format of this must be columnName -> [low, high]."
},
"equal": {
"type": "object",
"description": "Searches for rows that have a column value that is exactly the value set."
},
"notEqual": {
"type": "object",
"description": "Searches for any row which does not contain the specified column value."
},
"empty": {
"type": "object",
"description": "Searches for rows which do not contain the specified column. The object should simply contain keys of the column names, these can map to any value."
},
"notEmpty": {
"type": "object",
"description": "Searches for rows which have the specified column."
},
"oneOf": {
"type": "object",
"description": "Searches for rows which have a column value that is any of the specified values. The format of this must be columnName -> [value1, value2]."
}
}
}
}
}
},
2022-02-16 19:23:38 +01:00
"responses": {
"200": {
"description": "Returns the rows."
}
}
}
}
},
2022-02-16 17:42:50 +01:00
"components": {},
"tags": []
}