Api endpoint validation

I am trying to build my APIs in a more traditional manner. I pass the HTTP verb as a variable and keep all operations in the same API action.
I would like to use Wapplers built in validation, but on “GET” requests this will of course fail.

From the example below, the POST variable “name” is required and breaks the API call if not passed. The request is treated as GET if “operation” value is not present.

Does anyone have an elegant solution for issues such as these ? :slight_smile:
Or will I just have to pass “fake” values along with the request (seems a little hacky)

Community Page
Last updated: