http-rpc-api / net.corda.v5.httprpc.api.annotations / HttpRpcPathParameter / <init>

<init>

HttpRpcPathParameter(name: String = "", description: String = "")

Marks a function parameter of a function annotated with @HttpRpcGET or @HttpRpcPOST as a path parameter.

Path parameters need to also be defined in the endpoint's path, in the form of "/:parameter/".