budibase/packages/sdk
mike12345567 22a67eb769 Matching rollup version across all packages, there was a lot of mis-match and I was running into some build issues due to this, getting everything on the same version so that they can all use the same package - this also requires updating all .js extensions to .mjs to correctly support the imports. 2024-04-25 18:43:54 +01:00
..
scripts Fixing swagger API version, updating to use old 3.0.46 as version 3.0.47 does not appear to running correctly. 2023-10-02 13:53:58 +01:00
src Export SDK as a class to allow multiple instances 2022-09-21 19:12:25 +01:00
.gitignore
README.md
package.json update sdk packages (#13120) 2024-02-26 09:07:47 +00:00
rollup.config.mjs Matching rollup version across all packages, there was a lot of mis-match and I was running into some build issues due to this, getting everything on the same version so that they can all use the same package - this also requires updating all .js extensions to .mjs to correctly support the imports. 2024-04-25 18:43:54 +01:00

README.md

Budibase Public API SDK

JS SDK for the Budibase Public API.

This SDK is generated by swagger-codegen.

Docker is used to run the generator, so Java is not required. Docker is the only requirement to generate the SDK.

The generated code will only run in a browser. It is not currently useable in a NodeJS environment.

Example usage

import { configure, ApplicationsApi } from "@budibase/sdk"

// Configure the API client
configure({
  apiKey: "my-api-key",
  host: "https://my.budibase.app"
})

// Search for an app.
// We can use the promisified version...
const res = await ApplicationsApi.applicationsSearchPost({ name: "foo" })
console.log("Applications:", res.data)

// ...or the callback version
ApplicationsApi.applicationsSearchPost({ name: "foo" }, ((error, data) => {
  if (error) {
    console.error("Failed to search:", error)
  } else {
    console.log("Applications:", data.data)
  }
}))