public function postDeleteTemplate($id)
 {
     try {
         $this->flash(SchemaTemplate::destroy($id));
         return Redirect::route('schematemplate.index');
     } catch (Illuminate\Database\Eloquent\ModelNotFoundException $e) {
         App::abort(404);
     }
 }
 private function render($data)
 {
     echo SchemaTemplate::make($data)->setId($this->getUrl())->setTitle($this->getUri())->setDescription($this->getRequest() . ' ' . $this->getUri())->setMethod($this->getRequest())->setUrl($this->getUrl())->withProperties()->withLinks()->toJson();
 }