This section explains how service method payloads are mapped to HTTP endpoints using the HTTP transport DSL. The payload types define the shape of the data passed as arguments to service methods, while the HTTP expressions specify how to build this data from various parts of an incoming HTTP request.
HTTP Request State
An HTTP request is composed of four parts:
-
URL Path Parameters
For example, in the route/bottle/{id}
, the{id}
is a path parameter.