Fixed the 'ags_rest' type in obtain_resource_protocol function