simple rest api for programming test