[DO NOT MERGE] fixes #7594 - extract params defined in apipie documentation to use for strong parameters

I would probably go for Apipie.to_json(params[:version], params[:resource], params[:method]), in which case the params should be there incide a hash structure.