Populate and Publish DB2 Table APIs
Populate and Publish DB2 Table APIs
In DB2 → Schemas, expand a schema and select Populate APIs.
- Optionally enable Publish immediately after save.
- Select tables and API operations: Get by PK, List, Create, Update, Delete, and Count.
- Confirm the primary key. Tables without a key cannot be selected until one is specified.
- Review the table × operation endpoint count and select Add.
The dialog reports success or failure for each table, so successful definitions are retained even if others fail. A DB2 catalog must exist; CoreIQ includes one by default.
Open Catalog → DB2 to filter definitions and publish, unpublish, or delete table APIs.
Published collection path: /api/v1/{catalogId}/{endpointName}/{schema}/{table}.
- List is
QUERYon the collection (OpenAPI 3.2). With Generate an OpenAPI 3.0-compatible spec, the spec advertisesGET …/listinstead; the router servesGET …/listeither way. - Count is
GET …/count. - Create is
POSTon the collection. - Get, Update, and Delete use a
/{pkValue}path segment on DB2.
Generate DB2 CRUD, list, and count REST APIs and see how they appear in OpenAPI.