/** * Returns the POST response * * @param \PSX\Record\RecordInterface $record * @return array|\PSX\Record\RecordInterface */ protected function doPost($record) { $this->scopeService->create($record->name, $record->description, $record->routes); return array('success' => true, 'message' => 'Scope successful created'); }