liveBook · Manning

Uniform interface

The uniform interface is a REST architectural constraint that standardizes client-server interactions, including resource identification, manipulation, message formats, and hypermedia controls.

How 2 Manning books explain it

Building Web APIs with ASP.NET Core

A uniform interface is a REST constraint defining standardized resource identification, manipulation, messages, and hypermedia controls.

How it is used
Uses a uniform interface to decouple REST API clients from implementation details and help them discover available actions.
How deep it goes
Defines the four REST interface principles and implements a generic response wrapper with a self link.
Examples
Uses board-game resource URIs, GET and DELETE operations, and a JSON collection response with a self link.
What you can do after
Apply a uniform interface in ASP.NET Core using a response DTO with data and structured links.

Read how Building Web APIs with ASP.NET Core explains uniform interface →

The Design of Web APIs, Second Edition

The uniform interface constraint is a REST constraint requiring a consistent and standardized interface for interacting with resources.

How it is used
Organizes API capabilities as resources and HTTP methods so interactions remain predictable for consumers.
How deep it goes
Defines the REST constraint and applies it to request design and change resistance, without detailing protocol internals.
Examples
Contrasts two transaction GET requests, then uses account transaction searches and money transfer creation to clarify input placement.
What you can do after
Practice/perform it by identifying business resources and choosing HTTP-compliant request locations that consumers can predict.

Read how The Design of Web APIs, Second Edition explains uniform interface →

What to know first

Related concepts

Questions about uniform interface

What is uniform interface?

The uniform interface is a REST architectural constraint that standardizes client-server interactions, including resource identification, manipulation, message formats, and hypermedia controls.

Which Manning books explain uniform interface?

Building Web APIs with ASP.NET Core and The Design of Web APIs, Second Edition.

What should I know before learning uniform interface?

Manning books that teach uniform interface usually introduce HTTP, uri, deletion and REST first.

What is uniform interface part of?

Uniform interface is part of REST. REST is an architectural style for distributed systems that organizes interactions around identifiable resources and their representations through a uniform interface and constraints such as statelessness and cacheability.

What are the parts of uniform interface?

Uniform interface includes hypermedia and self-descriptive messages.

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.