interface WorkQueueAPI { void addJob(Job job); @bodyParam("id") void deleteJob(int id); @property Job[] jobs(); }
Yeah, this is an annoying aspect of vibe.d REST. I can think of a couple
ways -- 1. rename the parameter to something like ID. 2. Use a @before
clause to exctract the id from the form data into an _id parameter.-Steve
@bodyParam("jobId", "id")
void deleteJob(int jobId)
works for me.