liveBook · Manning

Data model

As explained in Automating API Delivery

A data model is a representation of the data entities, attributes, relationships, and constraints handled by a system or API.

A data model defines the resources, relationships, terminology, and operations an API exposes. Aligning designers and stakeholders around this conceptual model clarifies API definitions before implementation and supports consistent resource naming. section 5.2.4 section 1.7

Capture the model by:

  • Identifying the resources and operations that support user outcomes. section 5.2.4
  • Recording entities and relationships with entity-relationship diagrams, tables, or equivalent artifacts. section 5.2.4
  • Reviewing the model with relevant roles before automating standards checks; automation cannot replace agreement on terminology or resource design. section 1.7 section 5.2.4

Product Catalog API

A Product Catalog API models products, reviews, and categories. Each review belongs to exactly one product; a product may have zero or more reviews. Products may belong to multiple categories, while categories may contain zero or more products. An operations table can map actions such as listing categories, viewing products, and listing product reviews to resources, requests, and responses. section 5.2.4

How Automating API Delivery covers it

How deep it goes
Defines conceptual entities and relationships, represents them with diagrams or tables, and stops short of implementation-level schemas.
Examples
Uses a Product Catalog API with products, reviews, categories, cardinalities, relationship diagrams, and an operations table.
What it assumes
Assumes API design participation and introduces shared terminology, resource modeling, relationships, and operation mapping.
What you can do after
Evaluate/understand API resource boundaries and relationships, then communicate them through diagrams, tables, and operation definitions.
How it connects
Connects API design, API operations, API governance, REST, GraphQL, and gRPC.

Also explained in

Compare how 23 books explain data model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.