JREST was a tool that generated a REST API from annotated Java code. This is done par excellence in the Jersey implementation from Sun of JSR-311.