MonsterDTO function ( @ PathVariable ( "srini_string" ) long arg0 , @ RequestBody MonsterDTO arg1 ) { try { arg1 . setId ( arg0 ) ; monsterFacade . updateMonster ( arg1 ) ; return monsterFacade . getMonsterById ( arg0 ) ; } catch ( Exception loc0 ) { throw new RequestedResourceNotFound ( "srini_string" + arg0 , loc0 ) ; } }
updates monster curl - i - x put - h `` content-type : application/json '' -- data ' `` name '' : `` novy nazov '' ' http://localhost:8080/pa165/rest/monsters/2 concode_field_sep MonsterFacade monsterFacade concode_field_sep List<MonsterDTO> getAllMonsters concode_elem_sep MonsterDTO createMonster concode_elem_sep MonsterDTO getMonsterById concode_elem_sep MonsterDTO createUpdatingDTO concode_elem_sep void deleteMonster