I suppose that you are using the default route in which the pattern is:
api/{controller}/{id}
So try naming your parameter accordingly:
public TextsController: ApiController
{
public HttpResponseMessage Get(Guid? id)
{
...
}
}
Now the /api/texts/2ADEA345-7F7A-4313-87AE-F05E8B2DE678
url should hit the Get
action on the TextsController
and populate the id
parameter.