liveBook · Manning

Web API action method

A web API action method is a controller method associated with a matched HTTP request that processes it and produces a response.

How 4 Manning books explain it

ASP.NET Core in Action, 3e

An API controller action is a method on a web API controller that handles a request and produces an HTTP result.

How it is used
Handles HTTP requests in controllers that return machine-readable data or HTTP results to clients.
How deep it goes
Explains action selection, parameter binding, response types, and API conventions through worked controller examples.
Examples
Uses a fruit-list GET action and an indexed fruit lookup that returns data or a 404.
What you can do after
Apply it using ASP.NET Core controllers to route requests and return data or HTTP results.

Read how ASP.NET Core in Action, 3e explains web API action method →

Pro ASP.NET Core 7, Tenth Edition

A controller method that handles a matched request and contributes to producing its response.

How it is used
Handles matched HTTP requests as controller operations in a RESTful web service.
How deep it goes
Works through controller discovery, route and HTTP-method attributes, parameter binding, service access, and product operations; defers detailed validation treatment.
Examples
Uses product-list, product-lookup, and write actions, with Invoke-RestMethod requests against api/products.
What you can do after
Build it from scratch as a controller action selected by URL and HTTP method, with bound inputs and a result.

Read how Pro ASP.NET Core 7, Tenth Edition explains web API action method →

Spring Start Here, Second Edition

A controller action is a controller method associated with an HTTP request and responsible for producing the request's response.

How it is used
Uses controller actions to serve web pages and expose REST endpoints for application communication.
How deep it goes
Explains request mapping and response flow, then outlines response control, request inputs, and exception handling.
Examples
Shows a home() action mapped to /home that returns a reference to home.html.
What you can do after
Apply it via Spring MVC to map requests to actions and configure REST response bodies, statuses, and headers.

Read how Spring Start Here, Second Edition explains web API action method →

Building Web APIs with ASP.NET Core

An action method is a controller method that handles an HTTP request and produces an HTTP response.

How it is used
Handles HTTP requests inside controllers and organizes related API endpoints under shared conventions.
How deep it goes
Explains attributes, routing, return values, grouping, and delegation, but stops short of detailed request-pipeline internals.
Examples
Uses board-game listing, identifier lookup, deletion, text responses, optional query parameters, and gRPC wrapper actions.
What you can do after
Build it from scratch by creating controllers, applying route and HTTP attributes, returning data, and configuring endpoint behavior.

Read how Building Web APIs with ASP.NET Core explains web API action method →

What to know first

Related concepts

Questions about web API action method

What is web API action method?

A web API action method is a controller method associated with a matched HTTP request that processes it and produces a response.

Which Manning books explain web API action method?

ASP.NET Core in Action, 3e, Pro ASP.NET Core 7, Tenth Edition, Spring Start Here, Second Edition and Building Web APIs with ASP.NET Core.

What should I know before learning web API action method?

Manning books that teach web API action method usually introduce controller, client, dependency injection and HTTP 404 error first.

What is web API action method a kind of?

Web API action method is a kind of endpoint. An endpoint is an addressable interface of a service through which clients access a resource or invoke an operation, typically via a network request.

What is web API action method part of?

Web API action method is part of controller. A controller is a software component that receives input or requests and coordinates other components or operations to produce a response or change application state.

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.