API Maker

The backend engine for the AI era

Chapters

What you will learn

  • The APIs of a table: 17 on MongoDB, 14 on SQL
  • SCHEMA APIs read the schema, GEN APIs leave it out
  • One envelope for every answer, success or error
  • The same calls from any client, with curl
  • Swagger docs for each application
In the docsAPIs overview
Transcript563 words · click a time to play from there

Intro

Every table answers APIs, without a line of code : seventeen operations on MongoDB, fourteen on SQL, in two families, with one envelope. In this video, a tour of them, from the panel, a terminal and Swagger.

APIs, the usual way

An API for a table usually means a controller, a service and a repository, table after table, an answer shaped differently by every team, and API docs written by hand, late and out of date. With API Maker, every operation of every table is there, every API answers the same envelope, and the Swagger docs are written from what an application may call. In this video : the APIs of a table, SCHEMA and GEN, one envelope, an error, a call from a terminal, and Swagger docs for one application.

The APIs of a table

Instance API, mongodb, catalog, products : thirty four APIs. Seventeen operations, get all, get by id, save, update, master save, count, distinct, aggregate and more, under SCHEMA, and the same seventeen under GEN. On SQL, crm, customers : twenty eight, fourteen of each. Replace by id, array operations and aggregate are for MongoDB.

SCHEMA and GEN

A SCHEMA API reads the schema of the table : values converted, rules checked, relations followed. A GEN API leaves the schema out : what you send is what the database gets. Same operations, same addresses, under slash api slash schema, or slash api slash gen.

One envelope

API Testing, products, Get all, SCHEMA. find : a price of thirty five, written as a text. select : the name and the price. Two products : the schema made the text a number. Around them, the envelope : success, statusCode, and data.

The same call, schemaless

The same call on GEN Get all, the same find. Nothing : the text stays a text, and no price is a text. The same envelope, its data empty.

An error

Another engine, PostgreSQL, the customers, and a mistake : an id which is not a number. Four hundred : success false, and errors, one entry per problem, with its type, its field and its message.

From any client

From any client, the same call : an address, and the token of an API user in x-am-authorization. The same envelope, from a terminal. Without the token : four hundred and one, in the same envelope again.

Swagger docs

API User Permissions, Support Desk, the application of video twenty four, Edit. Enable Swagger Docs, and a random token : the end of an address only you know. Update. Swagger UI, that address, Explore : exactly the three APIs its group opens. Get by id, with its id, ready to try.

Good to know

Custom APIs and system APIs answer the same envelope. The status is in the body too : two hundred, two hundred and one for a save, four hundred, four oh one, four oh three, five hundred. Groups decide which application calls which API : video twenty four. And the Swagger docs follow the groups : change a group, the docs change.

Built on standards

One envelope, for every API of every table. Errors field by field, the same on every engine. So a client, written by you or by an AI assistant, handles every API the same way.

Recap

To sum up. Every operation of every table, without code. SCHEMA reads the schema, GEN leaves it out. One envelope, success or error. Swagger docs for each application. Next : the read APIs, one query language for six databases. API Maker. Build faster, spend smarter, deliver better.