restful api/controller completo