Right, I am not trying to redefine (or just define) the get, put, post etc. I am trying to dynamically define a method that can fetch a record from the DB that would be used within a get for example. Since most all of my get methods look identical.
So in a User endpoint I would have something like
get do
user = get_user(permitted_params[:id]
present user, with: UserEntity
end
However the method get_user (perhaps I should name it fetch_user to avoid confusion) would be dynamically defined when the module was included, so that this could then also be included in another API class as well.
Sorry if I was unclear or still am being unclear.