example rest with jaas