Generate OAS 3.0 API definition from Airtable schema object
Every Airtable base has an auto-generated documentation page that is largely driven by an object that describes the schema of the base. This utility will convert the schema object into an OAS 3.0 (swagger) document so you can take advantage of tools that make use of this API definition format.
-
Open your Airtable documentation page
-
Click this icon in your URL bar to open the side panel
-
Click the button. An OAS json blob should appear in the text area above
Install from source using npm
your-computer:/path/to/airtable-swagger$ npm i -g .
- View the source of the Airtable documentation page generated for your base
- Find the line containing
window.location = {...}
- Copy the value of
window.location
to a file - Run the tool:
airtable-swagger /path/to/airtable-schema.json
- Use the output with your favorite swagger tool