fix query
add restulfapi