add config for RESful api