Skip to content

Developer tools

Developer tools

Swagger docs per API user

  • Open an API user, enable Swagger docs and generate a Swagger Token. View Swagger JSON opens its URL.
  • The docs list only the APIs that the API user can call, like its database, custom and system APIs.
  • Share the URL with the team or partner that uses that API user.
  • The URL answers only while Swagger docs are enabled for that API user. Disable them, or generate a new token, to stop an old URL from working.

TypeScript interfaces from your schemas

  • Your table schemas become TypeScript interfaces, grouped by instance and database. See them in Generated Interfaces.
  • Import them from db-interfaces in your code.
import * as T from 'types';
import * as db from 'db-interfaces';

async function main(g: T.IAMGlobal) {
    const products = await g.sys.db.getAll<db.shop.main.Products>({
        instance: 'shop', database: 'main', collection: 'products',
    });
    return products.map(p => p.name); // p is typed
}
module.exports = main;

API testing page

  • Every API of your account in one place: pick an API, get a sample payload, set the headers and tokens, send it and read the response.
  • Save a request as a state to run it again later. States go to Git with the project.
  • Copy the same request as client code: C, C#, cURL, Dart, Go, HTTP, Java, JavaScript, Kotlin, Node.js, Objective-C, OCaml, PHP, Postman CLI, PowerShell, Python, R, Ruby, Rust, Shell and Swift, with their variants.

Debugger

  • Enable debugging, attach Chrome DevTools to the sandbox and stop on breakpoints in your TypeScript.
  • It works for code that runs in the sandbox, not for code that runs on the native process.
  • Reach debugging ports only through an SSH tunnel: the debug settings show the command.

Code finder

  • Search a word in all your code at once: custom APIs, hooks, events, schedulers, migrations, utility classes, schemas, secrets and more, and open the result to edit it.
  • Learn more Code finder.

Your own editor

  • localClient.js in your Git repository syncs your files with API Maker both ways.
  • Generate a sync token in your user profile and set it in local-client.config.js.
1
2
3
4
5
6
7
module.exports = () => {
    return {
        webSocketURL: 'wss://ws.example.com', // WebSocket URL of your API Maker
        syncToken: '...', // generate it in your user profile
        adminUserPath: 'admin',
    };
};

Notes

  • Keep notes for the team inside API Maker. Learn more Notes.