parameters sorted

first parameters are path parameters second are not null parameters
third default parameters and the last one optional parameters. Removed
"null" in not null parameters