spec definition for yags_rest.erl