liveBook · Manning

Api model

An API-accessible model is a machine-learning model whose capabilities are made available to software through an application programming interface.

How 3 Manning books explain it

ASP.NET Core in Action, 3e

An API model is the data representation returned by an API action for serialization and transmission to a client.

How it is used
Uses returned data as the machine-readable payload of a web API action.
How deep it goes
Explains creation, serialization, format selection, and result typing, but does not detail model class design.
Examples
Uses fruit objects from an apples category and JSON or XML serialization as concrete response examples.
What you can do after
Apply API models with output formatters to return client-readable JSON or XML from controller actions.

Read how ASP.NET Core in Action, 3e explains api model →

Machine Learning System Design

A model API is a programmatic interface that exposes machine-learning model operations such as generating embeddings and scoring candidates.

How it is used
Serves model operations behind an HTTP layer, extracting predictions for demand or embeddings and candidate scores for search.
How deep it goes
Specifies responsibilities, JSON boundaries, release cadence, and layering, but stops short of implementation details.
Examples
Uses demand-prediction and photo-search endpoints returning prediction arrays or scored search-result arrays.
What you can do after
Operate/configure model-serving boundaries by separating transport, model work, candidate retrieval, ranking, and release responsibilities.

Read how Machine Learning System Design explains api model →

Functional Design and Architecture: Examples in Haskell

An API model is a data representation designed for communication across an application programming interface rather than for internal domain behavior.

How it is used
Separates network communication from business logic while defining request and response representations.
How deep it goes
Defines boundary responsibilities, contrasts specialized and duplicated types, and demonstrates validation before stopping short of a universal duplication solution.
Examples
Uses asteroid templates, HTTP request schemas, optional object names, validation errors, and Servant handlers as concrete examples.
What you can do after
Apply it via Haskell and Servant by defining boundary types, validating requests, and passing justified values to business logic.

Read how Functional Design and Architecture: Examples in Haskell explains api model →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.