Duolith docs

Errors E0500 to E0599

E0598 Address an operation cannot have

Message problem

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A query reads, so it is at a GET address; a command changes something, so it is at POST, PUT, PATCH or DELETE. Each name in the path is a required field of the input holding one value (text, a count, an id, a choice), so every call has a whole address. Without at:, a query is at GET /<domain>/<name> and a command at POST /<domain>/<name>.

How to fix it

Use a method that fits the operation, and name only required, one-value input fields in the path.

In a terminal

duolith explain E0598