rest-api added job resource, querys and retries